Commit graph

560 commits

Author SHA1 Message Date
HyukWoo Park
ebd5a42641 Fix backtrace info within eval code
* collect backtrace info including eval codes

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2022-05-20 08:44:14 +09:00
Zoltan Herczeg
de7aae0eba Support WebSocket close
Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2022-05-20 08:43:32 +09:00
HyukWoo Park
786cb68d27 Fix the type of prototype in Temporal
* prototype object of Temporal should be ordinary object
* fix the type of prototype as to PrototypeObject

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2022-05-11 15:59:43 +09:00
Gergo Csizi
1763b6f38d Add Temporal JavaScript feature
Signed-off-by: Gergo Csizi gergocs@inf.u-szeged.hu
2022-05-06 19:58:51 +09:00
Gergo Csizi
856a1e2045 Show information about new generated test262 excludelist
After update the excludelist with make_excludelist.py it doesn't gave
information about failing and new passing tests. This patch will fix this.

Signed-off-by: Gergo Csizi gergocs@inf.u-szeged.hu
2022-04-29 17:03:03 +09:00
HyukWoo Park
ab86e7137c Fix wrong node position in switch statement
* switch statement has the last location in switch block which incurs an index error in BreakPoint insertion
* fix switch statement to have the start position after switch keyword

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2022-04-18 17:13:58 +09:00
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
HyukWoo Park
1b38eeca32 Update Debugger to selectively generate debugging byte codes
* we can choose JS source code for debugging target
* selectively generating debugging byte code (breakpoint)
* add debugger init option (--skip=) to exclude certain source code from debugging
* rename debugger functions
* explicitly present the python version for debugger tool

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2022-03-25 17:41:23 +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
Gergo Csizi
bc02ddc1fa clean up the debugger
Removed unnecessary semicolons and brackets.

Signed-off-by: Gergo Csizi gergocs@inf.u-szeged.hu
2022-01-28 10:25:24 +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
Gergo Csizi
3a20bde083 Remove unused exception argument from debugger
Signed-off-by: Gergo Csizi gergocs@inf.u-szeged.hu
2022-01-19 21:12:34 +09:00
Gergo Csizi
4bbd9d6cc6 Add breakpoint at the end of script execution
With --wait-before-exit it can be turned on in the debugger-server or in the debugger-client.

Signed-off-by: Gergo Csizi gergocs@inf.u-szeged.hu
2022-01-18 15:27:35 +09:00
HyukWoo Park
8c51b7c9a6 Fix bugs in debugger
* fix debugger to add breakpoint at the first line
* fix debugger not to insert any breakpoint when compiling dynamic code
* add some assertion code to detect undesirable cases

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-12-03 11:57:22 +09:00
Gergo Csizi
eb509d32bd Fix delete operation in the debugger
The delete operation did not work with breakpoint index.

Signed-off-by: Gergo Csizi gergocs@inf.u-szeged.hu
2021-12-01 17:07:34 +09:00
Gergo Csizi
45675c8b0b Add --command argument for the debugger
--command takes one string which contains commands to be executed at the start of the program.
The commands must be separated with semicolon.

Signed-off-by: Gergo Csizi gergocs@inf.u-szeged.hu
2021-12-01 16:50:16 +09:00
HyukWoo Park
f68ca49933 Implement SharedArrayBuffer.prototype.grow builtin method
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-11-29 10:38:11 +09:00
Seonghyun Kim
3e6afe1c50 Improve debugger function
* Implement port option
* Set 'this' value correctly for eval in debugger
* Implement eval without stopping state
* Implement pumpDebuggerEvents function
* Remove useless variable m_thisExpressionIndex in class context information

Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-11-26 15:11:49 +09:00
Gergo Csizi
ff2c8073b7 Fix crash in debugger
There was a crash in debugger when a not existing variable was printed or evaluated.
This patch will fix this issue.

Signed-off-by: Gergo Csizi gergocs@inf.u-szeged.hu
2021-11-25 14:27:09 +09:00
Zoltan Herczeg
e3b1a9f5e6 Introduce abstract base class for debugger
Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2021-11-23 10:52:17 +09:00
Gergo Csizi
9f0574a8bd Add p command for the debugger
Signed-off-by: Gergo Csizi gergocs@inf.u-szeged.hu
2021-11-22 10:14:30 +09:00
Zoltan Herczeg
67131c43cd Fix execution resume after setting a breakpoint.
Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2021-11-15 12:02:37 +09:00
HyukWoo Park
5784b5096d Implement getter built-in methods of growable SharedArrayBuffer
* implement internal resizable sharedarray data
* update growable and maxByteLength getter builtin methods

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-11-11 15:20:43 +09:00
HyukWoo Park
de48b644dc Update test262 testsuite version
* update test262 to the latest version (commit id: 1ad9bb)

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-11-11 15:20:43 +09:00
Mate Dabis
7b400aa58f Fix python version for escargot debugger
Signed-off-by: Mate Dabis <mdabis@inf.u-szeged.hu>
2021-11-10 14:53:11 +09:00
Mate Dabis
a5035c4ad8 Fix argument checking for b (break) command in python debugger
Signed-off-by: Mate Dabis <mdabis@inf.u-szeged.hu>
2021-11-10 14:52:11 +09:00
HyukWoo Park
78b1aa7d2e Update lint checker to include cctest file
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-10-29 12:30:32 +09:00
HyukWoo Park
18449ff9a6 Implement resizable ArrayBuffer
* update some new features of resizable ArrayBuffer

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-10-29 12:30:32 +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
Mate Dabis
5530392636 Fix argument checking for object command in python debugger
JerryScript-DCO-1.0-Signed-off-by: Mate Dabis mdabis@inf.u-szeged.hu
2021-10-21 13:13:46 +09:00
Zoltan Herczeg
c2ab3e1f3d Implement backtrace recording for Promise.then calls
Furthermore rework detection of recorded backtrace.

Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2021-10-12 12:32:49 +09:00
Zoltan Herczeg
1dff039743 Implement backtrace recording for the debugger
Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2021-10-06 11:43:19 +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
988492a339 Add toStringTag into Intl Object
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
acf49742d1 Fix Symbol of Intl.PluralRules
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
Zoltan Herczeg
ed55d51384 Support default class constructors in the debugger
These functions have no source code and should be ignored by the debugger

Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2021-09-03 17:05:32 +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
Seonghyun Kim
5f6b42c5bc Update locale info
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-09-01 16:37:54 +09:00
Seonghyun Kim
11ab2b42f6 Update AsyncFromSyncIteratorPrototype functions because spec is updated
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-09-01 16:37:54 +09:00
HyukWoo Park
d6eb9fec6f Update Error cause
* https://tc39.es/proposal-error-cause

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-08-30 10:00:12 +09:00
HyukWoo Park
98ec4e5cab Implement TypedArray.prototype.findLast and TypedArray.prototype.findLastIndex
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-08-25 11:19:36 +09:00
Zoltan Herczeg
ff4d4d593d Add debugger test cases for class fields
Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2021-08-24 15:26:23 +09:00
HyukWoo Park
b1aec3b7b9 Implement Object.hasOwn property
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-08-24 12:30:55 +09:00
Seonghyun Kim
a07fe9ed1e Use Function's Context when throw exception
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-08-18 15:04:09 +09:00
Seonghyun Kim
8d63665e28 Implement Array.prototype.findLast, findLastIndex
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-08-18 15:04:09 +09:00
Seonghyun Kim
8a51147dc9 Update test262 test suite
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-08-18 15:04:09 +09:00