Ruben Ayrapetyan
b300316403
Fixing assertion in ecma_OpGetIdentifierReference.
2014-07-16 22:16:14 +04:00
Ruben Ayrapetyan
6cdb927d14
Implementing ECMA-262 v5 10.2.1.1 operations (declarative environment record's CreateMutableBinding, SetMutableBinding, etc.).
2014-07-16 21:44:10 +04:00
Ruben Ayrapetyan
2598d01105
Renaming ecma_IsUndefinedValue -> ecma_IsValueUndefined and the like; introducing ecma_IsCompletionValueNormal{True,False} helpers.
2014-07-16 21:42:49 +04:00
Ruben Ayrapetyan
c8605bb4d1
Renaming ecma_GC*Property to ecma_Free*Property and moving them to ecma-helpers.c; introducing ecma_CreateNamedProperty, ecma_GetNamedProperty, ecma_GetNamedDataProperty, ecma_FreeProperty (extracted from ecma_GCRun), ecma_DeleteProperty; removing length argument of ecma_NewEcmaString helper.
2014-07-16 21:37:24 +04:00
Ruben Ayrapetyan
8d07e2b239
Introducing ecma_Property{Writable,Enumerable,Configurable}Value_t enum value types for properties' attributes.
2014-07-16 21:19:44 +04:00
Ruben Ayrapetyan
6918db2f59
Replacing 'ecma_Free' prefix in ecma_Free{Object,Property,Number,ArrayFirstChunk,ArrayNonFirstChunk} to 'ecma_Dealloc'.
2014-07-16 21:17:43 +04:00
Ruben Ayrapetyan
b72185696a
Introducing ecma_MakeReference and ecma_FreeReference, moving ecma_OpGetIdentifierReference to libecmaoperations/ecma-reference.c.
2014-07-16 17:20:40 +04:00
Ruben Ayrapetyan
60063683aa
Rename ecma_GCValue to ecma_FreeValue and move it to ecma-helpers-value.c. Introduce ecma_CopyValue.
2014-07-16 17:12:45 +04:00
Ruben Ayrapetyan
ca420ea0e9
Implementing PutValue for cases:
...
- base is lexical environment;
- base is undefined (unresolvable reference);
Descripting implementation of other PutValue's cases in comments.
2014-07-16 14:41:17 +04:00
Ilmir Usmanov
0c64b78430
Merge branch 'geppetto'
2014-07-16 13:04:54 +04:00
Ilmir Usmanov
438318d788
Generate getop_* functions
2014-07-16 13:04:30 +04:00
e.gavrin
3721569d6c
minor formatting fix
2014-07-16 12:47:27 +04:00
Ruben Ayrapetyan
b1f9275048
Merge branch 'master' of git-server.vd:jerry
2014-07-15 21:44:21 +04:00
Ilmir Usmanov
32b4b7c869
Merge branch 'geppetto'
2014-07-15 21:42:33 +04:00
Ilmir Usmanov
87072c6088
Merge with master
2014-07-15 21:42:05 +04:00
Ruben Ayrapetyan
c5cfff3d92
Adding comment to ecma_NewStandardError.
2014-07-15 21:41:47 +04:00
Ruben Ayrapetyan
16be2ee3ab
Implementing GetValue for cases:
...
- base is lexical environment;
- base is undefined (unresolvable reference);
Descripting implementation of other GetValue's cases in comments.
2014-07-15 21:41:47 +04:00
Ruben Ayrapetyan
56f731a3f2
Introducing ecma_MakeThrowValue constructor for throw completion values.
2014-07-15 21:41:47 +04:00
Ruben Ayrapetyan
cdde0900e3
Introducing native ecma error types and ecma_NewStandardError interface.
2014-07-15 21:41:47 +04:00
Ilmir Usmanov
0647cdd4f1
Add bytecode generator
2014-07-15 19:32:26 +04:00
Ruben Ayrapetyan
4395da05d3
Renaming ecma_Object_t::u_Attributes to u.
...
Renaming ecma_CompletionValue_t:: completion_type to type, completion_value to value.
Introducing ECMA_TARGET_ID_RESERVED value of ecma_CompletionValue_t::target when it is unused.
Adding ecma_Reference_t type for ECMA-reference.
Introducing some constructors and helpers for ecma-values.
Introducing ecma_FindNamedProperty helper.
Removing ecma_SyntacticReference_t type.
Implementing ecma operation GetIdentifierReference.
Stubs and partial implementation for GetValue, SetValue, lexical environment operations (HasBinding, etc.).
2014-07-15 19:27:15 +04:00
Ruben Ayrapetyan
f88fe5fae3
Moving jerry defines from CFLAGS_COMMON to DEFINES_JERRY and fixing cppcheck arguments.
2014-07-15 19:17:21 +04:00
Ruben Ayrapetyan
2615f28700
Adding JERRY_UNIMPLEMENTED_REF_UNUSED_VARS(...) macros that allow referencing variables that are unused due to partial implementation.
2014-07-15 18:56:09 +04:00
Ruben Ayrapetyan
4ffbb5dc0c
Emptying LDFLAGS_OPTIMIZE and LDFLAGS_NO_OPTIMIZE, because their current values are duplicating flags in $(CFLAGS_COMMON).
2014-07-15 15:43:16 +04:00
Ruben Ayrapetyan
b4cafc2ae8
Removing *.linux.flash targets. Adding dependency from check, flash to target of an action, fix path used in flash action. Temporarily changing --error-exitcode parameter of cppcheck to 0.
2014-07-14 21:00:40 +04:00
Ruben Ayrapetyan
18a5852914
Fix src/main.c for target MCU.
2014-07-14 20:53:06 +04:00
Ruben Ayrapetyan
7a2397f235
Introducing new make targets scheme: {dev,debug,release,debug_release}.{linux,stm32f{4}}[.{check,flash}].
2014-07-14 20:10:46 +04:00
Ruben Ayrapetyan
d4b84f47a8
Fixing type conversion warnings in src/main.c and disabling warnings for third-party headers, included from that module.
2014-07-14 20:03:43 +04:00
Ruben Ayrapetyan
dfb9441e8c
Removed typedefs for basic int types and bool, definition of NULL from globals.h. Included <stdint.h>, <stdbool.h>, <stddef.h> in that header.
2014-07-14 19:59:29 +04:00
Ruben Ayrapetyan
63547e9f2c
Change bit fields' type from uint32_t to unsigned int (because uint32_t is defined as something other than unsigned int in arm-none-eabi stdint.h; using that type for bit-fields is GCC extension).
2014-07-14 19:56:17 +04:00
Ruben Ayrapetyan
c9e98171fd
Remove inline attributes from src/libjsparser/lexer.c.
2014-07-14 19:53:41 +04:00
Ruben Ayrapetyan
4ca4c71c8b
Fix warning about unused parameter 'opdata' in opfunc_call_1.
2014-07-14 19:51:11 +04:00
Ruben Ayrapetyan
0dd13021ae
Remove usage of 'double' type.
2014-07-14 19:44:54 +04:00
Ruben Ayrapetyan
30b1a43e1e
Adding memcpy, memset (for compiler usage).
2014-07-14 19:43:07 +04:00
Ruben Ayrapetyan
bc83f77abe
Fixing warnings and removing call to vprintf in src/libruntime/target/stm32f4/*.
2014-07-14 19:39:22 +04:00
Ruben Ayrapetyan
97a2776996
Deleting tests/jerry/*.exp.
2014-07-14 19:36:05 +04:00
Ruben Ayrapetyan
25ad63c9be
Adding forgotten jerry-libc.c for linux and stm32f4 targets.
2014-07-10 22:20:31 +04:00
Ruben Ayrapetyan
5b48cb1a37
Move src/libruntime/{linux,stm32f4} to src/libruntime/target.
2014-07-10 22:17:33 +04:00
Ruben Ayrapetyan
6a27068dbd
Move fatal from lexer.c to parser.c, rename it to parser_fatal, replace calls from main.c to parser_fatal with calls to jerry_Exit.
2014-07-10 22:06:09 +04:00
Ruben Ayrapetyan
e6b3be5dfc
jerry_Exit - exit function that under !JERRY_NDEBUG, in case status code is non-zero, prints exit status as string and calls handler of failed assertion.
2014-07-10 21:52:15 +04:00
Ruben Ayrapetyan
f9ee8960c7
Move fatal from parser.c to lexer.c.
2014-07-10 21:12:26 +04:00
Ruben Ayrapetyan
224c509ff3
Merge with master.
2014-07-10 21:02:48 +04:00
Ruben Ayrapetyan
c531c78b10
Setting non-zero error exit code to cppcheck and jerry_test.sh.
2014-07-10 19:46:24 +04:00
Ruben Ayrapetyan
b71daa172c
Enable -flto.
2014-07-10 19:46:24 +04:00
Ruben Ayrapetyan
4cb5fb646e
memmove, fprintf.
2014-07-10 19:46:24 +04:00
Ruben Ayrapetyan
76e579d4e1
Remove inclusion of std headers to our headers; move fatal from src/error.h to src/libjsparser/parser.c.
2014-07-10 19:46:24 +04:00
Ruben Ayrapetyan
c132f6aa3c
Creating libruntime, moving jerry-libc and pretty-printer to libruntime, creating platform-dependent handlers of failed assertions.
2014-07-10 19:46:23 +04:00
Ruben Ayrapetyan
8641b79ed5
Fix type conversion warnings in unit tests for memory allocators.
2014-07-10 19:45:31 +04:00
Ilmir Usmanov
4e17a97dca
Merge branch 'master' into geppetto
2014-07-10 18:09:25 +04:00
Ilmir Usmanov
1d6aac7839
Fixes in triple-address code parser, 1% tests passed
2014-07-10 18:08:52 +04:00