* In interpreter we can use ByteTerm* instead of int for program counter
* Too big inline function is not good for performance
* considering utf-16 string is only needed for UChar not LChar
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
* enable exception in wabt engine because Escargot function invoked from wasm function could trigger an exception
* fix compile warning
* fix Thread to be reclaimed after each wasm function call
* extend wasm gc interval
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>
* remove target specific cmake files and merge it into one cmake file (target.cmake)
* refactoring some cmake commands
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
* String values in m_namedGroupToParenIndex are referenced by m_captureGroupNames (GC vector)
* m_namedForwardReferences only needs to be allocated as GC vector
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
* Init YarrPattern::m_body variable
* Remove Objects finalizer in finalizer of WeakMap,Set
* Use correct finalizer for Intl Objects
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
* fix github actions to use python2
* fix clang 10.0.0 build error related to '-Wdeprecated-copy'
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
* add wasm_extern_vec_delete_with_size api to handle exception cases during the imports reading
* wasm_extern_vec_t is now correctly deallocated
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
* fetch the lastest commit which includes importtypes patch
* add wasm_instance_func_index api for function name
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
* 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>
* Add cctest for Object, FunctionTemplates
* Fix one of EncodedValue <-> EncodedSmallValue conversion bug
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
* Object, Array, Environment record internal space should use 32bit addressing on 64bit
* Rename SmallValue to EncodedValue.
* Implement EncodedSmallValue for using 32bit address on 64bit
* Implement special vectors for EncodedSmallValue.
- we need these special vector. because when push_back or inserting the value what we want to insert
can be removed by GC because the parameter type is 32bit(EncodedSmallValue).
* Update GCutil for 32bit addressing on 64bit
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>