Ruben Ayrapetyan
fe7e34d93e
Adding ecma-string's hash to ecma_string_t.
2014-11-28 21:12:44 +03:00
Ilmir Usmanov
8c7dc08d93
Add literals - replacements of strings and numbers in parser.
2014-10-31 21:22:52 +04:00
Ilmir Usmanov
d8acb0b6e2
'undefined' is not literal, so dump it as identifier.
2014-10-30 19:48:06 +04:00
Ilmir Usmanov
4735570b31
Add SyntaxErrors on parsing ObjectDeclarations.
2014-10-28 13:39:25 +04:00
Ilmir Usmanov
f163f9f5da
Allocate memory for string literals and identifiers dinamically.
2014-10-23 17:04:36 +04:00
Ilmir Usmanov
3f7fca4d39
Implement full support of strict mode in parser.
2014-10-20 16:54:40 +04:00
Ruben Ayrapetyan
4689f6c3c5
Handling elements bigger than 8 bytes in linked_list_set_element.
2014-10-14 17:35:07 +04:00
Ilmir Usmanov
053cbc769f
Fix alignment: part 2
2014-10-14 15:06:21 +04:00
Ilmir Usmanov
85ad5f8350
Fix alignment
2014-10-13 21:42:25 +04:00
Ilmir Usmanov
63662dfb35
Postparser landing patch: add tree of scopes
2014-10-12 20:34:23 +04:00
Ilmir Usmanov
cb7e54fe22
Preparser landing patch: refactor linked-list
2014-10-12 20:34:22 +04:00
Ilmir Usmanov
2c90f8a7f1
Fix break and continue generation
2014-10-09 20:55:16 +04:00
Ilmir Usmanov
a902a97025
Add another 'out of memory' error message
2014-10-09 17:49:02 +04:00
Ilmir Usmanov
3d3da5d481
Preparser: new pass to order var_decls prior to parser
2014-10-07 20:14:41 +04:00
Ilmir Usmanov
62cc3cc604
Fix && and || parsing
2014-10-06 14:35:26 +04:00
Ilmir Usmanov
8c7daf4850
Print ERR_MEMORY on stack
2014-10-06 14:35:26 +04:00
Ilmir Usmanov
9d129e15dc
Allocate stack memory by chunks
2014-09-30 18:40:24 +04:00
Ilmir Usmanov
0738ec6a54
Add generation of prop_setter.
2014-09-24 15:30:37 +04:00
Ilmir Usmanov
8a5b956e38
Simplify serializer/deserializer. Reduce memory usage in lexer. Create HashTable data structure. Finish preparations for introducing new strings addressation.
2014-09-23 16:45:10 +04:00
Ilmir Usmanov
e77bd4f4e5
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.
2014-09-16 21:32:59 +04:00