Skip to content

Commit e311961

Browse files
committed
2 parents 9529a1b + bfc9e3c commit e311961

14 files changed

+1659
-1431
lines changed

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ codegen: $(QJSC)
8080
$(QJSC) -e -o gen/hello.c examples/hello.js
8181
$(QJSC) -e -o gen/hello_module.c -m examples/hello_module.js
8282
$(QJSC) -e -o gen/test_fib.c -M examples/fib.so,fib -m examples/test_fib.js
83+
$(QJSC) -m -ss -o gen/builtin-array-fromasync.h builtin-array-fromasync.js
8384

8485
debug:
8586
BUILD_TYPE=Debug $(MAKE)

amalgam.js

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const quickjs_h = loadFile("quickjs.h")
1818
const quickjs_libc_c = loadFile("quickjs-libc.c")
1919
const quickjs_libc_h = loadFile("quickjs-libc.h")
2020
const quickjs_opcode_h = loadFile("quickjs-opcode.h")
21+
const gen_builtin_array_fromasync_h = loadFile("gen/builtin-array-fromasync.h")
2122

2223
let source = "#if defined(QJS_BUILD_LIBC) && defined(__linux__) && !defined(_GNU_SOURCE)\n"
2324
+ "#define _GNU_SOURCE\n"
@@ -42,5 +43,7 @@ let source = "#if defined(QJS_BUILD_LIBC) && defined(__linux__) && !defined(_GNU
4243
source = source.replace(/#include "quickjs-atom.h"/g, quickjs_atom_h)
4344
source = source.replace(/#include "quickjs-opcode.h"/g, quickjs_opcode_h)
4445
source = source.replace(/#include "libregexp-opcode.h"/g, libregexp_opcode_h)
46+
source = source.replace(/#include "gen\/builtin-array-fromasync.h"/g,
47+
gen_builtin_array_fromasync_h)
4548
source = source.replace(/#include "[^"]+"/g, "")
4649
writeFile(execArgv[2] ?? "quickjs-amalgam.c", source)

builtin-array-fromasync.js

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
export function go(Array, TypeError, asyncIterator, defineProperty, iterator) {
2+
return async function fromAsync(arrayLike, mapFn=undefined, thisArg=undefined) {
3+
if (mapFn !== undefined && typeof mapFn !== "function") throw new TypeError("not a function")
4+
let result, i = 0, isConstructor = typeof this === "function"
5+
let sync = false, method = arrayLike[asyncIterator]
6+
if (method == null) sync = true, method = arrayLike[iterator]
7+
if (method == null) {
8+
let {length} = arrayLike
9+
length = +length || 0
10+
result = isConstructor ? new this(length) : Array(length)
11+
while (i < length) {
12+
let value = arrayLike[i]
13+
if (sync) value = await value
14+
if (mapFn) value = await mapFn.call(thisArg, value, i)
15+
defineProperty(result, i++, {value, configurable: true, writable: true})
16+
}
17+
} else {
18+
const iter = method.call(arrayLike)
19+
result = isConstructor ? new this() : Array()
20+
try {
21+
for (;;) {
22+
let {value, done} = await iter.next()
23+
if (done) break
24+
if (sync) value = await value
25+
if (mapFn) value = await mapFn.call(thisArg, value, i)
26+
defineProperty(result, i++, {value, configurable: true, writable: true})
27+
}
28+
} finally {
29+
if (iter.return) iter.return()
30+
}
31+
}
32+
result.length = i
33+
return result
34+
}
35+
}

gen/builtin-array-fromasync.h

+119
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
/* File generated automatically by the QuickJS-ng compiler. */
2+
3+
#include <inttypes.h>
4+
5+
const uint32_t qjsc_builtin_array_fromasync_size = 875;
6+
7+
const uint8_t qjsc_builtin_array_fromasync[875] = {
8+
0x13, 0x0f, 0x01, 0x34, 0x62, 0x75, 0x69, 0x6c,
9+
0x74, 0x69, 0x6e, 0x2d, 0x61, 0x72, 0x72, 0x61,
10+
0x79, 0x2d, 0x66, 0x72, 0x6f, 0x6d, 0x61, 0x73,
11+
0x79, 0x6e, 0x63, 0x2e, 0x6a, 0x73, 0x01, 0x04,
12+
0x67, 0x6f, 0x01, 0x1a, 0x61, 0x73, 0x79, 0x6e,
13+
0x63, 0x49, 0x74, 0x65, 0x72, 0x61, 0x74, 0x6f,
14+
0x72, 0x01, 0x10, 0x69, 0x74, 0x65, 0x72, 0x61,
15+
0x74, 0x6f, 0x72, 0x01, 0x12, 0x61, 0x72, 0x72,
16+
0x61, 0x79, 0x4c, 0x69, 0x6b, 0x65, 0x01, 0x0a,
17+
0x6d, 0x61, 0x70, 0x46, 0x6e, 0x01, 0x0e, 0x74,
18+
0x68, 0x69, 0x73, 0x41, 0x72, 0x67, 0x01, 0x0c,
19+
0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x01, 0x02,
20+
0x69, 0x01, 0x1a, 0x69, 0x73, 0x43, 0x6f, 0x6e,
21+
0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x6f, 0x72,
22+
0x01, 0x08, 0x73, 0x79, 0x6e, 0x63, 0x01, 0x0c,
23+
0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x01, 0x08,
24+
0x69, 0x74, 0x65, 0x72, 0x01, 0x1c, 0x6e, 0x6f,
25+
0x74, 0x20, 0x61, 0x20, 0x66, 0x75, 0x6e, 0x63,
26+
0x74, 0x69, 0x6f, 0x6e, 0x01, 0x08, 0x63, 0x61,
27+
0x6c, 0x6c, 0x0d, 0xc2, 0x03, 0x00, 0x01, 0x00,
28+
0x00, 0xc4, 0x03, 0x00, 0x00, 0x00, 0x0c, 0x20,
29+
0x02, 0x01, 0xa2, 0x01, 0x00, 0x00, 0x00, 0x01,
30+
0x01, 0x01, 0x09, 0x00, 0xc4, 0x03, 0x00, 0x01,
31+
0x0c, 0x43, 0x02, 0x01, 0xc4, 0x03, 0x05, 0x00,
32+
0x05, 0x01, 0x00, 0x01, 0x03, 0x05, 0xaa, 0x02,
33+
0x00, 0x01, 0x40, 0x9e, 0x03, 0x00, 0x01, 0x40,
34+
0xc6, 0x03, 0x00, 0x01, 0x40, 0xcc, 0x01, 0x00,
35+
0x01, 0x40, 0xc8, 0x03, 0x00, 0x01, 0x40, 0x0c,
36+
0x60, 0x02, 0x01, 0xf8, 0x01, 0x03, 0x0e, 0x01,
37+
0x06, 0x05, 0x00, 0x86, 0x04, 0x11, 0xca, 0x03,
38+
0x00, 0x01, 0x00, 0xcc, 0x03, 0x00, 0x01, 0x00,
39+
0xce, 0x03, 0x00, 0x01, 0x00, 0xca, 0x03, 0x01,
40+
0xff, 0xff, 0xff, 0xff, 0x0f, 0x20, 0xcc, 0x03,
41+
0x01, 0x01, 0x20, 0xce, 0x03, 0x01, 0x02, 0x20,
42+
0xd0, 0x03, 0x02, 0x00, 0x20, 0xd2, 0x03, 0x02,
43+
0x04, 0x20, 0xd4, 0x03, 0x02, 0x05, 0x20, 0xd6,
44+
0x03, 0x02, 0x06, 0x20, 0xd8, 0x03, 0x02, 0x07,
45+
0x20, 0x64, 0x06, 0x08, 0x20, 0x82, 0x01, 0x07,
46+
0x09, 0x20, 0xda, 0x03, 0x0a, 0x08, 0x30, 0x82,
47+
0x01, 0x0d, 0x0b, 0x20, 0xd4, 0x01, 0x0d, 0x0c,
48+
0x20, 0x10, 0x00, 0x01, 0x00, 0x9e, 0x03, 0x01,
49+
0x03, 0xc6, 0x03, 0x02, 0x03, 0xc8, 0x03, 0x04,
50+
0x03, 0xaa, 0x02, 0x00, 0x03, 0xcc, 0x01, 0x03,
51+
0x03, 0x08, 0xc3, 0x0d, 0x62, 0x02, 0x00, 0x62,
52+
0x01, 0x00, 0x62, 0x00, 0x00, 0xd2, 0xca, 0xd3,
53+
0x11, 0xf3, 0xeb, 0x08, 0x0e, 0x39, 0x46, 0x00,
54+
0x00, 0x00, 0xdb, 0xcb, 0xd4, 0x11, 0xf3, 0xeb,
55+
0x08, 0x0e, 0x39, 0x46, 0x00, 0x00, 0x00, 0xdc,
56+
0xcc, 0x62, 0x07, 0x00, 0x62, 0x06, 0x00, 0x62,
57+
0x05, 0x00, 0x62, 0x04, 0x00, 0x62, 0x03, 0x00,
58+
0xd3, 0x39, 0x46, 0x00, 0x00, 0x00, 0xb0, 0xeb,
59+
0x16, 0xd3, 0x98, 0x04, 0x1b, 0x00, 0x00, 0x00,
60+
0xb0, 0xeb, 0x0c, 0xde, 0x11, 0x04, 0xee, 0x00,
61+
0x00, 0x00, 0x21, 0x01, 0x00, 0x30, 0x06, 0xcd,
62+
0xb5, 0xc3, 0x04, 0xc2, 0x0d, 0xf6, 0xc3, 0x05,
63+
0x09, 0xc3, 0x06, 0xd2, 0xdf, 0x48, 0xc3, 0x07,
64+
0x63, 0x07, 0x00, 0x07, 0xad, 0xeb, 0x0f, 0x0a,
65+
0x11, 0x64, 0x06, 0x00, 0x0e, 0xd2, 0xe0, 0x48,
66+
0x11, 0x64, 0x07, 0x00, 0x0e, 0x63, 0x07, 0x00,
67+
0x07, 0xad, 0x6a, 0xa6, 0x00, 0x00, 0x00, 0x62,
68+
0x08, 0x00, 0x06, 0x11, 0xf3, 0xec, 0x0c, 0x71,
69+
0x43, 0x32, 0x00, 0x00, 0x00, 0xc3, 0x08, 0x0e,
70+
0xed, 0x05, 0x0e, 0xd2, 0xed, 0xf2, 0x63, 0x08,
71+
0x00, 0x8e, 0x11, 0xec, 0x03, 0x0e, 0xb5, 0x11,
72+
0x64, 0x08, 0x00, 0x0e, 0x63, 0x05, 0x00, 0xeb,
73+
0x0c, 0xc2, 0x0d, 0x11, 0x63, 0x08, 0x00, 0x21,
74+
0x01, 0x00, 0xed, 0x06, 0xe1, 0x63, 0x08, 0x00,
75+
0xf0, 0x11, 0x64, 0x03, 0x00, 0x0e, 0x63, 0x04,
76+
0x00, 0x63, 0x08, 0x00, 0xa7, 0x6a, 0x2a, 0x01,
77+
0x00, 0x00, 0x62, 0x09, 0x00, 0xd2, 0x63, 0x04,
78+
0x00, 0x48, 0xc3, 0x09, 0x63, 0x06, 0x00, 0xeb,
79+
0x0a, 0x63, 0x09, 0x00, 0x8c, 0x11, 0x64, 0x09,
80+
0x00, 0x0e, 0xd3, 0xeb, 0x17, 0xd3, 0x43, 0xef,
81+
0x00, 0x00, 0x00, 0xd4, 0x63, 0x09, 0x00, 0x63,
82+
0x04, 0x00, 0x24, 0x03, 0x00, 0x8c, 0x11, 0x64,
83+
0x09, 0x00, 0x0e, 0x5f, 0x04, 0x00, 0x63, 0x03,
84+
0x00, 0x63, 0x04, 0x00, 0x92, 0x64, 0x04, 0x00,
85+
0x0b, 0x63, 0x09, 0x00, 0x4d, 0x41, 0x00, 0x00,
86+
0x00, 0x0a, 0x4d, 0x3e, 0x00, 0x00, 0x00, 0x0a,
87+
0x4d, 0x3f, 0x00, 0x00, 0x00, 0xf2, 0x0e, 0xed,
88+
0x9e, 0x62, 0x0a, 0x00, 0x63, 0x07, 0x00, 0x43,
89+
0xef, 0x00, 0x00, 0x00, 0xd2, 0x24, 0x01, 0x00,
90+
0xc3, 0x0a, 0x63, 0x05, 0x00, 0xeb, 0x09, 0xc2,
91+
0x0d, 0x11, 0x21, 0x00, 0x00, 0xed, 0x03, 0xe1,
92+
0xef, 0x11, 0x64, 0x03, 0x00, 0x0e, 0x6d, 0x8c,
93+
0x00, 0x00, 0x00, 0x62, 0x0c, 0x00, 0x62, 0x0b,
94+
0x00, 0x06, 0x11, 0xf3, 0xec, 0x13, 0x71, 0x43,
95+
0x41, 0x00, 0x00, 0x00, 0xc3, 0x0b, 0x43, 0x6a,
96+
0x00, 0x00, 0x00, 0xc3, 0x0c, 0x0e, 0xed, 0x10,
97+
0x0e, 0x63, 0x0a, 0x00, 0x43, 0x6b, 0x00, 0x00,
98+
0x00, 0x24, 0x00, 0x00, 0x8c, 0xed, 0xe0, 0x63,
99+
0x0c, 0x00, 0xec, 0x4e, 0x63, 0x06, 0x00, 0xeb,
100+
0x0a, 0x63, 0x0b, 0x00, 0x8c, 0x11, 0x64, 0x0b,
101+
0x00, 0x0e, 0xd3, 0xeb, 0x17, 0xd3, 0x43, 0xef,
102+
0x00, 0x00, 0x00, 0xd4, 0x63, 0x0b, 0x00, 0x63,
103+
0x04, 0x00, 0x24, 0x03, 0x00, 0x8c, 0x11, 0x64,
104+
0x0b, 0x00, 0x0e, 0x5f, 0x04, 0x00, 0x63, 0x03,
105+
0x00, 0x63, 0x04, 0x00, 0x92, 0x64, 0x04, 0x00,
106+
0x0b, 0x63, 0x0b, 0x00, 0x4d, 0x41, 0x00, 0x00,
107+
0x00, 0x0a, 0x4d, 0x3e, 0x00, 0x00, 0x00, 0x0a,
108+
0x4d, 0x3f, 0x00, 0x00, 0x00, 0xf2, 0x0e, 0xed,
109+
0x83, 0x0e, 0x06, 0x6e, 0x0d, 0x00, 0x00, 0x00,
110+
0x0e, 0xed, 0x1e, 0x6e, 0x05, 0x00, 0x00, 0x00,
111+
0x30, 0x63, 0x0a, 0x00, 0x42, 0x06, 0x00, 0x00,
112+
0x00, 0xeb, 0x0d, 0x63, 0x0a, 0x00, 0x43, 0x06,
113+
0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x0e, 0x6f,
114+
0x63, 0x03, 0x00, 0x63, 0x04, 0x00, 0x44, 0x32,
115+
0x00, 0x00, 0x00, 0x63, 0x03, 0x00, 0x2f, 0xc0,
116+
0x00, 0x28, 0x08, 0xeb, 0x05, 0xc0, 0x00, 0xe2,
117+
0x29, 0x06, 0x2f,
118+
};
119+

gen/function_source.c

+11-11
Original file line numberDiff line numberDiff line change
@@ -14,34 +14,34 @@ const uint8_t qjsc_function_source[324] = {
1414
0x34, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f,
1515
0x6e, 0x20, 0x66, 0x28, 0x29, 0x20, 0x7b, 0x20,
1616
0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x34,
17-
0x32, 0x20, 0x7d, 0x0d, 0xc0, 0x03, 0x00, 0x00,
17+
0x32, 0x20, 0x7d, 0x0d, 0xc2, 0x03, 0x00, 0x00,
1818
0x00, 0x00, 0x00, 0x0c, 0x20, 0x0a, 0x01, 0xa2,
1919
0x01, 0x00, 0x05, 0x00, 0x03, 0x02, 0x01, 0x74,
20-
0x05, 0xc2, 0x03, 0x02, 0x00, 0x30, 0xc4, 0x03,
21-
0x04, 0x00, 0x70, 0xc2, 0x03, 0x04, 0x02, 0x70,
20+
0x05, 0xc4, 0x03, 0x02, 0x00, 0x30, 0xc6, 0x03,
21+
0x04, 0x00, 0x70, 0xc4, 0x03, 0x04, 0x02, 0x70,
2222
0x10, 0x00, 0x01, 0x00, 0xe4, 0x01, 0x00, 0x01,
23-
0x00, 0xc6, 0x03, 0x00, 0x0d, 0xc4, 0x03, 0x01,
24-
0x01, 0x0c, 0x43, 0x0a, 0x01, 0xc4, 0x03, 0x00,
23+
0x00, 0xc8, 0x03, 0x00, 0x0d, 0xc6, 0x03, 0x01,
24+
0x01, 0x0c, 0x43, 0x0a, 0x01, 0xc6, 0x03, 0x00,
2525
0x00, 0x00, 0x01, 0x00, 0x00, 0x03, 0x00, 0xbd,
26-
0x2a, 0x28, 0xc0, 0x03, 0x03, 0x01, 0x00, 0x1a,
26+
0x2a, 0x28, 0xc2, 0x03, 0x03, 0x01, 0x00, 0x1a,
2727
0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e,
2828
0x20, 0x66, 0x28, 0x29, 0x20, 0x7b, 0x20, 0x72,
2929
0x65, 0x74, 0x75, 0x72, 0x6e, 0x20, 0x34, 0x32,
3030
0x20, 0x7d, 0x0c, 0x03, 0xc3, 0x04, 0x08, 0xcd,
3131
0x08, 0xeb, 0x05, 0xc0, 0x00, 0xe3, 0x29, 0x04,
32-
0xe4, 0x00, 0x00, 0x00, 0xe2, 0x62, 0x00, 0x00,
32+
0xe5, 0x00, 0x00, 0x00, 0xe2, 0x62, 0x00, 0x00,
3333
0xdf, 0x43, 0x38, 0x00, 0x00, 0x00, 0x24, 0x00,
3434
0x00, 0xca, 0x63, 0x00, 0x00, 0x66, 0x00, 0x00,
35-
0xb0, 0xeb, 0x0b, 0x39, 0x95, 0x00, 0x00, 0x00,
35+
0xb0, 0xeb, 0x0b, 0x39, 0x96, 0x00, 0x00, 0x00,
3636
0x63, 0x00, 0x00, 0xf0, 0x30, 0x62, 0x02, 0x00,
3737
0x62, 0x01, 0x00, 0x39, 0x3b, 0x00, 0x00, 0x00,
38-
0x66, 0x00, 0x00, 0x04, 0xe2, 0x00, 0x00, 0x00,
38+
0x66, 0x00, 0x00, 0x04, 0xe3, 0x00, 0x00, 0x00,
3939
0x9e, 0x32, 0x01, 0x00, 0x03, 0x00, 0xcb, 0x63,
4040
0x01, 0x00, 0x43, 0x38, 0x00, 0x00, 0x00, 0x24,
4141
0x00, 0x00, 0xcc, 0x63, 0x02, 0x00, 0x66, 0x00,
42-
0x00, 0xb0, 0xeb, 0x0b, 0x39, 0x95, 0x00, 0x00,
42+
0x00, 0xb0, 0xeb, 0x0b, 0x39, 0x96, 0x00, 0x00,
4343
0x00, 0x63, 0x02, 0x00, 0xf0, 0x30, 0x69, 0x02,
44-
0x00, 0x69, 0x01, 0x00, 0x06, 0x2f, 0xc0, 0x03,
44+
0x00, 0x69, 0x01, 0x00, 0x06, 0x2f, 0xc2, 0x03,
4545
0x01, 0x01, 0x18, 0x00, 0x1c, 0x0a, 0x2a, 0x26,
4646
0x03, 0x20, 0x1c, 0x1b, 0x0c, 0x00, 0x10, 0x08,
4747
0x27, 0x11, 0x12, 0x67, 0x0d, 0x26, 0x03, 0x20,

gen/hello.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ const uint8_t qjsc_hello[103] = {
1111
0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x01, 0x06,
1212
0x6c, 0x6f, 0x67, 0x01, 0x16, 0x48, 0x65, 0x6c,
1313
0x6c, 0x6f, 0x20, 0x57, 0x6f, 0x72, 0x6c, 0x64,
14-
0x0d, 0xc0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00,
14+
0x0d, 0xc2, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00,
1515
0x0c, 0x20, 0x0a, 0x01, 0xa2, 0x01, 0x00, 0x00,
1616
0x00, 0x03, 0x00, 0x00, 0x19, 0x00, 0x08, 0xeb,
17-
0x02, 0x29, 0x39, 0xe1, 0x00, 0x00, 0x00, 0x43,
18-
0xe2, 0x00, 0x00, 0x00, 0x04, 0xe3, 0x00, 0x00,
19-
0x00, 0x24, 0x01, 0x00, 0x0e, 0x06, 0x2f, 0xc0,
17+
0x02, 0x29, 0x39, 0xe2, 0x00, 0x00, 0x00, 0x43,
18+
0xe3, 0x00, 0x00, 0x00, 0x04, 0xe4, 0x00, 0x00,
19+
0x00, 0x24, 0x01, 0x00, 0x0e, 0x06, 0x2f, 0xc2,
2020
0x03, 0x01, 0x01, 0x02, 0x48, 0x0e, 0x00,
2121
};
2222

gen/hello_module.c

+17-17
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ const uint8_t qjsc_fib_module[290] = {
99
0x70, 0x6c, 0x65, 0x73, 0x2f, 0x66, 0x69, 0x62,
1010
0x5f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e,
1111
0x6a, 0x73, 0x01, 0x06, 0x66, 0x69, 0x62, 0x01,
12-
0x02, 0x6e, 0x0d, 0xc0, 0x03, 0x00, 0x01, 0x00,
13-
0x00, 0xc2, 0x03, 0x00, 0x00, 0x00, 0x0c, 0x20,
12+
0x02, 0x6e, 0x0d, 0xc2, 0x03, 0x00, 0x01, 0x00,
13+
0x00, 0xc4, 0x03, 0x00, 0x00, 0x00, 0x0c, 0x20,
1414
0x0a, 0x01, 0xa2, 0x01, 0x00, 0x00, 0x00, 0x01,
15-
0x01, 0x01, 0x09, 0x00, 0xc2, 0x03, 0x00, 0x01,
16-
0x0c, 0x43, 0x0a, 0x01, 0xc2, 0x03, 0x01, 0x00,
17-
0x01, 0x04, 0x01, 0x00, 0x1a, 0x01, 0xc4, 0x03,
18-
0x00, 0x01, 0x00, 0xc2, 0x03, 0x00, 0x00, 0xd2,
15+
0x01, 0x01, 0x09, 0x00, 0xc4, 0x03, 0x00, 0x01,
16+
0x0c, 0x43, 0x0a, 0x01, 0xc4, 0x03, 0x01, 0x00,
17+
0x01, 0x04, 0x01, 0x00, 0x1a, 0x01, 0xc6, 0x03,
18+
0x00, 0x01, 0x00, 0xc4, 0x03, 0x00, 0x00, 0xd2,
1919
0xb5, 0xa8, 0xeb, 0x03, 0xb5, 0x28, 0xd2, 0xb6,
2020
0xad, 0xeb, 0x03, 0xb6, 0x28, 0xde, 0xd2, 0xb6,
2121
0x9f, 0xf0, 0xde, 0xd2, 0xb7, 0x9f, 0xf0, 0x9e,
22-
0x28, 0xc0, 0x03, 0x02, 0x08, 0x0e, 0x09, 0x0c,
22+
0x28, 0xc2, 0x03, 0x02, 0x08, 0x0e, 0x09, 0x0c,
2323
0x27, 0x0a, 0x28, 0x02, 0x07, 0x08, 0x11, 0x0a,
2424
0x07, 0x08, 0x07, 0x08, 0x8d, 0x01, 0x66, 0x75,
2525
0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x66,
@@ -40,7 +40,7 @@ const uint8_t qjsc_fib_module[290] = {
4040
0x20, 0x31, 0x29, 0x20, 0x2b, 0x20, 0x66, 0x69,
4141
0x62, 0x28, 0x6e, 0x20, 0x2d, 0x20, 0x32, 0x29,
4242
0x3b, 0x0a, 0x7d, 0x08, 0xeb, 0x05, 0xc0, 0x00,
43-
0xe2, 0x29, 0x06, 0x2f, 0xc0, 0x03, 0x01, 0x01,
43+
0xe2, 0x29, 0x06, 0x2f, 0xc2, 0x03, 0x01, 0x01,
4444
0x00, 0x00,
4545
};
4646

@@ -58,17 +58,17 @@ const uint8_t qjsc_hello_module[187] = {
5858
0x01, 0x16, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x20,
5959
0x57, 0x6f, 0x72, 0x6c, 0x64, 0x01, 0x10, 0x66,
6060
0x69, 0x62, 0x28, 0x31, 0x30, 0x29, 0x3d, 0x0d,
61-
0xc0, 0x03, 0x01, 0xc2, 0x03, 0x00, 0x00, 0x01,
62-
0x00, 0xc4, 0x03, 0x00, 0x00, 0x0c, 0x20, 0x0a,
61+
0xc2, 0x03, 0x01, 0xc4, 0x03, 0x00, 0x00, 0x01,
62+
0x00, 0xc6, 0x03, 0x00, 0x00, 0x0c, 0x20, 0x0a,
6363
0x01, 0xa2, 0x01, 0x00, 0x00, 0x00, 0x05, 0x01,
64-
0x00, 0x32, 0x00, 0xc4, 0x03, 0x00, 0x0c, 0x08,
65-
0xeb, 0x02, 0x29, 0x39, 0xe3, 0x00, 0x00, 0x00,
66-
0x43, 0xe4, 0x00, 0x00, 0x00, 0x04, 0xe5, 0x00,
67-
0x00, 0x00, 0x24, 0x01, 0x00, 0x0e, 0x39, 0xe3,
68-
0x00, 0x00, 0x00, 0x43, 0xe4, 0x00, 0x00, 0x00,
69-
0x04, 0xe6, 0x00, 0x00, 0x00, 0x66, 0x00, 0x00,
64+
0x00, 0x32, 0x00, 0xc6, 0x03, 0x00, 0x0c, 0x08,
65+
0xeb, 0x02, 0x29, 0x39, 0xe4, 0x00, 0x00, 0x00,
66+
0x43, 0xe5, 0x00, 0x00, 0x00, 0x04, 0xe6, 0x00,
67+
0x00, 0x00, 0x24, 0x01, 0x00, 0x0e, 0x39, 0xe4,
68+
0x00, 0x00, 0x00, 0x43, 0xe5, 0x00, 0x00, 0x00,
69+
0x04, 0xe7, 0x00, 0x00, 0x00, 0x66, 0x00, 0x00,
7070
0xbd, 0x0a, 0xf0, 0x24, 0x02, 0x00, 0x0e, 0x06,
71-
0x2f, 0xc0, 0x03, 0x01, 0x01, 0x0c, 0x00, 0x04,
71+
0x2f, 0xc2, 0x03, 0x01, 0x01, 0x0c, 0x00, 0x04,
7272
0x08, 0x00, 0x34, 0x10, 0x30, 0x0f, 0x34, 0x10,
7373
0x2a, 0x20, 0x00,
7474
};

0 commit comments

Comments
 (0)