Commit graph

22 commits

Author SHA1 Message Date
Seonghyun Kim
8444ae515f Add receiver parameter to NamedPropertyHandlers
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-05-11 11:51:17 +09:00
Seonghyun Kim
480d567c1e Add a test for new public API ObjectTemplateRef::installTo
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-05-06 15:47:07 +09:00
Seonghyun Kim
f6760e1974 Add new NativeDataAccessor property test
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-05-03 19:02:49 +09:00
Seonghyun Kim
a30990e351 Add BackingStore test first
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-04-21 16:27:46 +09:00
Seonghyun Kim
11ff71be71 Implement TemplateNamedPropertyHandlerGetPropertyDescriptorCallback on ObjectTemplate
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-03-30 09:03:42 +09:00
Seonghyun Kim
ec3fd74882 Update public API
* Add const for ObjectPropertyDescriptorRef member functions
* Add FunctionTemplateRef::setName

Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-03-30 09:03:42 +09:00
HyukWoo Park
90522697eb Refactoring Job
* all types of job now handled in the task queue

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-02-16 09:34:31 +09:00
Seonghyun Kim
ccdf475f9b Implement new config for smaller device
* In small config, we turn off SyntaxChecker for small binary size
* CompressibleString should get VMInstance instead of Context
* If ICU is disabled, we don't need unicode information in yarr
* Remove unused variable in yarr(RegExpJitTables)
* Fix lz4 compile error

Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2020-08-06 14:07:11 +09:00
Seonghyun Kim
ba4763e888 Implement runtime part of dynamic-import
* Implement one of parsing error of module
* Fix one of stack usage error on FunctionObjectInlines

Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2020-07-30 11:56:17 +09:00
Seonghyun Kim
25588dcb01 Implement NamedPropertyHandler API to ObjectTemplate
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2020-07-23 15:19:31 +09:00
Seonghyun Kim
906dbc6409 Add new api for Template
* Embedders can control (ESCARGOT_COMPRESSIBLE_COMPRESS_*) when compiling

Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2020-07-17 11:30:04 +09:00
Seonghyun Kim
ca9b832a77 Introduce Object, FunctionTemplate
* Add cctest for Object, FunctionTemplates
* Fix one of EncodedValue <-> EncodedSmallValue conversion bug

Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2020-06-29 12:38:39 +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
b5eb18a2dc implement more basic things in api layer
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2017-05-23 20:53:26 +09:00
Sanggyu Lee
7731895659 Add ObjectRef.getProperty and revise ValueRef, ObjectRef.
I changed the interface class implementation (using inheritance).

It has folowing benefit:
- It is easy to understand and intuitive.
  every objectref is valueref.
- It get rid of stuffs like
  member field intptr_t v, operator ValueRef() ...

Also, I added StringRef.fromUTF8().

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
2017-03-20 19:48:26 +09:00
Sanggyu Lee
80b6581b57 Add ObjectRef.makeObject, ValueRef.to(Boolean|Number),isObject
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
2017-03-14 16:16:08 +09:00
Sanggyu Lee
664e6b91e0 Add ValueRef::(is|make)(Boolean|Number|Null|Undefined)
Also changed 1st parameters from ContextRef* to ExecutionStateRef*.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
2017-03-14 09:37:43 +09:00
Sanggyu Lee
b56bea2f29 Add VMInstanceRef|ContextRef|ExecutionStateRef APIs
- Added VMInstaceRef::destroy(), VMInstanceRef::globalObject(),
 ContextRef::destroy(), ExecutionStateRef::destroy().
- Refined testapi.cpp.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
2017-03-10 15:08:24 +09:00
Sanggyu Lee
00d8c7ed31 Add StringRef::fromASCII and add evaluateScript testcase
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
2017-03-09 15:24:32 +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
Sanggyu Lee
96441c64c9 Add C++ unittest build script and initial testcase
- Enable shared library building
- Turn off promise on unittest build
 : For promise, the client must provide code for class JobQueue.
   There is documentation. Fortunately we don't need it in current unittest.
- Fix not-enclosed promise code in Object.cpp

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
2017-03-07 14:35:53 +09:00