Skip to content

Commit

Permalink
deps: update QuickJS-ng
Browse files Browse the repository at this point in the history
  • Loading branch information
saghul committed Sep 24, 2024
1 parent 6c546a1 commit fee70ae
Show file tree
Hide file tree
Showing 17 changed files with 51,578 additions and 51,073 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ string(TOLOWER ${CMAKE_SYSTEM_NAME} TJS_PLATFORM)
target_compile_options(tjs PRIVATE ${tjs_cflags})
target_compile_definitions(tjs PRIVATE TJS__PLATFORM="${TJS_PLATFORM}")
target_include_directories(tjs PUBLIC src)
target_link_libraries(tjs qjs uv_a m3 sqlite3 m pthread CURL::libcurl)
target_link_libraries(tjs qjs uv_a m3 sqlite3 CURL::libcurl)

if (BUILD_WITH_MIMALLOC)
target_compile_definitions(tjs PRIVATE TJS__HAS_MIMALLOC)
Expand All @@ -178,4 +178,4 @@ set_target_properties(tjs-cli
add_executable(tjsc EXCLUDE_FROM_ALL
src/qjsc.c
)
target_link_libraries(tjsc qjs m)
target_link_libraries(tjsc qjs)
6,782 changes: 3,416 additions & 3,366 deletions src/bundles/c/core/core.c

Large diffs are not rendered by default.

62,674 changes: 31,477 additions & 31,197 deletions src/bundles/c/core/polyfills.c

Large diffs are not rendered by default.

1,602 changes: 813 additions & 789 deletions src/bundles/c/core/run-main.c

Large diffs are not rendered by default.

4,025 changes: 2,035 additions & 1,990 deletions src/bundles/c/core/run-repl.c

Large diffs are not rendered by default.

138 changes: 70 additions & 68 deletions src/bundles/c/core/worker-bootstrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,88 +2,90 @@

#include <inttypes.h>

const uint32_t tjs__worker_bootstrap_size = 640;
const uint32_t tjs__worker_bootstrap_size = 656;

const uint8_t tjs__worker_bootstrap[640] = {
0x0c, 0x10, 0x16, 0x6d, 0x65, 0x73, 0x73, 0x61,
0x67, 0x65, 0x50, 0x69, 0x70, 0x65, 0x28, 0x64,
0x65, 0x66, 0x69, 0x6e, 0x65, 0x45, 0x76, 0x65,
0x6e, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62,
0x75, 0x74, 0x65, 0x06, 0x6d, 0x73, 0x67, 0x08,
0x73, 0x65, 0x6c, 0x66, 0x1a, 0x64, 0x69, 0x73,
0x70, 0x61, 0x74, 0x63, 0x68, 0x45, 0x76, 0x65,
0x6e, 0x74, 0x18, 0x4d, 0x65, 0x73, 0x73, 0x61,
0x67, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x26,
0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x2d, 0x62,
0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70,
0x2e, 0x6a, 0x73, 0x10, 0x6d, 0x73, 0x67, 0x65,
0x72, 0x72, 0x6f, 0x72, 0x18, 0x6d, 0x65, 0x73,
0x73, 0x61, 0x67, 0x65, 0x65, 0x72, 0x72, 0x6f,
0x72, 0x16, 0x70, 0x6f, 0x73, 0x74, 0x4d, 0x65,
0x73, 0x73, 0x61, 0x67, 0x65, 0x3e, 0x74, 0x6a,
0x73, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e,
0x61, 0x6c, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x65,
0x72, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
0x65, 0x50, 0x69, 0x70, 0x65, 0x12, 0x6f, 0x6e,
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1c,
0x6f, 0x6e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
0x65, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x16, 0x45,
0x76, 0x65, 0x6e, 0x74, 0x54, 0x61, 0x72, 0x67,
0x65, 0x74, 0x2c, 0x5f, 0x5f, 0x64, 0x65, 0x66,
0x69, 0x6e, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74,
0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74,
0x65, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x0c,
0x00, 0xfa, 0x00, 0x9e, 0x01, 0x00, 0x01, 0x00,
0x01, 0x00, 0x01, 0x05, 0x01, 0xa0, 0x01, 0x00,
const uint8_t tjs__worker_bootstrap[656] = {
0x10, 0x10, 0x01, 0x16, 0x6d, 0x65, 0x73, 0x73,
0x61, 0x67, 0x65, 0x50, 0x69, 0x70, 0x65, 0x01,
0x28, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x45,
0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x74, 0x72,
0x69, 0x62, 0x75, 0x74, 0x65, 0x01, 0x06, 0x6d,
0x73, 0x67, 0x01, 0x08, 0x73, 0x65, 0x6c, 0x66,
0x01, 0x1a, 0x64, 0x69, 0x73, 0x70, 0x61, 0x74,
0x63, 0x68, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x01,
0x18, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
0x45, 0x76, 0x65, 0x6e, 0x74, 0x01, 0x26, 0x77,
0x6f, 0x72, 0x6b, 0x65, 0x72, 0x2d, 0x62, 0x6f,
0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x2e,
0x6a, 0x73, 0x01, 0x10, 0x6d, 0x73, 0x67, 0x65,
0x72, 0x72, 0x6f, 0x72, 0x01, 0x18, 0x6d, 0x65,
0x73, 0x73, 0x61, 0x67, 0x65, 0x65, 0x72, 0x72,
0x6f, 0x72, 0x01, 0x16, 0x70, 0x6f, 0x73, 0x74,
0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x01,
0x3e, 0x74, 0x6a, 0x73, 0x2e, 0x69, 0x6e, 0x74,
0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x77, 0x6f,
0x72, 0x6b, 0x65, 0x72, 0x2e, 0x6d, 0x65, 0x73,
0x73, 0x61, 0x67, 0x65, 0x50, 0x69, 0x70, 0x65,
0x01, 0x12, 0x6f, 0x6e, 0x6d, 0x65, 0x73, 0x73,
0x61, 0x67, 0x65, 0x01, 0x1c, 0x6f, 0x6e, 0x6d,
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x65, 0x72,
0x72, 0x6f, 0x72, 0x01, 0x16, 0x45, 0x76, 0x65,
0x6e, 0x74, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74,
0x01, 0x2c, 0x5f, 0x5f, 0x64, 0x65, 0x66, 0x69,
0x6e, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41,
0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65,
0x01, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x0c,
0x00, 0xfa, 0x00, 0xa2, 0x01, 0x00, 0x01, 0x00,
0x01, 0x00, 0x01, 0x05, 0x01, 0xa4, 0x01, 0x00,
0x00, 0x00, 0x0c, 0x43, 0xfa, 0x00, 0x00, 0x00,
0x02, 0x00, 0x04, 0x00, 0x03, 0x9e, 0x01, 0x02,
0xb2, 0x03, 0x01, 0x00, 0x70, 0xb4, 0x03, 0x01,
0xb8, 0x03, 0x01, 0x00, 0x70, 0xba, 0x03, 0x01,
0x01, 0x30, 0x0c, 0x42, 0xfa, 0x00, 0x00, 0x01,
0x00, 0x01, 0x06, 0x00, 0x00, 0x1d, 0x01, 0xb6,
0x03, 0x00, 0x01, 0x00, 0x38, 0xdc, 0x00, 0x00,
0x00, 0x42, 0xdd, 0x00, 0x00, 0x00, 0x38, 0xde,
0x00, 0x00, 0x00, 0x11, 0x04, 0x31, 0x00, 0x00,
0x00, 0xd0, 0x21, 0x02, 0x00, 0x24, 0x01, 0x00,
0x29, 0xbe, 0x03, 0x04, 0x1d, 0x08, 0x03, 0x27,
0x00, 0x01, 0x06, 0x00, 0x00, 0x1d, 0x01, 0xbc,
0x03, 0x00, 0x01, 0x00, 0x38, 0xdf, 0x00, 0x00,
0x00, 0x42, 0xe0, 0x00, 0x00, 0x00, 0x38, 0xe1,
0x00, 0x00, 0x00, 0x11, 0x04, 0x33, 0x00, 0x00,
0x00, 0xd1, 0x21, 0x02, 0x00, 0x24, 0x01, 0x00,
0x29, 0xc4, 0x03, 0x04, 0x1d, 0x08, 0x03, 0x27,
0x34, 0x2e, 0x39, 0x30, 0x26, 0x65, 0x00, 0x0c,
0x42, 0xfa, 0x00, 0x00, 0x01, 0x00, 0x01, 0x06,
0x00, 0x00, 0x1d, 0x01, 0xc0, 0x03, 0x00, 0x01,
0x00, 0x38, 0xdc, 0x00, 0x00, 0x00, 0x42, 0xdd,
0x00, 0x00, 0x00, 0x38, 0xde, 0x00, 0x00, 0x00,
0x11, 0x04, 0xe1, 0x00, 0x00, 0x00, 0xd0, 0x21,
0x02, 0x00, 0x24, 0x01, 0x00, 0x29, 0xbe, 0x03,
0x00, 0x00, 0x1d, 0x01, 0xc6, 0x03, 0x00, 0x01,
0x00, 0x38, 0xdf, 0x00, 0x00, 0x00, 0x42, 0xe0,
0x00, 0x00, 0x00, 0x38, 0xe1, 0x00, 0x00, 0x00,
0x11, 0x04, 0xe4, 0x00, 0x00, 0x00, 0xd1, 0x21,
0x02, 0x00, 0x24, 0x01, 0x00, 0x29, 0xc4, 0x03,
0x08, 0x22, 0x08, 0x03, 0x31, 0x34, 0x2e, 0x39,
0x3a, 0x26, 0x6f, 0x00, 0x0c, 0x42, 0xfa, 0x00,
0x00, 0x01, 0x00, 0x01, 0x03, 0x01, 0x00, 0x0c,
0x01, 0x62, 0x00, 0x01, 0x00, 0xb2, 0x03, 0x00,
0x0d, 0x65, 0x00, 0x00, 0x42, 0xe2, 0x00, 0x00,
0x00, 0xd0, 0x25, 0x01, 0x00, 0xbe, 0x03, 0x0c,
0x01, 0x66, 0x00, 0x01, 0x00, 0xb8, 0x03, 0x00,
0x0d, 0x65, 0x00, 0x00, 0x42, 0xe5, 0x00, 0x00,
0x00, 0xd1, 0x25, 0x01, 0x00, 0xc4, 0x03, 0x0c,
0x18, 0x02, 0x02, 0x16, 0x00, 0x61, 0x01, 0x00,
0x61, 0x00, 0x00, 0x38, 0x8a, 0x00, 0x00, 0x00,
0x38, 0x96, 0x00, 0x00, 0x00, 0x42, 0x11, 0x00,
0x00, 0x00, 0x04, 0xe3, 0x00, 0x00, 0x00, 0x24,
0x01, 0x00, 0x47, 0xc8, 0x62, 0x00, 0x00, 0xbe,
0x00, 0x43, 0xe4, 0x00, 0x00, 0x00, 0x62, 0x00,
0x00, 0xbe, 0x01, 0x43, 0xe5, 0x00, 0x00, 0x00,
0x38, 0xdc, 0x00, 0x00, 0x00, 0xbe, 0x02, 0x43,
0xe2, 0x00, 0x00, 0x00, 0x38, 0xe6, 0x00, 0x00,
0x00, 0x41, 0xe7, 0x00, 0x00, 0x00, 0xc9, 0x62,
0x01, 0x00, 0x38, 0x90, 0x00, 0x00, 0x00, 0x42,
0x5e, 0x00, 0x00, 0x00, 0x38, 0xdc, 0x00, 0x00,
0x00, 0x24, 0x01, 0x00, 0x04, 0x31, 0x00, 0x00,
0x00, 0xef, 0x0e, 0x62, 0x01, 0x00, 0x38, 0x90,
0x00, 0x00, 0x00, 0x42, 0x5e, 0x00, 0x00, 0x00,
0x38, 0xdc, 0x00, 0x00, 0x00, 0x24, 0x01, 0x00,
0x04, 0xe1, 0x00, 0x00, 0x00, 0xef, 0x0e, 0x62,
0x01, 0x00, 0x38, 0x90, 0x00, 0x00, 0x00, 0x42,
0x5e, 0x00, 0x00, 0x00, 0x38, 0xdc, 0x00, 0x00,
0x00, 0x24, 0x01, 0x00, 0x04, 0xe8, 0x00, 0x00,
0x00, 0xef, 0x29, 0xbe, 0x03, 0x01, 0x01, 0x20,
0x61, 0x00, 0x00, 0x38, 0x8c, 0x00, 0x00, 0x00,
0x38, 0x98, 0x00, 0x00, 0x00, 0x42, 0x11, 0x00,
0x00, 0x00, 0x04, 0xe6, 0x00, 0x00, 0x00, 0x24,
0x01, 0x00, 0x47, 0xc9, 0x62, 0x00, 0x00, 0xbf,
0x00, 0x43, 0xe7, 0x00, 0x00, 0x00, 0x62, 0x00,
0x00, 0xbf, 0x01, 0x43, 0xe8, 0x00, 0x00, 0x00,
0x38, 0xdf, 0x00, 0x00, 0x00, 0xbf, 0x02, 0x43,
0xe5, 0x00, 0x00, 0x00, 0x38, 0xe9, 0x00, 0x00,
0x00, 0x41, 0xea, 0x00, 0x00, 0x00, 0xca, 0x62,
0x01, 0x00, 0x38, 0x92, 0x00, 0x00, 0x00, 0x42,
0x60, 0x00, 0x00, 0x00, 0x38, 0xdf, 0x00, 0x00,
0x00, 0x24, 0x01, 0x00, 0x04, 0x33, 0x00, 0x00,
0x00, 0xf0, 0x0e, 0x62, 0x01, 0x00, 0x38, 0x92,
0x00, 0x00, 0x00, 0x42, 0x60, 0x00, 0x00, 0x00,
0x38, 0xdf, 0x00, 0x00, 0x00, 0x24, 0x01, 0x00,
0x04, 0xe4, 0x00, 0x00, 0x00, 0xf0, 0x0e, 0x62,
0x01, 0x00, 0x38, 0x92, 0x00, 0x00, 0x00, 0x42,
0x60, 0x00, 0x00, 0x00, 0x38, 0xdf, 0x00, 0x00,
0x00, 0x24, 0x01, 0x00, 0x04, 0xeb, 0x00, 0x00,
0x00, 0xf0, 0x29, 0xc4, 0x03, 0x01, 0x01, 0x20,
0x02, 0x12, 0x21, 0x1e, 0x81, 0x27, 0x13, 0x00,
0x27, 0x00, 0x13, 0x00, 0x27, 0x00, 0x1b, 0x3c,
0x27, 0x01, 0x3b, 0x39, 0x84, 0x64, 0x0d, 0x63,
0x84, 0x64, 0x0d, 0x63, 0x84, 0x64, 0x08, 0x6b,
0x00, 0xbe, 0x00, 0xed, 0xcc, 0x28, 0xbe, 0x03,
0x00, 0xbf, 0x00, 0xee, 0xcd, 0x28, 0xc4, 0x03,
0x01, 0x01, 0x04, 0x00, 0x00, 0x24, 0x00, 0x00,
};

Loading

0 comments on commit fee70ae

Please sign in to comment.