Add try-catch-finally support: parse and generate opcodes for this construct

Fix varg generation: generate *_n opcodes with parameters in following meta opcodes
Add stack internal structure: dimanically allocated stack.
Use dynamically allocated memory in parser: every local and global variables are stored in dinamically allocated stacks.
Use dynamically allocated memory in serializer: opcodes are also stored in stack.
Change is_true_jmp and is_false_jmp opcodes to relative.
Change *jmp* opcodes to be able to store opcode_counter_t instead of idx_t.
This commit is contained in:
Ilmir Usmanov
2014-09-16 21:22:11 +04:00
parent cd41b236d9
commit e77bd4f4e5
26 changed files with 1644 additions and 1710 deletions
+5 -3
View File
@@ -285,8 +285,9 @@ SOURCES_JERRY_H = \
$(wildcard ./src/libecmaoperations/*.h) \
$(wildcard ./src/liballocator/*.h) \
$(wildcard ./src/libcoreint/*.h) \
$(wildcard ./src/liboptimizer/*.h) ) \
$(wildcard ./src/libruntime/target/$(TARGET_SYSTEM)/*.h)
$(wildcard ./src/liboptimizer/*.h) \
$(wildcard ./src/libintstructs/*.h) \
$(wildcard ./src/libruntime/target/$(TARGET_SYSTEM)/*.h) )
SOURCES_JERRY_ASM = \
$(wildcard src/libruntime/target/$(TARGET_SYSTEM)/*.S)
@@ -302,7 +303,8 @@ INCLUDES_JERRY = \
-I src/libecmaoperations \
-I src/liballocator \
-I src/liboptimizer \
-I src/libcoreint
-I src/libcoreint \
-I src/libintstructs
# libc
ifeq ($(OPTION_LIBC),musl)