Dániel Bátyai
|
579b1edaa5
|
Refactor builtins to handle CESU-8 encoded strings.
JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély zsborbely.u-szeged@partner.samsung.com
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai.u-szeged@partner.samsung.com
|
2015-10-15 16:01:10 +02:00 |
|
Dániel Bátyai
|
dcd610b305
|
Change internal encoding of strings to CESU-8
JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély zsborbely.u-szeged@partner.samsung.com
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai.u-szeged@partner.samsung.com
|
2015-10-15 13:39:00 +02:00 |
|
Roland Takacs
|
6f77460509
|
Replace recursions with iterations in the linked_list data structure
JerryScript-DCO-1.0-Signed-off-by: Roland Takacs rtakacs.u-szeged@partner.samsung.com
|
2015-10-05 14:30:29 +02:00 |
|
Ruben Ayrapetyan
|
b7c93f170d
|
Remove argument names in function prototypes, declared in headers; fix '*' alignment in headers.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
|
2015-09-28 18:27:10 +03:00 |
|
Dániel Bátyai
|
91f0c9d625
|
Parse integer numbers from back to front.
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai.u-szeged@partner.samsung.com
|
2015-09-16 14:30:45 +02:00 |
|
Andrey Shitov
|
311cc65b33
|
Implement snapshot functionality.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
|
2015-09-09 18:07:24 +03:00 |
|
Andrey Shitov
|
443673fc5d
|
Update bytecode header structure so that bytecode could be stored independently from hash table and bytecode header.
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
|
2015-09-09 18:07:20 +03:00 |
|
Ruben Ayrapetyan
|
9da91d0834
|
Remove inside_eval from limitations on var-to-reg optimization.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
|
2015-09-09 16:58:52 +03:00 |
|
Ruben Ayrapetyan
|
a00079e8ff
|
Reduce number of operand type handling conditional blocks in byte-code dumper, by extracting them to several separate routines that can be used for most cases, remove getop_* routines from vm.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
|
2015-08-28 16:19:49 +03:00 |
|
Ruben Ayrapetyan
|
cbdc48a1fc
|
Remove raw_instr.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
|
2015-08-28 16:19:19 +03:00 |
|
Ruben Ayrapetyan
|
173becc3ac
|
Rename idx_t -> vm_idx_t, opcode_special_reg_t -> vm_reg_t, INVALID_VALUE -> VM_IDX_EMPTY / VM_IDX_REWRITE_GENERAL_CASE, LITERAL_TO_REWRITE -> VM_IDX_REWRITE_LITERAL_UID.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
|
2015-08-28 16:18:58 +03:00 |
|
Ruben Ayrapetyan
|
0111a73702
|
Convert parser operand structure to jsp_operand_t class, move operand types to enum defined in the class.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
|
2015-08-28 15:35:06 +03:00 |
|
Ruben Ayrapetyan
|
5b9ce05491
|
Introduce parser-time optimization that replaces a function's local variables with registers.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
|
2015-08-27 17:42:45 +03:00 |
|
Ruben Ayrapetyan
|
91aecc3bd0
|
Introduce parser scope types, add scope flags, indicating whether scope contains a function declaration, a 'try' statement, 'with' statement or 'delete' operator.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
|
2015-08-27 17:42:45 +03:00 |
|
Ruben Ayrapetyan
|
845b0d5006
|
Clarify calculation precedence for & and ?.
(a & b ? c : d)-like expressions are changed to ((a & b) ? c : d).
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
|
2015-08-27 16:32:08 +03:00 |
|
Andrey Shitov
|
e4843ece76
|
Fix processing of elision in array literal.
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
|
2015-08-24 14:51:24 +03:00 |
|
Andrey Shitov
|
01604974e3
|
Free eval's code and literal hash-table after its execution if it does not contain functions.
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
|
2015-08-24 14:44:16 +03:00 |
|
Andrey Shitov
|
b3b87add02
|
Fix parsing of string literals which contain zero character.
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
|
2015-08-20 22:23:57 +03:00 |
|
Andrey Shitov
|
0938211f63
|
Fix parsing of comments which contain zero character.
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
|
2015-08-19 14:34:31 +03:00 |
|
Andrey Shitov
|
a870a07972
|
Remove preparser lexer pass and pass for searching of "eval" and "arguments" literals.
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
|
2015-08-19 14:16:04 +03:00 |
|
Dániel Bátyai
|
4ee30cba5d
|
Fix RegExp literal parsing
JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai.u-szeged@partner.samsung.com
|
2015-08-12 11:49:05 +02:00 |
|
Andrey Shitov
|
0d855e898d
|
Fix hoisting of function declaration from function expressions.
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
|
2015-08-11 15:01:45 +03:00 |
|
Andrey Shitov
|
531a9d3352
|
Fix invalid preparsing of variable declarations which are not splitted by comma.
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
|
2015-08-11 14:39:02 +03:00 |
|
Andrey Shitov
|
d6ad1c467e
|
Fix semicolon check after variable declaration list.
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
|
2015-08-11 14:23:11 +03:00 |
|
Andrey Shitov
|
95c1c223e8
|
Add checking for invalid operand in perfix operation.
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
|
2015-08-11 13:51:37 +03:00 |
|
Andrey Shitov
|
24e307481e
|
Optimize block size calculation in functions working with linked list.
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
|
2015-08-05 14:29:51 +03:00 |
|
Ruben Ayrapetyan
|
c41f76aba2
|
Support up to 65535 items in object / array literals.
Related issue: #276
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
|
2015-08-03 15:54:53 +03:00 |
|
Ruben Ayrapetyan
|
f7781bb7bc
|
Remove intrinsics (native_call opcode).
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
|
2015-07-31 17:59:03 +03:00 |
|
Ruben Ayrapetyan
|
72d4c07bdc
|
Remove 'print' instrinsic, add 'print' implementation-defined built-in routine to the Global object.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
|
2015-07-31 17:57:59 +03:00 |
|
Ruben Ayrapetyan
|
502f4c4623
|
Split opcode and instruction entities and perform related renamings: opcode_t is now vm_instr_t, opcode position is instruction position, etc.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
|
2015-07-28 13:43:43 +03:00 |
|
Ruben Ayrapetyan
|
1990762cf0
|
Add opcode description table containing an opcode's name, name and possible type of the opcode's arguments.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
|
2015-07-28 13:43:43 +03:00 |
|
Ruben Ayrapetyan
|
d11dfc5703
|
Fix syntax check of literal duplication in FormalParameterList (strict mode).
Related issue: #381
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
|
2015-07-22 15:22:40 +03:00 |
|
Ruben Ayrapetyan
|
6ade8dfebb
|
Fix preparse_scope - consider nesting level during search for identifier tokens.
Related issue: #440
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
|
2015-07-22 14:50:57 +03:00 |
|
Szilard Ledan
|
d2457b1fc6
|
Add missing RegExp case in the token_type_to_string
JerryScript-DCO-1.0-Signed-off-by: Szilard Ledan szledan.u-szeged@partner.samsung.com
|
2015-07-16 10:04:03 +03:00 |
|
Andrey Shitov
|
4fdb5249b9
|
Restore "Fix preparsing of variable declaration lists, which are not divided by a semicolon." 06d0c1806d7ceff5192feee996c770b42bc1e1e9) that was incorrectly removed in abc2b55297eff13538fca2440d127ba79cdcc8b3.
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
|
2015-07-15 20:20:26 +03:00 |
|
Ruben Ayrapetyan
|
abc2b55297
|
Fix dump of arguments / eval usage hint in preparse_scope.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
|
2015-07-15 17:24:54 +03:00 |
|
Ruben Ayrapetyan
|
7bc2c69147
|
Temporary workaround (until parser is refactored) for fixing parse of expressions like '1 = 1'.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
|
2015-07-15 17:00:45 +03:00 |
|
Ruben Ayrapetyan
|
44b7b95781
|
Add support of ReferenceError early error to parser.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
|
2015-07-15 17:00:45 +03:00 |
|
Andrey Shitov
|
06d0c1806d
|
Fix preparsing of variable declaration lists, which are not divided by a semicolon.
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
|
2015-07-15 16:53:41 +03:00 |
|
Ruben Ayrapetyan
|
7ccec19c26
|
Fix strict mode in an object initializer's getters / setters definition.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
|
2015-07-15 13:32:02 +03:00 |
|
Andrey Shitov
|
4f58104981
|
Fix checking of semicolons in expression statements.
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
|
2015-07-15 13:15:25 +03:00 |
|
Ruben Ayrapetyan
|
0e8cb596d7
|
Fix parse of preincrement / predecrement, applied to 'obj.prop'-like expressions.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
|
2015-07-15 13:04:02 +03:00 |
|
Ruben Ayrapetyan
|
6fe78cc994
|
Temporary workaround (until parser is refactored) for fixing evaluation of simple 'identifier'-like expressions.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
|
2015-07-15 12:52:42 +03:00 |
|
Ruben Ayrapetyan
|
5e329c815c
|
Fix syntax checking of large object literals.
Related issue: #354
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
|
2015-07-15 12:41:56 +03:00 |
|
Ruben Ayrapetyan
|
73d082aa55
|
Fix parse of delete operator.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
|
2015-07-15 12:34:51 +03:00 |
|
Ruben Ayrapetyan
|
c120433158
|
Fix handling of EOF in insert_semicolon.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
|
2015-07-15 12:31:47 +03:00 |
|
Ruben Ayrapetyan
|
92bf7859af
|
Put lexer_init after setjmp in parser_parse_program, as lexer_init could raise an early error.
Related issues: #341
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
|
2015-07-14 18:42:49 +03:00 |
|
Andrey Shitov
|
1195c197e8
|
Fix syntax checking for line terminators inside regular expressions.
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
|
2015-07-14 17:58:24 +03:00 |
|
Andrey Shitov
|
f3ef9afb91
|
Fix handling of invalid HexIntegerLiterals in lexer.
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
|
2015-07-14 17:58:24 +03:00 |
|
Ruben Ayrapetyan
|
aa415c670e
|
Fix initialization of 'this' argument in 'call_n' opcode handler.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
|
2015-07-13 19:31:07 +03:00 |
|