Andrey Shitov
311cc65b33
Implement snapshot functionality.
...
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
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 [email protected]
2015-09-09 18:07:20 +03:00
Andrey Shitov
e4843ece76
Fix processing of elision in array literal.
...
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
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 [email protected]
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 [email protected]
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 [email protected]
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 [email protected]
2015-08-19 14:16:04 +03:00
Andrey Shitov
0d855e898d
Fix hoisting of function declaration from function expressions.
...
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
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 [email protected]
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 [email protected]
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 [email protected]
2015-08-11 13:51:37 +03:00
Andrey Shitov
1aa04a287d
Optimize lit_get_magic_string_utf8.
...
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
2015-08-05 16:22:04 +03:00
Andrey Shitov
24e307481e
Optimize block size calculation in functions working with linked list.
...
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
2015-08-05 14:29:51 +03:00
Andrey Shitov
382b2b48b7
Optimize lit_find_literal_by_utf8_string by adding hash comparison.
...
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
2015-07-28 16:04:00 +03:00
Andrey Shitov
9766feda2e
Change jerry_api_string_to_char_buffer so it doesn't add '\0' to the end of output buffer.
...
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
2015-07-28 15:54:55 +03:00
Andrey Shitov
656908ecaf
Optimize lit_char_is_unicode_letter.
...
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
2015-07-28 14:48:45 +03:00
Andrey Shitov
4fdb5249b9
Restore "Fix preparsing of variable declaration lists, which are not divided by a semicolon." 06d0c1806d) that was incorrectly removed in abc2b55297.
...
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
2015-07-15 20:20:26 +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 [email protected]
2015-07-15 16:53:41 +03:00
Andrey Shitov
4f58104981
Fix checking of semicolons in expression statements.
...
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
2015-07-15 13:15:25 +03:00
Andrey Shitov
1195c197e8
Fix syntax checking for line terminators inside regular expressions.
...
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
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 [email protected]
2015-07-14 17:58:24 +03:00
Andrey Shitov
cf2bc459bb
Support unicode whitespaces in string-to-number conversion.
...
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
2015-07-13 18:33:05 +03:00
Andrey Shitov
b3fa7d9765
Fix function skipping in preparse_scope: properly detect usage of 'function' keyword as property name.
...
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
2015-07-13 18:01:18 +03:00
Andrey Shitov
7f1a7981b9
Support true, false, null as property names.
...
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
2015-07-13 18:01:17 +03:00
Andrey Shitov
60bd718fb5
Fix assertion !lit_utf8_iterator_is_eos (iter_p) in lexer.
...
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
2015-07-13 18:01:17 +03:00
Andrey Shitov
64bbf2752e
Fix printing of the source line with syntax error.
...
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
2015-07-13 18:01:17 +03:00
Andrey Shitov
dbf3708255
Fix concatenating of surrogates.
...
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
2015-07-10 10:23:20 +03:00
Andrey Shitov
d5fd0b09b1
Properly process Use Strict which contains EscapeSeqence or LineContinuation.
...
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
2015-07-09 12:43:13 +03:00
Andrey Shitov
17cdc35d6d
Fix detection of Use Strict directive not in the start of Directive Prologue.
...
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
2015-07-09 12:43:03 +03:00
Andrey Shitov
146ac15b5f
Change locus type from size_t to lit_utf8_iterator_pos_t.
...
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
2015-07-08 15:53:33 +03:00
Andrey Shitov
32318137c3
Switch lexer to utf8 iterators.
...
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
2015-07-08 15:51:24 +03:00
Andrey Shitov
d248d0944c
Add helper functions for implementing unicode support in lexer.
...
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
2015-07-08 15:51:02 +03:00
Andrey Shitov
ae3eea8ae8
Add functions for iterating utf-8 strings.
...
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
2015-07-03 13:24:27 +03:00
Andrey Shitov
fd9ff8e3bd
Add core unicode functionality.
...
Add utf-8 processing routines.
Change ecma_char_t from char/uint16_t to uint16_t.
Apply all utf-8 processing routines.
Change char to jerry_api_char in API functions' declarations.
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
2015-06-29 23:27:58 +03:00
Andrey Shitov
c4b0cd2196
Change ecma_length_t and jerry_api_length_t from uint16_t to uint32_t.
...
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
2015-06-29 23:27:58 +03:00
Andrey Shitov
a0c5974ab8
Move char type definitions and magic string processing functions to literal component.
...
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
2015-06-29 23:27:58 +03:00
Andrey Shitov
a293e21147
Introduce JERRY_DISABLE_HEAVY_DEBUG preprocessor definiton to speed up debug version of the engine.
...
Heavy debug is enabled only for unit tests.
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
2015-06-17 11:29:35 +03:00
Andrey Shitov
3577261261
Add support for eval in parser.
...
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
2015-06-13 18:01:30 +03:00
Andrey Shitov
53801e3b41
Replace array of literals with literal storage.
...
JerryScript-DCO-1.0-Signed-off-by: Evgeny Gavrin [email protected]
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
2015-06-10 21:40:10 +03:00
Andrey Shitov
340a9ef002
Add literal storage, literal_t type and functions for its processing.
...
JerryScript-DCO-1.0-Signed-off-by: Evgeny Gavrin [email protected]
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
2015-06-10 21:40:10 +03:00
Andrey Shitov
528a333e17
Implement recordset iterators
...
JerryScript-DCO-1.0-Signed-off-by: Evgeny Gavrin [email protected]
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
2015-06-10 21:40:00 +03:00
Andrey Shitov
55b43071d1
Add indentation checks for code inside classes and fix appeared issues.
...
Fix asserts in test_recordset.cpp.
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
2015-06-09 00:30:20 +03:00
Andrey Shitov
d6c9c5911e
Add logging support for linux.
...
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
2015-05-20 15:28:36 +03:00
Andrey Shitov
9763a93df3
Add new coding style rules and fix appeared issues.
...
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
2015-05-14 14:44:57 +03:00
Andrey Shitov
b496e68d27
Fix missing var_decl.
...
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
2015-04-30 20:49:25 +03:00
Andrey Shitov
0c7d358157
Fix invalid processing of keyword literals.
2015-04-14 14:28:39 +03:00
Andrey Shitov
7c67606b00
Parser refactoring. Remove deserializer notion.
2015-04-07 13:05:19 +03:00
Andrey Shitov
e459ab7d64
Optimize parser memory consumption. Remove 'prev' and 'block_size' fields form the linked list structure. Remove 'magic' field from structures used in parser.
2015-04-01 11:48:23 +03:00
Andrey Shitov
ac7edde72e
Fixed --mem-stats flag.
2015-03-30 11:31:09 +03:00