@wasmgroundup/emit 0.2.6 → 0.2.8
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 +12 -1
- package/dist/index.js +12 -1
- package/index.ts +12 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -41,6 +41,17 @@ declare const instr: {
|
|
|
41
41
|
};
|
|
42
42
|
i32: {
|
|
43
43
|
const: number;
|
|
44
|
+
eqz: number;
|
|
45
|
+
eq: number;
|
|
46
|
+
ne: number;
|
|
47
|
+
lt_s: number;
|
|
48
|
+
lt_u: number;
|
|
49
|
+
gt_s: number;
|
|
50
|
+
gt_u: number;
|
|
51
|
+
le_s: number;
|
|
52
|
+
le_u: number;
|
|
53
|
+
ge_s: number;
|
|
54
|
+
ge_u: number;
|
|
44
55
|
add: number;
|
|
45
56
|
sub: number;
|
|
46
57
|
mul: number;
|
|
@@ -82,4 +93,4 @@ declare const mut: {
|
|
|
82
93
|
declare function globaltype(t: any, m: any): any[];
|
|
83
94
|
declare function global(gt: any, e: any): any[];
|
|
84
95
|
declare function globalsec(globs: any): (number | BytecodeFragment)[];
|
|
85
|
-
export { blocktype, BytecodeFragment, code, codesec, export_, exportdesc, exportsec, f64, func, funcidx, funcsec, functype, global, globalsec, globaltype, i32, import_, importdesc, importsec, instr, locals, module, mut, name, section, typeidx, typesec, valtype, vec, };
|
|
96
|
+
export { blocktype, BytecodeFragment, code, codesec, export_, exportdesc, exportsec, f64, func, funcidx, funcsec, functype, global, globalsec, globaltype, i32, import_, importdesc, importsec, instr, locals, module, mut, name, section, typeidx, typesec, u32, valtype, vec, };
|
package/dist/index.js
CHANGED
|
@@ -106,6 +106,17 @@ const instr = {
|
|
|
106
106
|
},
|
|
107
107
|
i32: {
|
|
108
108
|
const: 0x41,
|
|
109
|
+
eqz: 0x45,
|
|
110
|
+
eq: 0x46,
|
|
111
|
+
ne: 0x47,
|
|
112
|
+
lt_s: 0x48,
|
|
113
|
+
lt_u: 0x49,
|
|
114
|
+
gt_s: 0x4a,
|
|
115
|
+
gt_u: 0x4b,
|
|
116
|
+
le_s: 0x4c,
|
|
117
|
+
le_u: 0x4d,
|
|
118
|
+
ge_s: 0x4e,
|
|
119
|
+
ge_u: 0x4f,
|
|
109
120
|
add: 0x6a,
|
|
110
121
|
sub: 0x6b,
|
|
111
122
|
mul: 0x6c,
|
|
@@ -207,4 +218,4 @@ function global(gt, e) {
|
|
|
207
218
|
function globalsec(globs) {
|
|
208
219
|
return section(SECTION_ID_GLOBAL, vec(globs));
|
|
209
220
|
}
|
|
210
|
-
export { blocktype, code, codesec, export_, exportdesc, exportsec, f64, func, funcidx, funcsec, functype, global, globalsec, globaltype, i32, import_, importdesc, importsec, instr, locals, module, mut, name, section, typeidx, typesec, valtype, vec, };
|
|
221
|
+
export { blocktype, code, codesec, export_, exportdesc, exportsec, f64, func, funcidx, funcsec, functype, global, globalsec, globaltype, i32, import_, importdesc, importsec, instr, locals, module, mut, name, section, typeidx, typesec, u32, valtype, vec, };
|
package/index.ts
CHANGED
|
@@ -138,6 +138,17 @@ const instr = {
|
|
|
138
138
|
|
|
139
139
|
i32: {
|
|
140
140
|
const: 0x41,
|
|
141
|
+
eqz: 0x45,
|
|
142
|
+
eq: 0x46,
|
|
143
|
+
ne: 0x47,
|
|
144
|
+
lt_s: 0x48,
|
|
145
|
+
lt_u: 0x49,
|
|
146
|
+
gt_s: 0x4a,
|
|
147
|
+
gt_u: 0x4b,
|
|
148
|
+
le_s: 0x4c,
|
|
149
|
+
le_u: 0x4d,
|
|
150
|
+
ge_s: 0x4e,
|
|
151
|
+
ge_u: 0x4f,
|
|
141
152
|
add: 0x6a,
|
|
142
153
|
sub: 0x6b,
|
|
143
154
|
mul: 0x6c,
|
|
@@ -288,6 +299,7 @@ export {
|
|
|
288
299
|
section,
|
|
289
300
|
typeidx,
|
|
290
301
|
typesec,
|
|
302
|
+
u32,
|
|
291
303
|
valtype,
|
|
292
304
|
vec,
|
|
293
305
|
};
|