Seonghyun Kim
50215a5ce8
Check wrong input in Serializer::deserializeFrom
...
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2026-04-08 10:00:03 +09:00
Máté Tokodi
97e8115ab1
Add basics of Chrome Devtools debugger support
...
- Use routing table for request dispatch in DebuggerHttpRouter, for
handling choosing which debugger stack to use based on the http
upgrade request:
- DebuggerEscargot for the python debugger and VSCode
- DebuggerDevtools for connecting to Chrome Devtools
- Parse mesasges with 16bit message size
- Reply to the first few messages chrome sends
- Refactor Debugger:
- Rename DebuggerRemote to DebuggerEscargot
- DebuggerEscargot and DebuggerDevtools inherit from
DebuggerTcp which inherits from Debugger
- Add debugger info to README.md
Signed-off-by: Máté Tokodi <mate.tokodi@szteszoftver.hu>
2026-03-28 13:08:51 +09:00
Seonghyun Kim
32281e3d22
Update processMemoryUsage function for posix
...
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2026-02-05 16:56:44 +09:00
Seonghyun Kim
ea826db76a
Add thread memory usage test case
...
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2026-02-04 17:21:25 +09:00
Ivan Maidanski
d017677d54
Change build scripts after move bdwgc files to gcutil repository root
...
Change `GCutil/bdwgc` to `GCutil` in escargot.spec, android CMakeLists.txt.
Remove `-I .../GCutil/bdwgc -I .../GCutil/bdwgc/include/gc`.
Signed-off-by: Ivan Maidanski <ivmai@mail.ru>
2025-11-19 16:06:58 +09:00
Seonghyun Kim
d92a795390
Update clang-format version to 20
...
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2025-07-01 18:39:28 +09:00
Seonghyun Kim
3aff294c29
Change default Memory::setGCFrequency value to 12 due to bdwgc update
...
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2025-05-07 11:11:38 +09:00
Seonghyun Kim
e2423b2428
Fix shell and test262 driver bug
...
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2024-07-04 13:41:04 +09:00
HyukWoo Park
babcedce95
Adjust buffer size of source code loading
...
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2024-03-20 14:57:06 +09:00
HyukWoo Park
5ee4a5bd4e
Fix buffer overflow error in builtinHelperFileRead method
...
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2024-03-15 09:30:40 +09:00
Seonghyun Kim
9a5c1b57a9
Add google-perf build option
...
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2024-02-01 10:49:00 +09:00
HyukWoo Park
f09fe2a4c0
Fix buffer overflow in text reading
...
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2024-01-16 15:59:02 +09:00
Seonghyun Kim
799bc4fcc9
Fix global-await issue
...
* Print unhandled reject error for developer in shell
* Fix await expression parsing bug
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2023-12-01 10:47:36 +09:00
Seonghyun Kim
4913754c32
Implement building with clang-cl
...
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2023-07-12 16:46:42 +09:00
Seonghyun Kim
1353d2e1a5
update shell
...
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2023-07-07 09:20:04 +09:00
Seonghyun Kim
0596de75c8
Update windows build
...
* using cmake instead of maintain another files for windows
* delete own ICU build files for windows
* Fix some bugs running on windows
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2023-06-22 13:31:23 +09:00
Seonghyun Kim
0c1a12541b
Update test driver
...
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2023-05-30 11:47:58 +09:00
Seonghyun Kim
eb1380ea95
Implement SIGSEGV, SIGABRT handler for easier debugging on android
...
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2023-05-19 13:45:56 +09:00
Seonghyun Kim
fbbad63f6e
Update android build files
...
* build libescargot as static in android
* Add native shell build in order to run test case on android
* Add missing license text for jni
* Update android shell app
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2023-04-10 20:02:17 +09:00
HyukWoo Park
de4c7eb0db
Eliminate duplicated code
...
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2023-03-28 16:17:00 +09:00
HyukWoo Park
86b792ebe3
Enable build for Mac OS
...
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2023-02-02 22:16:31 +09:00
Seonghyun Kim
d698343196
Remove busy waiting & fix memory bug
...
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2022-09-29 10:34:59 +09:00
Seonghyun Kim
682f176d6d
Implement Atomics.waitAsync
...
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2022-09-29 10:34:59 +09:00
Zoltan Herczeg
3a0b874a7e
Implement JSON module parsing
...
Currently only the import statement is supported
Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2022-09-13 16:46:36 +09:00
Zoltan Herczeg
28817212d7
Improve the text of wait before exit
...
Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2022-06-27 13:26:33 +09:00
HyukWoo Park
9f901623dd
Enable first breakpoint for Script created by initializeFunctionScript
...
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2022-04-18 17:19:19 +09:00
HyukWoo Park
f6eeb2c1fc
Fix source name to always have valid string value
...
* set empty string for no name case
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2022-02-08 18:54:32 +09:00
HyukWoo Park
913bcc7882
Rename StackTrace structures
...
* to clearly distinguish StackTraceData and StackTraceDataVector
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2022-01-18 15:28:21 +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
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
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
Seonghyun Kim
19298e2216
Implement Atomics.wait, notify
...
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-08-17 20:03:39 +09:00
Seonghyun Kim
dbae3ae8fe
Implement Serialization of SharedArrayBufferObject & $262.agent.* functions for testing
...
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-07-29 13:36:15 +09:00
HyukWoo Park
13c774e49f
Add ThreadLocal structure
...
* ThreadLocal manage global values allocated for each thread
* Update PlatformRef to allow users to add thread-local custom data
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-07-27 16:40:08 +09:00
HyukWoo Park
98bc107937
Add Global object shared by all threads
...
* Platform is also managed in Global object
* Global has life time same to program
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-07-27 16:40:08 +09:00
Seonghyun Kim
5c3f60aa47
Add functions what return version info and configure info into Globals class
...
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-07-27 15:29:24 +09:00
HyukWoo Park
d3acce83a3
Add optional parameter to represent possible ASCII case for string api
...
* for non-ASCII case, ASCII string checking is skipped
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-05-12 20:14:36 +09:00
Seonghyun Kim
1a51cff06d
Implement module import rejection
...
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-04-15 10:58:10 +09:00
Seonghyun Kim
4cd0da1e07
Implement await dynamic import resolution
...
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-04-15 10:58:10 +09:00
Seonghyun Kim
2c4174f93b
Add ArrayObjectRef::attachExternalBuffer API
...
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-02-22 10:36:09 +09:00
HyukWoo Park
90522697eb
Refactoring Job
...
* all types of job now handled in the task queue
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-02-16 09:34:31 +09:00
Seonghyun Kim
390261326e
Store m_target of WeakRefObject as weak reference
...
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2021-02-03 12:18:02 +09:00
HyukWoo Park
e0bd962e6e
Add IsHTMLDDA feature
...
* https://www.ecma-international.org/ecma-262/#sec-IsHTMLDDA-internal-slot
* IsHTMLDDA internal slot is an ECMAScript feature for Web Browsers
* IsHTMLDDA is currently enabled only for test mode (we can enable it later if it is really used by third party app)
* some related operations are optionally fixed
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2020-10-30 14:53:23 +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
714d398364
Fix minor style defects found by cppcheck
...
* add const keyword for constant functions
* reduce the scope of variables if possible
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2020-10-08 14:40:48 +09:00
HyukWoo Park
56e3ec638b
Fix defects discovered in coverity scan
...
* fix control flow issues
* fix uninitialized variables
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2020-09-11 12:34:50 +09:00
HyukWoo Park
f56a557ff5
Reduce memory allocation during bytecode generation
...
* ByteCodeBlock does not hold location data info anymore
* location data of each bytecode is manually allocated only for stack-tracing or debugger mode
* duplicated String allocation for source code is removed
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2020-08-06 16:23:06 +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
HyukWoo Park
11e469c6fa
Implement CodeCache for bytecode
...
* store/load global ByteCodeBlock
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2020-08-03 10:40:17 +09:00
Seonghyun Kim
ba4763e888
Implement runtime part of dynamic-import
...
* Implement one of parsing error of module
* Fix one of stack usage error on FunctionObjectInlines
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
2020-07-30 11:56:17 +09:00