Ruben Ayrapetyan
fb6e205d0d
Moving to replacement of on-stack ecma_object_t* with managed ecma_object_ptr_t.
2015-02-04 18:14:04 +03:00
Ruben Ayrapetyan
f37a5085f6
Converting ecma_completion_value_t to class derived from ecma_value_t with additional field with for completion type and related operations.
...
Completion value are now returned through ecma_completion_value_t &ret_value argument.
2015-01-30 23:16:45 +03:00
Ruben Ayrapetyan
00afd4e0e2
Converting ecma_value_t to class that is used for on-stack storage of ecma-values.
...
Original ecma_value_t is renamed to ecma_value_packed_t and is used for on-heap storage.
Copy and move constructors, move assignment operator of ecma_value_t are not created.
New ecma-value return convention is introduced: ecma-values are now returned through ecma_value_t &ret_val argument.
2015-01-30 22:53:06 +03:00
Ruben Ayrapetyan
57f645c18c
Passing ecma_value_t arguments by const reference instead of by value.
2015-01-23 20:22:21 +03:00
Ruben Ayrapetyan
cd41b236d9
Statistics of memory usage during interpretation.
2014-09-16 21:19:07 +04:00
Ruben Ayrapetyan
16cbe0c63b
Removing try_get_string_by_idx and get_number_by_idx.
2014-08-28 21:19:44 +04:00
Ruben Ayrapetyan
32ba30ddef
Extracting interpreter loop from run_int_from_pos.
2014-08-26 20:20:33 +04:00
e.gavrin
a99907670b
OPCODE define replaced with opcode_t. T_IDX define replaced with idx_t.
2014-08-23 00:53:41 +04:00
e.gavrin
d4a9d9430e
Refactoring of libcoreint part1
2014-08-23 00:16:56 +04:00
Ruben Ayrapetyan
b582d56ecb
Implementing opfunc_decl_1, opfunc_decl_2.
2014-08-15 18:30:47 +04:00
e.gavrin
d40c21b616
Fixes for interpreter.*
2014-08-12 00:53:40 +04:00
Ruben Ayrapetyan
cc4d55803c
Fix func_decl_0: correctly set interpreter's opcode counter.
2014-08-07 19:35:11 +04:00
Ruben Ayrapetyan
b50e091b08
Renaming opcode_idx_t to opcode_counter_t.
2014-07-30 21:54:53 +04:00
Ruben Ayrapetyan
4ebf551525
Renaming interp_bytecode_idx to op_idx_t.
2014-07-30 21:52:17 +04:00
Ruben Ayrapetyan
e540590ddd
Partial implementation of function call routine ([[Call]]).
2014-07-30 20:34:04 +04:00
Ruben Ayrapetyan
c1d0a4dd13
Introducing interp_bytecode_idx type for opcode indexes.
2014-07-30 14:34:31 +04:00
Ruben Ayrapetyan
b7a3a13bc9
Implementing register variables.
2014-07-24 18:13:32 +04:00
Ruben Ayrapetyan
bc0c7824c2
Renaming ecma_* identifiers from 'camelCase' to 'underscore_naming'.
2014-07-23 12:54:56 +04:00
Ruben Ayrapetyan
7a0612d441
Adding is_strict flag to interpreter context.
2014-07-21 20:24:48 +04:00
Ruben Ayrapetyan
84131d9a28
Introducing get_number_by_idx interface for retrieving literal number value by it's identifier. Change ecma_Number_t type from double to float.
2014-07-21 19:16:08 +04:00
Ruben Ayrapetyan
ef51126aab
Adding boolean return value, indicating whether script execution finished with success or failure, to run_int. Moving opcode loop from run_int to run_int_from_pos.
2014-07-18 12:27:17 +04:00
Ruben Ayrapetyan
f7abe7190d
Implementing var_decl opcode.
2014-07-17 22:02:07 +04:00
Ruben Ayrapetyan
819b947445
Introducing try_get_string_by_idx interface for retrieving literal string value by it's identifier.
2014-07-17 21:07:25 +04:00
e.gavrin
73bf0f9be1
remove unused gen_bytecode and save_op_data
2014-07-16 23:03:58 +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
Ilmir Usmanov
2d4b325d24
Fix warnings
2014-07-10 11:01:40 +04:00
e.gavrin
7c55a15002
uncomment assert (opcode <=4)
2014-07-09 19:58:28 +04:00
Ilmir Usmanov
a2350cb88e
Change parser to stack-only version
2014-07-09 18:05:19 +04:00
Ilmir Usmanov
f46d5b440c
Merge line-by-line parser
2014-07-09 16:17:42 +04:00
e.gavrin
f18a5f5e31
opcodes + refined int structure
2014-07-08 13:18:00 +04:00
e.gavrin
8ab8adb031
fixed
2014-07-07 11:55:10 +04:00
e.gavrin
2091bfb9e4
opcodes
2014-07-04 23:51:42 +04:00
e.gavrin
aace544c55
fixed Makefile and tests, wrapped interpreter and opcodes
2014-07-04 21:34:44 +04:00
e.gavrin
7759e4b99f
fixes
2014-07-04 19:08:21 +04:00
e.gavrin
052efb86a9
jmps
2014-07-03 19:22:36 +04:00
e.gavrin
3fde3400f4
manualy generated blinky opcodes
2014-07-03 16:23:25 +04:00
e.gavrin
eb38816fc4
new generated file + genscript + skeleton of interpreter
2014-07-02 16:42:03 +04:00