Commit graph

33 commits

Author SHA1 Message Date
HyukWoo Park
09c78e357d Fix a minor bug in DoubleInEncodedValue conversion
* DoubleInEncodedValue might have an integer value that is also not a small integer (SMI)
* When converting to Value, DoubleInEncodedValue should be correctly converted to the original value using Value(double) constructor
* fix test runner to run cctest for x86 environment

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2022-04-08 10:25:12 +09:00
Seonghyun Kim
e245fe2871 Implement InlineCache in Object initialize
* Prevent too many recursive call with RopeString::charAt
* Add option to configure ObjectStructure

Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2022-03-03 15:31:38 +09:00
Gergo Csizi
64b0d56ccb Migrate the debugger from python2 to python3
Signed-off-by: Gergo Csizi gergocs@inf.u-szeged.hu
2022-01-27 11:28:55 +09:00
Zoltan Herczeg
a481cd6dd8 Start creating a debugger API
- The debugger callbacks are implemented as class
- Using std::vector for storing data

Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2021-12-10 16:46:22 +09:00
HyukWoo Park
01f988160a Fix slow test run in actions
* exclude octane test for small configuration due to low performance

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-11-26 14:23:49 +09:00
HyukWoo Park
4366a01196 Update customized logging
* 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>
2021-10-29 12:30:46 +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
Ryan Hyun Choi
e479b456a9 Fix SharedArrayBuffer's create()
* Enable threading in api-test
* Add a SharedArrayBuffer test

Signed-off-by: Ryan Choi <ryan.choi@samsung.com>
2021-10-14 16:43:10 +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
HyukWoo Park
a3aedf3fc5 Update CI for small build configuration
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-06-29 17:16:05 +09:00
HyukWoo Park
a30be877b3 Update CI for threading test
* move x86 test to github actions
* Jenkins evaluates threading features on test262 TC

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-06-17 11:09:33 +09:00
HyukWoo Park
a16fcc9412 Update es-actions to test various build options within x64 environment
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-05-26 09:36:47 +09:00
HyukWoo Park
4423397fca Drop the package update command in es-actions
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-05-18 17:30:39 +09:00
HyukWoo Park
28fad70183 Rebalance CI workload
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-05-14 09:43:47 +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
28fad835a2 Fix build errors in github actions
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-02-01 11:29:19 +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
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
53941e1b3a Fix coverity check
* fix conflict with 'typeof' keyword
* include WASM module to coverity scan analysis

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-01-04 18:40:54 +09:00
HyukWoo Park
0265112e48 Enable WebAssembly.Module imports builtin method with temporal wabt patch update
* imports related features will be updated officially soon

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2020-12-21 13:55:45 +09:00
HyukWoo Park
40b927adba Update wasm-js testsuite
* https://github.com/WebAssembly/spec/tree/master/test/js-api

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2020-11-19 21:33:47 +09:00
HyukWoo Park
0950b63ebb Add WASM spec test
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2020-11-13 15:13:54 +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
897a1d2ae5 Fix some minor defects and build errors
* fix defects checked by static analysis
* fix Jenkins and actions build script

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2020-10-23 11:28:08 +09:00
HyukWoo Park
f72bf64c69 Add cache replacement policy for CodeCache
* to keep overall file operations as small as possible,
  remove only the least recently written cache file
* trigger cache replacement when the number of cache reaches the limit
* add octane loading TC for codecache test

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2020-09-23 13:55:21 +09:00
HyukWoo Park
0e51df514e Handle CodeCache file I/O errors
* first, try to lock cache directory to enable CodeCache
* if file I/O fails, stop caching and remove all cache files
* flush and sync files when writing cache
* add tests to check file error cases

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2020-09-18 13:38:50 +09:00
HyukWoo Park
ae21ea534b Update CodeCache file management
* calculate cache file directory based on $HOME env
* handle all cache list in one file
* use source code's hash value for its cache data file name

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2020-09-16 18:27:30 +09:00
HyukWoo Park
3fe7189d28 Merge caching data into one data file
* CodeCache generates one meta file and data file for each JS file
* enable coverity scan to check CodeCache too

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2020-09-14 11:19:18 +09:00
HyukWoo Park
5d80acd6c3 Update github actions
* add cctest, debugger test and clang build jobs
* disable travis and some jobs in Jenkins
* enable coverity scan only for push event

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2020-09-08 11:02:47 +09:00
HyukWoo Park
b7f8a34b0e Add codecache test for x86 environment
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2020-08-25 11:38:57 +09:00
HyukWoo Park
dbe6cd0e70 Handle exception cases in CodeCache
* handle ThrowStaticErrorOperation bytecode with default error message
* LoadRegexp bytecode could have empty string as its option string
* test on new-es benchmarks

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2020-08-24 14:04:52 +09:00
HyukWoo Park
c226d3e888 Add actions to test code cache
* print code cache logs for test mode

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2020-08-20 15:02:32 +09:00