seonghyun kim
30969cc0a3
1. track using identifier correctly in esprima
...
2. remove useless new operation
3. use Indexed storage for CodeBlock has arguments binding
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2017-02-02 12:17:04 +09:00
seonghyun kim
389e767ae8
use indexed load/store for catch block partially
...
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2017-01-23 13:50:48 +09:00
seonghyun kim
2fc34d628a
1. use typed allocate for all long-live objects
...
2. implicitly delete AST when ast is useless
3. allocate String::emptyString correctly
4. hide ptr in LeakChecker for better tracing
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2017-01-20 15:51:47 +09:00
seonghyun kim
dbbbdf2374
allocate almost gc objects as typed gc object
...
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2017-01-18 20:28:45 +09:00
seonghyun kim
fd9fc94072
1. reduce byteCode Register size
...
2. remove ast implicitly when use less avoiding memory leak
3. change ByteCodeBlockData gc type into atomic
4. add literal info into ByteCodeBlock
5. force enable eager sweep
6. divide GC_mark_and_push_custom into GC_mark_and_push_custom_iterable and GC_mark_and_push_custom
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2017-01-17 18:27:24 +09:00
seonghyun kim
a644f0befe
fix function name binding bug
...
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2017-01-06 13:00:44 +09:00
seonghyun kim
c970d99552
1. fix bug in Object::nextIndex*
...
2. implement ::generateCodeBlockTreeFromASTWalkerPostProcess
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2017-01-04 15:22:12 +09:00
seonghyun kim
a85ee09334
re-implement arguments object binding
...
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2017-01-02 16:10:26 +09:00
Junyoung Cho
5d2a2927ae
Mark ancester code blocks as heap-allocated if code block has captured variables
...
**ref: ch10/10.4/10.4.3/10.4.3-1-102-s.js
2016-12-28 19:46:12 +09:00
seonghyun kim
5bca24da82
1. implement ObjectDefineOwnPropertyOperation
...
2. Add errorcode in ScriptError
3. Fix array length bug
4. Fix ObjectPropertyDescriptor::ObjectPropertyDescriptor(ExecutionState& state, Object* obj)
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2016-12-23 22:21:22 +09:00
seonghyun kim
12e538992b
implement arguments object
...
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2016-12-23 16:11:49 +09:00
Junyoung Cho
0faef8219f
- Apply strict within eval from outside strict context
...
- Fix octal bug in parser
2016-12-23 10:19:51 +09:00
Junyoung Cho
4964d66df8
Fix finding has_catch in Global Code block. Modify binding methods of Global enviroment.
2016-12-22 13:38:31 +09:00
seonghyun kim
ba6400045c
implement basic of try-catch statement
...
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2016-12-13 13:23:14 +09:00
seonghyun kim
35142d1c6a
implement eval
...
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2016-12-12 14:34:31 +09:00
seonghyun kim
fc16b3a774
implement Math.pow
...
this patch pass math-cordic.js math-partial-sums.js math-spectral-norm.js
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2016-12-09 15:10:34 +09:00
seonghyun kim
8acbfcfe52
1. split Vector into TightVector and Vector
...
2. implement basic of DateObject
3. implement continue statement
this patch passes 3d-raytrace.js
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2016-12-09 13:56:54 +09:00
Junyoung Cho
f7a22f54fc
Apply clang-formatting
2016-12-08 14:53:01 +09:00
seonghyun kim
288b147659
1. implement tracing stack when got exception
...
2. binding function name
3. implement sandbox for isolate throw exception
4. implement object expression
5. implement get, set object operation
6. implement logical and, or operation
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2016-12-06 22:22:04 +09:00
seonghyun kim
ef2987e8b4
1. implement binary operations (+, -, *...)
...
2. implement assigment complex cases( +=, -=...)
3. implement update expressions (++, --)
4. implement if, for statement
5. implement RopeString
6. implement throw statement
this patch passes bitops-bitwise-and.js, bitops-3bit-bits-in-byte.js
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2016-12-05 21:49:42 +09:00
seonghyun kim
d587becaf3
1. implement indexed Storages for function
...
2. implement function call
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2016-12-01 14:43:06 +09:00
seonghyun kim
a545adebf5
implement declare var, Function Decl, Function Expression
...
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2016-11-30 19:01:37 +09:00
seonghyun kim
7c47c6ed51
1. implement simple ByteCode (load, store, binary plus)
...
2. implement simple ByteCodeInterpreter
3. implement simple global env
we can run very simple script likes below now
a = b = 1;
b = a + 2;
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2016-11-29 22:40:21 +09:00
seonghyun kim
3e1787dd85
implement basic object operation(get,set ownproperty)
...
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2016-11-24 17:54:47 +09:00
seonghyun kim
9cff64f7a6
implement generate CodeBlock tree in ScriptParser
...
you can see dump of CodeBlock tree with DUMP_CODEBLOCK_TREE=1 option(setenv)
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2016-11-23 22:00:38 +09:00
seonghyun kim
485fbc25af
initial commit
...
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2016-11-17 22:19:49 +09:00