* fix conflict in compression which is GC_free should be invoked during GC is enabled
* add GC overhead profile
* add memory dump interval option
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
* code compression could trigger another GC when it allocates compressed string on the heap
* disable GC while code compression working
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
* simplify atomicOperation function
* merge all atomic operations into SharedArrayBufferObject's member function
* fix slice builtin method to correctly perform operation atomically
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
* rename data related to PropertyHandler
* refactoring ObjectWithPropertyHandler to handle NamedProperty and IndexedProperty both
* add cctest
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
* update to common PropertyHandler data and strucuture to represent IndexedProperty and NamedProperty both
* check property name in each ObjectWithPropertyHandler method
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
* format check requires double-parsing for the same source string
* format check is necessary to filter out a few format cases only
* in general mode, format check is limited to speed up the function creation process
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
* usually property name is delivered as Value format
* replace `TemplatePropertyName` with `ObjectStructurePropertyName` to handle Value format nicely
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
* add simple syntax checker method in parser to check parameters and body string
* fix it to check parameters and body string seperately
* add several TCs for this patch too
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
gcc version 5 cannot decide how many bits are require for enum well
if there is enum has type. it generates warning but we don't need to set type into enum for gcc 5
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
* enabled by ESCARGOT_USE_CUSTOM_LOGGING flag
* user can registers customized logging through Platform's inherited functions
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
we need to mark enum as unsigned.
because processing enum in msvc is little different
ex) enum Type { A, B }
struct Foo { Type type: 1; }
Foo f; f.type = 1;
if (f.type == Type::B) { puts("failed in msvc."); }
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
* according to api, ObjectTemplate should inherit its parent's NativeDataAccessorProperties of InstanceTemplate too
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
* for gcc version >= 9.3.0
* fix errors about -Werror=class-memaccess and -Werror=ignored-qualifiers
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
* handle exceptional case of function name which is that function name needs to be allocated on the heap with other lexical variables
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
* divide BackingStore structure into NonShared and Shared
* update BackingStoreRef API to clarify its usage
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>