Commit graph

20 commits

Author SHA1 Message Date
Patrick Kim
ad0cecbd0d Implement lazy-creation of arguments object. (#361)
* Store ArgumentsObject into Env record with functionObject
* Introduce gc memory leak checker
* Don't save stack pointer in ArgumentsObject

Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2019-08-13 17:00:03 +09:00
Patrick Kim
8c1cd3b2b5 Make to run test cases faster (#351)
* Make to run chakracore, v8, jsc-stress test parallelly
* Make to call backtrace() faster on test262. this improves running speed of debug binary.

Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2019-08-06 18:55:48 +09:00
Patrick Kim
2a54ab5e02 Update lexical environment stuffs (#327)
* treat variable in catch() as let
* add lexical environment record data into global environment for saving global permanently
* re-implement variable access bytecode generation
* re-implement class initialize operation
* re-implement global variable access bytecode for support lexcial variables in global
* fix bugs related with per-iteration lexical environment in for-statement

Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2019-07-26 13:16:44 +09:00
Patrick Kim
c0c83ad0d6 Prepare for implementing es2015 specs (#304)
* Remove ES2015, PROMISE, PROXY, TYPEDARRAY defines
* Change test262 from 5.1 to 2015

Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2019-07-04 15:18:23 +09:00
Hyukwoo Park
6577d2dac9 Merge parsing and bytecode generation process (#297)
* in most cases, parsing and bytecode generation process runs sequentially
* parsing error throws SyntaxError exception inside sandbox and this exception will be catched by the sandbox
* clear up some complicated code

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2019-07-04 15:17:27 +09:00
Hyukwoo Park
0671880845 Update isCallable check function according to call operation (#290)
* isFunction is replaced with isCallable check function
* call operations in Promise / TypedArray are fixed

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2019-06-19 16:51:30 +09:00
Zoltan Herczeg
91dc4ba8f7 Merge ExecutionContext and ExecutionState. (#281)
State without Context is rare, and the merged structure consumes less amount of memory.

Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2019-06-19 10:45:00 +09:00
Roland Takacs
71ed729760 Add memory statistics feature to the project. (#220)
Added a boehm-gc heap usage monitoring feature to the project.
A runtim flag (--mem-stats) helps to show the collected informaion.

Renamed ESCARGOT_PROFILE_MASSIF to ESCARGOT_MEM_STATS in the CMake.
Of course, Valgrind based tools still can be used. In this case, the
project should be compiled with ESCARGOT_VALGRIND definition.

Signed-off-by: Roland Takacs <rtakacs.uszeged@partner.samsung.com>
2019-05-08 13:55:30 +09:00
Patrick Kim
0d2d0bdaf2 Use std::mt19937 instead of rand() function for Math.random() builtin (#207)
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2019-04-23 15:26:39 +09:00
Hyukwoo Park
0b023f8143 Update NullablePtr implementation to include assert statement (#147)
* change to include assert guard code for getValue of NullablePtr
* when exception occurred, the result value is set to undefined which is never used but to avoid guard fail in NullablePtr

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2019-03-18 18:08:54 +09:00
Akos Kiss
b1911d3d6d Some VENDORTEST-related macro guard cleanup in shell (#12)
Signed-off-by: Akos Kiss <akiss@inf.u-szeged.hu>
2018-12-17 13:28:53 +09:00
김승현/Tizen Platform Lab(SR)/Engineer/삼성전자
6b76791e32 Make compilable in clang (#71)
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2018-05-04 16:44:19 +09:00
이승수/Tizen Platform Lab(SR)/Senior Engineer/삼성전자
28de827199 Change default license to LGPL license (#60)
* Update build spec file
* Add License files

Signed-off-by: Seungsoo Lee <seungsoo47.lee@samsung.com>
2018-03-07 18:38:28 +09:00
김승현/Web Platform Lab(S/W센터)/Engineer/삼성전자
13808ec66a Promise jobs should use it's saved Context value (#29)
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2017-11-23 17:37:21 +09:00
Youngil Choi
3148b0a2b1 Update license clauses
Signed-off-by: Youngil Choi <duddlf.choi@samsung.com>
2017-06-12 11:14:17 +09:00
seonghyun kim
dbc21192e3 implement Promise, gc, virtual property, virtual id things
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2017-05-25 13:15:38 +09:00
seonghyun kim
c4bc84def6 1. optimize esprima_cpp
2. update android bdwgc build flags

Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2017-04-12 21:28:01 +09:00
seonghyun kim
5d56fd2bb4 1. do not ASTScopeContext explicitly. it is used by ByteCode-genaration
2. alloc esprima::Error as Non-GC type.
 - it can be thrown. but, bdwgc can not see try-catch variable area.
3. Use own context when eval, function are invoked.
4. implement fake-Realm class for v8 vender test

Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2017-03-24 19:03:27 +09:00
Youngil Choi
e02af7daf8 Add License Clauses
Signed-off-by: Youngil Choi <duddlf.choi@samsung.com>
2017-03-10 18:06:20 +09:00
Sanggyu Lee
834696d331 Add evaluateScript and EscargotAPICast.h
- Also renamed shell.cpp to Shell.cpp.
- Next, I will add StringRef APIs and expose ScriptSandboxExecuteResult
and add testcase for evaluateScript.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
2017-03-09 13:58:31 +09:00
Renamed from src/shell/shell.cpp (Browse further)