Commit graph

130 commits

Author SHA1 Message Date
Seonghyun Kim
3d7bbe9c6a Update function name & init member variables in debug mode
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2022-05-03 18:47:43 +09:00
Seonghyun Kim
f61cf477f4 Improve yarr performance
* 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>
2022-05-03 18:47:43 +09:00
HyukWoo Park
375e2b7dc2 Update version of WASM engine
* 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>
2022-02-22 10:06:37 +09:00
SeongHyun Kim
0af32fafde Implement build for Windows UWP
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2022-01-12 13:44:04 +09:00
SeongHyun Kim
110359e4db Update source & build files for windows
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
Signed-off-by: SeongHyun Kim <sh8281.kim@samsung.com>
2021-10-25 18:48:10 +09:00
HyukWoo Park
9f156c6dc6 Fix minor gcc build errors
* 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>
2021-10-08 16:46:59 +09:00
HyukWoo Park
aef7ba0c98 Update GC event callback registration
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-10-07 08:39:04 +09:00
HyukWoo Park
d369ca50b0 Fix clang build errors
* fix some tiny errors in wasm
* update wasm version to 1.0.24
* run tidy check in actions

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-09-29 14:35:44 +09:00
Seonghyun Kim
5185932e6d Implement Intl.ListFormat
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-09-27 16:40:21 +09:00
Seonghyun Kim
5b362cf5b9 Implement newly added function of Intl.Locale
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-09-13 10:22:27 +09:00
Seonghyun Kim
131e05f2ed Implement Intl.DisplayNames.prototype.of function
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-09-09 09:41:01 +09:00
Seonghyun Kim
155d9b6e95 Implement constructor and getResolvedOptions of Intl.DisplayNames
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-09-09 09:41:01 +09:00
Seonghyun Kim
d25c251c93 Implement basic of new IntlDateTimeFormat
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-09-01 16:37:54 +09:00
HyukWoo Park
a39423acb7 Revise CMake build script
* 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>
2021-07-30 11:28:52 +09:00
HyukWoo Park
afa76c5f68 Fix build warnings of WebAssembly build
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-07-30 11:28:52 +09:00
Seonghyun Kim
77a68579a5 Implement per thread isolating
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-07-15 17:47:41 +09:00
seonghyun kim
032145b2d4 Add ucnv_fromUnicode function on RuntimeICUBinder
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-04-20 09:09:41 +09:00
HyukWoo Park
5b164c2247 Rollback CMake minimum version to 2.8
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-03-23 16:10:11 +09:00
HyukWoo Park
b3f9c43c17 Update wabt module
* update wabt release version to 1.0.21
* add wasm-gc interface

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-03-15 15:25:04 +09:00
HyukWoo Park
6469a82116 Fix YarrPattern to correctly reference GC memory
* 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>
2021-03-11 15:19:52 +09:00
Seonghyun Kim
64e24255cb Fix memory bugs
* 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>
2021-03-04 09:35:30 +09:00
Seonghyun Kim
eb3d7667a9 Fix YarrPattern memory bug
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-03-02 13:48:38 +09:00
HyukWoo Park
30af8444ad Fix gc conflict of object kinds in debug mode
* clean up custom allocator too

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-02-17 12:04:13 +09:00
Seonghyun Kim
01e61f1242 Revise WeakMap and WeakSet
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-02-11 21:25:23 +09:00
HyukWoo Park
fef432bc71 Fix build and test errors on Ubuntu 20.04
* 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>
2021-02-05 10:15:38 +09:00
HyukWoo Park
38abe179bd Update required cmake version to 3.0.0
* cmake < 2.8.12 will be deprecated in the future

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-02-05 10:15:38 +09:00
HyukWoo Park
7159768d6b Fix rapidjson file format as to unix format
* rapidjson files have been dos format so far

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-02-03 10:36:20 +09:00
Seonghyun Kim
446afea853 Fix svace errors
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-01-28 14:37:35 +09:00
HyukWoo Park
b6499d8564 Fix memory leak in WASM
* 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>
2021-01-22 11:46:09 +09:00
HyukWoo Park
c5f310ee8c Update ExportedFunction name property
* get a function index from instance object which needs to be revised later

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-01-19 15:15:01 +09:00
Bela Toth
b2e862a4f7 Upgrade ICU tables to enable RegExp property escape tests
Removed passing tests from exclude list

Signed-off-by: Bela Toth tbela@inf.u-szeged.hu
2021-01-18 15:01:25 +09:00
HyukWoo Park
6f3d58c75d Update wabt module
* 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>
2021-01-15 11:40:23 +09:00
HyukWoo Park
8429b3a523 Implement WebAssembly.Memory
* add WASMMemoryObject
* add grow and buffer properties of Memory prototype

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2020-12-07 10:54:35 +09:00
HyukWoo Park
8adc7eaf23 Fix WASM build flags
* to reduce the overall libwasm binary size

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2020-11-27 10:03:22 +09:00
Seonghyun Kim
6320def0ab Update builtin functions & operations for BigInt
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2020-11-23 13:53:29 +09:00
Seonghyun Kim
cf26d821de Implement DataView.prototype.{get,set}{BigInt64,BigUint64}
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2020-11-23 13:53:29 +09:00
HyukWoo Park
9d2bde5baa Include wasm-c-api
* https://github.com/WebAssembly/wasm-c-api

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2020-11-18 10:32:47 +09:00
HyukWoo Park
74bf9c3233 Import WASM interpreter
* include wabt(WebAssembly Binary Toolkit) interpreter
* https://github.com/WebAssembly/wabt
* release version 1.0.20

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2020-11-13 10:12:07 +09:00
HyukWoo Park
3ebb4ea634 Remove redundant header files
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2020-11-06 17:00:18 +09:00
Seonghyun Kim
b03e0ab040 Import libbf https://bellard.org/libbf/ as third_party(2020-01-19 version)
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2020-10-14 14:15:56 +09:00
seonghyun kim
a1b464f24a Fix compile error on android ndk
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2020-09-25 10:14:53 +09:00
Seonghyun Kim
93f25c6298 Update gcutil & remove wrong assert macro
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2020-09-16 18:25:37 +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
Boram Bae
4faaa29331 Check return value of dlerror
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
2020-07-27 21:48:40 +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
bence gabor kis
d517104bed Update unicode table in third_party yarr
Related test262 test-cases has been removed (from skip list)

Signed-off-by: bence gabor kis <kisbg@inf.u-szeged.hu>
2020-06-16 08:57:01 +09:00
Seonghyun Kim
f82c81a5d2 In 64bit, we should use only 32bit for addressing
* 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>
2020-06-11 17:37:43 +09:00
Seungsoo Lee
c8e081d267 Fix an overflow bug
Change buffer size to PATH_MAX + 1

Signed-off-by: Seungsoo Lee <seungsoo47.lee@samsung.com>
2020-05-13 14:37:38 +09:00
Seonghyun Kim
a58a01e02f Implement Intl.RelativeTimeFormat
* Each Context should share supported intl locale array

Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2020-05-08 18:04:38 +09:00
Seonghyun Kim
f37bd559bb Implement Unified Intl.NumberFormat
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2020-04-28 14:47:41 +09:00