@wasmgroundup/emit 0.2.15 → 0.2.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +9 -0
- package/dist/index.js +9 -0
- package/index.ts +9 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ declare const exportdesc: {
|
|
|
27
27
|
};
|
|
28
28
|
declare function module(sections: any): BytecodeFragment;
|
|
29
29
|
declare const instr: {
|
|
30
|
+
unreachable: number;
|
|
30
31
|
nop: number;
|
|
31
32
|
block: number;
|
|
32
33
|
loop: number;
|
|
@@ -40,6 +41,7 @@ declare const instr: {
|
|
|
40
41
|
call: number;
|
|
41
42
|
call_indirect: number;
|
|
42
43
|
drop: number;
|
|
44
|
+
select: number;
|
|
43
45
|
local: {
|
|
44
46
|
get: number;
|
|
45
47
|
set: number;
|
|
@@ -50,7 +52,12 @@ declare const instr: {
|
|
|
50
52
|
set: number;
|
|
51
53
|
tee: number;
|
|
52
54
|
};
|
|
55
|
+
memory: {
|
|
56
|
+
size: number;
|
|
57
|
+
grow: number;
|
|
58
|
+
};
|
|
53
59
|
i32: {
|
|
60
|
+
load: number;
|
|
54
61
|
const: number;
|
|
55
62
|
eqz: number;
|
|
56
63
|
eq: number;
|
|
@@ -68,6 +75,7 @@ declare const instr: {
|
|
|
68
75
|
mul: number;
|
|
69
76
|
};
|
|
70
77
|
i64: {
|
|
78
|
+
store32: number;
|
|
71
79
|
const: number;
|
|
72
80
|
add: number;
|
|
73
81
|
sub: number;
|
|
@@ -88,6 +96,7 @@ declare const instr: {
|
|
|
88
96
|
sub: number;
|
|
89
97
|
mul: number;
|
|
90
98
|
div: number;
|
|
99
|
+
reinterpret_i64: number;
|
|
91
100
|
};
|
|
92
101
|
};
|
|
93
102
|
declare function u32(v: number | bigint): number[];
|
package/dist/index.js
CHANGED
|
@@ -97,6 +97,7 @@ function module(sections) {
|
|
|
97
97
|
return [magic(), version(), sections];
|
|
98
98
|
}
|
|
99
99
|
const instr = {
|
|
100
|
+
unreachable: 0x00,
|
|
100
101
|
nop: 0x01,
|
|
101
102
|
block: 0x02,
|
|
102
103
|
loop: 0x03,
|
|
@@ -110,6 +111,7 @@ const instr = {
|
|
|
110
111
|
call: 0x10,
|
|
111
112
|
call_indirect: 0x11,
|
|
112
113
|
drop: 0x1a,
|
|
114
|
+
select: 0x1b,
|
|
113
115
|
local: {
|
|
114
116
|
get: 0x20,
|
|
115
117
|
set: 0x21,
|
|
@@ -120,7 +122,12 @@ const instr = {
|
|
|
120
122
|
set: 0x24,
|
|
121
123
|
tee: 0x25,
|
|
122
124
|
},
|
|
125
|
+
memory: {
|
|
126
|
+
size: 0x3f,
|
|
127
|
+
grow: 0x40,
|
|
128
|
+
},
|
|
123
129
|
i32: {
|
|
130
|
+
load: 0x28,
|
|
124
131
|
const: 0x41,
|
|
125
132
|
eqz: 0x45,
|
|
126
133
|
eq: 0x46,
|
|
@@ -138,6 +145,7 @@ const instr = {
|
|
|
138
145
|
mul: 0x6c,
|
|
139
146
|
},
|
|
140
147
|
i64: {
|
|
148
|
+
store32: 0x3e,
|
|
141
149
|
const: 0x42,
|
|
142
150
|
add: 0x7c,
|
|
143
151
|
sub: 0x7d,
|
|
@@ -158,6 +166,7 @@ const instr = {
|
|
|
158
166
|
sub: 0xa1,
|
|
159
167
|
mul: 0xa2,
|
|
160
168
|
div: 0xa3,
|
|
169
|
+
reinterpret_i64: 0xbf,
|
|
161
170
|
},
|
|
162
171
|
};
|
|
163
172
|
const SEVEN_BIT_MASK_BIG_INT = 127n;
|
package/index.ts
CHANGED
|
@@ -127,6 +127,7 @@ function module(sections): BytecodeFragment {
|
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
const instr = {
|
|
130
|
+
unreachable: 0x00,
|
|
130
131
|
nop: 0x01,
|
|
131
132
|
block: 0x02,
|
|
132
133
|
loop: 0x03,
|
|
@@ -140,6 +141,7 @@ const instr = {
|
|
|
140
141
|
call: 0x10,
|
|
141
142
|
call_indirect: 0x11,
|
|
142
143
|
drop: 0x1a,
|
|
144
|
+
select: 0x1b,
|
|
143
145
|
|
|
144
146
|
local: {
|
|
145
147
|
get: 0x20,
|
|
@@ -151,8 +153,13 @@ const instr = {
|
|
|
151
153
|
set: 0x24,
|
|
152
154
|
tee: 0x25,
|
|
153
155
|
},
|
|
156
|
+
memory: {
|
|
157
|
+
size: 0x3f,
|
|
158
|
+
grow: 0x40,
|
|
159
|
+
},
|
|
154
160
|
|
|
155
161
|
i32: {
|
|
162
|
+
load: 0x28,
|
|
156
163
|
const: 0x41,
|
|
157
164
|
eqz: 0x45,
|
|
158
165
|
eq: 0x46,
|
|
@@ -170,6 +177,7 @@ const instr = {
|
|
|
170
177
|
mul: 0x6c,
|
|
171
178
|
},
|
|
172
179
|
i64: {
|
|
180
|
+
store32: 0x3e,
|
|
173
181
|
const: 0x42,
|
|
174
182
|
add: 0x7c,
|
|
175
183
|
sub: 0x7d,
|
|
@@ -190,6 +198,7 @@ const instr = {
|
|
|
190
198
|
sub: 0xa1,
|
|
191
199
|
mul: 0xa2,
|
|
192
200
|
div: 0xa3,
|
|
201
|
+
reinterpret_i64: 0xbf,
|
|
193
202
|
},
|
|
194
203
|
};
|
|
195
204
|
|