porffor 0.18.3 → 0.18.5
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/compiler/builtins/array.ts +56 -0
- package/compiler/builtins/porffor.d.ts +2 -0
- package/compiler/codegen.js +3 -1
- package/compiler/generated_builtins.js +197 -7
- package/compiler/precompile.js +1 -1
- package/package.json +1 -1
- package/runner/index.js +1 -1
- package/bf +0 -0
@@ -142,6 +142,62 @@ export const __Array_prototype_with = (_this: any[], index: number, value: any)
|
|
142
142
|
return out;
|
143
143
|
};
|
144
144
|
|
145
|
+
// @porf-typed-array
|
146
|
+
export const __Array_prototype_copyWithin = (_this: any[], target: number, start: number, end: any) => {
|
147
|
+
const len: i32 = _this.length;
|
148
|
+
if (target < 0) {
|
149
|
+
target = len + target;
|
150
|
+
if (target < 0) target = 0;
|
151
|
+
}
|
152
|
+
if (target > len) target = len;
|
153
|
+
|
154
|
+
if (start < 0) {
|
155
|
+
start = len + start;
|
156
|
+
if (start < 0) start = 0;
|
157
|
+
}
|
158
|
+
if (start > len) start = len;
|
159
|
+
|
160
|
+
if (Porffor.rawType(end) == Porffor.TYPES.undefined) {
|
161
|
+
end = len;
|
162
|
+
} else {
|
163
|
+
if (end < 0) {
|
164
|
+
end = len + end;
|
165
|
+
if (end < 0) end = 0;
|
166
|
+
}
|
167
|
+
if (end > len) end = len;
|
168
|
+
}
|
169
|
+
|
170
|
+
while (start < end) {
|
171
|
+
_this[target++] = _this[start++];
|
172
|
+
}
|
173
|
+
|
174
|
+
return _this;
|
175
|
+
};
|
176
|
+
|
177
|
+
// @porf-typed-array
|
178
|
+
export const __Array_prototype_concat = (_this: any[], ...vals: any[]) => {
|
179
|
+
// todo/perf: rewrite to use memory.copy (via some Porffor.array.append thing?)
|
180
|
+
let out: any[] = Porffor.allocate();
|
181
|
+
Porffor.clone(_this, out);
|
182
|
+
|
183
|
+
let len: i32 = _this.length;
|
184
|
+
|
185
|
+
for (const x of vals) {
|
186
|
+
if (Porffor.rawType(x) & 0b01000000) { // value is iterable
|
187
|
+
// todo: for..of is broken here because ??
|
188
|
+
const l: i32 = x.length;
|
189
|
+
for (let i: i32 = 0; i < l; i++) {
|
190
|
+
out[len++] = x[i];
|
191
|
+
}
|
192
|
+
} else {
|
193
|
+
out[len++] = x;
|
194
|
+
}
|
195
|
+
}
|
196
|
+
|
197
|
+
out.length = len;
|
198
|
+
return out;
|
199
|
+
};
|
200
|
+
|
145
201
|
// @porf-typed-array
|
146
202
|
export const __Array_prototype_reverse = (_this: any[]) => {
|
147
203
|
const len: i32 = _this.length;
|
package/compiler/codegen.js
CHANGED
@@ -1035,7 +1035,7 @@ const asmFuncToAsm = (func, scope) => {
|
|
1035
1035
|
});
|
1036
1036
|
};
|
1037
1037
|
|
1038
|
-
const asmFunc = (name, { wasm, params, locals: localTypes, globals: globalTypes = [], globalInits = [], returns, returnType, localNames = [], globalNames = [], data: _data = [], table = false, constr = false }) => {
|
1038
|
+
const asmFunc = (name, { wasm, params, locals: localTypes, globals: globalTypes = [], globalInits = [], returns, returnType, localNames = [], globalNames = [], data: _data = [], table = false, constr = false, hasRestArgument = false }) => {
|
1039
1039
|
const existing = funcs.find(x => x.name === name);
|
1040
1040
|
if (existing) return existing;
|
1041
1041
|
|
@@ -1122,6 +1122,8 @@ const asmFunc = (name, { wasm, params, locals: localTypes, globals: globalTypes
|
|
1122
1122
|
}
|
1123
1123
|
}
|
1124
1124
|
|
1125
|
+
if (hasRestArgument) func.hasRestArgument = true;
|
1126
|
+
|
1125
1127
|
func.wasm = wasm;
|
1126
1128
|
|
1127
1129
|
return func;
|
@@ -281,6 +281,25 @@ export const BuiltinFuncs = function() {
|
|
281
281
|
locals: [124,124,127,124,127],
|
282
282
|
localNames: ["_this","_this#type","index","index#type","value","value#type","len","out","#last_type","#member_setter_val_tmp","#member_setter_ptr_tmp"],
|
283
283
|
};
|
284
|
+
this.__Array_prototype_copyWithin = {
|
285
|
+
wasm: (scope, {builtin,}) => [[32,0],[252,3],[40,1,0],[184],[33,8],[32,2],[68,0,0,0,0,0,0,0,0],[99],[4,64],[32,8],[32,2],[160],[34,2],[68,0,0,0,0,0,0,0,0],[99],[4,64],[68,0,0,0,0,0,0,0,0],[33,2],[11],[11],[32,2],[32,8],[100],[4,64],[32,8],[33,2],[11],[32,4],[68,0,0,0,0,0,0,0,0],[99],[4,64],[32,8],[32,4],[160],[34,4],[68,0,0,0,0,0,0,0,0],[99],[4,64],[68,0,0,0,0,0,0,0,0],[33,4],[11],[11],[32,4],[32,8],[100],[4,64],[32,8],[33,4],[11],[32,6],[32,7],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,8,64],[97],[4,64],[32,8],[34,6],[65,0],[33,7],[26],[5],[32,6],[68,0,0,0,0,0,0,0,0],[99],[4,64],[32,8],[32,6],[160],[34,6],[65,0],[33,7],[26],[32,6],[68,0,0,0,0,0,0,0,0],[99],[4,64],[68,0,0,0,0,0,0,0,0],[34,6],[65,0],[33,7],[26],[11],[11],[32,6],[32,8],[100],[4,64],[32,8],[34,6],[65,0],[33,7],[26],[11],[11],[3,64],[32,4],[32,6],[99],[4,64],[32,0],[252,3],[32,2],[32,2],[68,0,0,0,0,0,0,240,63],[160],[33,2],[252,3],[65,9],[108],[106],[34,10],[32,4],[32,4],[68,0,0,0,0,0,0,240,63],[160],[33,4],[252,3],[65,9],[108],[32,0],[252,3],[106],[34,11],[43,0,4],[32,11],[45,0,12],[33,12],[34,9],[57,0,4],[32,10],[32,12],[58,0,12],[12,1],[11],[11],[32,0],[65,208,0],[15]],
|
286
|
+
params: [124,127,124,127,124,127,124,127],
|
287
|
+
typedParams: true,
|
288
|
+
returns: [124,127],
|
289
|
+
typedReturns: true,
|
290
|
+
locals: [124,124,127,127,127],
|
291
|
+
localNames: ["_this","_this#type","target","target#type","start","start#type","end","end#type","len","#member_setter_val_tmp","#member_setter_ptr_tmp","#loadArray_offset","#last_type"],
|
292
|
+
};
|
293
|
+
this.__Array_prototype_concat = {
|
294
|
+
wasm: (scope, {builtin,internalThrow,}) => [[16, builtin('__Porffor_allocate')],[33,5],[33,4],[32,0],[32,4],[16, builtin('__Porffor_clone')],[32,0],[252,3],[40,1,0],[184],[33,6],[32,2],[252,3],[33,7],[65,0],[33,9],[32,7],[40,1,0],[33,8],[3,64],[32,7],[43,0,4],[32,7],[45,0,12],[33,11],[33,10],[2,64],[2,64],[32,10],[32,11],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,80,64],[16, builtin('f64_&')],[252,3],[4,64],[32,10],[252,3],[40,1,0],[184],[33,12],[68,0,0,0,0,0,0,0,0],[33,13],[3,64],[32,13],[32,12],[99],[4,64],[2,64],[32,4],[252,3],[32,6],[32,6],[68,0,0,0,0,0,0,240,63],[160],[33,6],[252,3],[65,9],[108],[106],[34,15],[32,11],[33,17],[2,124],[32,17],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,0],[65,1],[54,0,0],[65,0],[32,13],[252,3],[65,2],[108],[32,10],[252,3],[106],[47,0,4],[59,0,4],[68,0,0,0,0,0,0,0,0],[65,194,0],[33,5],[12,1],[11],[32,17],[65,208,0],[70],[4,64,"TYPESWITCH|Array"],[32,13],[252,3],[65,9],[108],[32,10],[252,3],[106],[34,16],[43,0,4],[32,16],[45,0,12],[33,5],[12,1],[11],[32,17],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[65,0],[65,1],[54,0,0],[65,0],[32,13],[252,3],[32,10],[252,3],[106],[45,0,4],[58,0,4],[68,0,0,0,0,0,0,0,0],[65,210,0],[33,5],[12,1],[11],[32,17],[65,213,0],[70],[4,64,"TYPESWITCH|Uint8Array"],[32,10],[252,3],[32,13],[252,3],[106],[45,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,214,0],[70],[4,64,"TYPESWITCH|Int8Array"],[32,10],[252,3],[32,13],[252,3],[106],[44,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,215,0],[70],[4,64,"TYPESWITCH|Uint8ClampedArray"],[32,10],[252,3],[32,13],[252,3],[106],[45,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,216,0],[70],[4,64,"TYPESWITCH|Uint16Array"],[32,10],[252,3],[32,13],[252,3],[65,2],[108],[106],[47,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,217,0],[70],[4,64,"TYPESWITCH|Int16Array"],[32,10],[252,3],[32,13],[252,3],[65,2],[108],[106],[46,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,218,0],[70],[4,64,"TYPESWITCH|Uint32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[40,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,219,0],[70],[4,64,"TYPESWITCH|Int32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[40,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,220,0],[70],[4,64,"TYPESWITCH|Float32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[42,0,4],[187],[65,0],[33,5],[12,1],[11],[32,17],[65,221,0],[70],[4,64,"TYPESWITCH|Float64Array"],[32,10],[252,3],[32,13],[252,3],[65,8],[108],[106],[43,0,4],[65,0],[33,5],[12,1],[11],...internalThrow(scope, 'TypeError', `Member expression is not supported for non-string non-array yet`),[68,0,0,0,0,0,0,0,0],[11,"TYPESWITCH_end"],[34,14],[57,0,4],[32,15],[32,5],[58,0,12],[11],[32,13],[68,0,0,0,0,0,0,240,63],[160],[33,13],[12,1],[11],[11],[5],[32,4],[252,3],[32,6],[32,6],[68,0,0,0,0,0,0,240,63],[160],[33,6],[252,3],[65,9],[108],[106],[34,15],[32,10],[34,14],[57,0,4],[32,15],[32,11],[58,0,12],[11],[11],[32,7],[65,9],[106],[33,7],[32,9],[65,1],[106],[34,9],[32,8],[71],[13,1],[11],[11],[32,4],[252,3],[32,6],[34,18],[252,3],[54,1,0],[32,4],[65,208,0],[15]],
|
295
|
+
params: [124,127,124,127],
|
296
|
+
typedParams: true,
|
297
|
+
returns: [124,127],
|
298
|
+
typedReturns: true,
|
299
|
+
locals: [124,127,124,127,127,127,124,127,124,124,124,127,127,127,124],
|
300
|
+
localNames: ["_this","_this#type","vals","vals#type","out","#last_type","len","forof_base_pointer","forof_length","forof_counter","x","x#type","l","i","#member_setter_val_tmp","#member_setter_ptr_tmp","#loadArray_offset","#typeswitch_tmp","__length_setter_tmp"],
|
301
|
+
hasRestArgument: true,
|
302
|
+
};
|
284
303
|
this.__Array_prototype_reverse = {
|
285
304
|
wasm: (scope, {}) => [[32,0],[252,3],[40,1,0],[184],[33,2],[68,0,0,0,0,0,0,0,0],[33,3],[32,2],[68,0,0,0,0,0,0,240,63],[161],[33,4],[3,64],[32,3],[32,4],[99],[4,64],[32,3],[252,3],[65,9],[108],[32,0],[252,3],[106],[34,6],[43,0,4],[32,6],[45,0,12],[33,7],[33,5],[32,0],[252,3],[32,3],[32,3],[68,0,0,0,0,0,0,240,63],[160],[33,3],[252,3],[65,9],[108],[106],[34,9],[32,4],[252,3],[65,9],[108],[32,0],[252,3],[106],[34,6],[43,0,4],[32,6],[45,0,12],[33,7],[34,8],[57,0,4],[32,9],[32,7],[58,0,12],[32,0],[252,3],[32,4],[32,4],[68,0,0,0,0,0,0,240,63],[161],[33,4],[252,3],[65,9],[108],[106],[34,9],[32,5],[34,8],[57,0,4],[32,9],[65,0],[58,0,12],[12,1],[11],[11],[32,0],[65,208,0],[15]],
|
286
305
|
params: [124,127],
|
@@ -2208,6 +2227,25 @@ export const BuiltinFuncs = function() {
|
|
2208
2227
|
locals: [124,124,127,124,127],
|
2209
2228
|
localNames: ["_this","_this#type","index","index#type","value","value#type","len","out","#last_type","#member_setter_val_tmp","#member_setter_ptr_tmp"],
|
2210
2229
|
};
|
2230
|
+
this.__Uint8Array_prototype_copyWithin = {
|
2231
|
+
wasm: (scope, {builtin,}) => [[32,0],[252,3],[40,1,0],[184],[33,8],[32,2],[68,0,0,0,0,0,0,0,0],[99],[4,64],[32,8],[32,2],[160],[34,2],[68,0,0,0,0,0,0,0,0],[99],[4,64],[68,0,0,0,0,0,0,0,0],[33,2],[11],[11],[32,2],[32,8],[100],[4,64],[32,8],[33,2],[11],[32,4],[68,0,0,0,0,0,0,0,0],[99],[4,64],[32,8],[32,4],[160],[34,4],[68,0,0,0,0,0,0,0,0],[99],[4,64],[68,0,0,0,0,0,0,0,0],[33,4],[11],[11],[32,4],[32,8],[100],[4,64],[32,8],[33,4],[11],[32,6],[32,7],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,8,64],[97],[4,64],[32,8],[34,6],[65,0],[33,7],[26],[5],[32,6],[68,0,0,0,0,0,0,0,0],[99],[4,64],[32,8],[32,6],[160],[34,6],[65,0],[33,7],[26],[32,6],[68,0,0,0,0,0,0,0,0],[99],[4,64],[68,0,0,0,0,0,0,0,0],[34,6],[65,0],[33,7],[26],[11],[11],[32,6],[32,8],[100],[4,64],[32,8],[34,6],[65,0],[33,7],[26],[11],[11],[3,64],[32,4],[32,6],[99],[4,64],[32,0],[252,3],[32,2],[32,2],[68,0,0,0,0,0,0,240,63],[160],[33,2],[252,3],[106],[32,0],[252,3],[32,4],[32,4],[68,0,0,0,0,0,0,240,63],[160],[33,4],[252,3],[106],[45,0,4],[184],[65,0],[33,12],[34,9],[252,3],[58,0,4],[65,0],[33,12],[12,1],[11],[11],[32,0],[65,213,0],[15]],
|
2232
|
+
params: [124,127,124,127,124,127,124,127],
|
2233
|
+
typedParams: true,
|
2234
|
+
returns: [124,127],
|
2235
|
+
typedReturns: true,
|
2236
|
+
locals: [124,124,127,127,127],
|
2237
|
+
localNames: ["_this","_this#type","target","target#type","start","start#type","end","end#type","len","#member_setter_val_tmp","#member_setter_ptr_tmp","#loadArray_offset","#last_type"],
|
2238
|
+
};
|
2239
|
+
this.__Uint8Array_prototype_concat = {
|
2240
|
+
wasm: (scope, {builtin,internalThrow,}) => [[16, builtin('__Porffor_allocate')],[33,5],[33,4],[32,0],[32,4],[16, builtin('__Porffor_clone')],[32,0],[252,3],[40,1,0],[184],[33,6],[32,2],[252,3],[33,7],[65,0],[33,9],[32,7],[40,1,0],[33,8],[65,0],[33,11],[3,64],[32,7],[32,9],[106],[45,0,4],[184],[33,10],[2,64],[2,64],[32,10],[32,11],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,80,64],[16, builtin('f64_&')],[252,3],[4,64],[32,10],[252,3],[40,1,0],[184],[33,12],[68,0,0,0,0,0,0,0,0],[33,13],[3,64],[32,13],[32,12],[99],[4,64],[2,64],[32,4],[252,3],[32,6],[32,6],[68,0,0,0,0,0,0,240,63],[160],[33,6],[252,3],[106],[32,11],[33,17],[2,124],[32,17],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,0],[65,1],[54,0,0],[65,0],[32,13],[252,3],[65,2],[108],[32,10],[252,3],[106],[47,0,4],[59,0,4],[68,0,0,0,0,0,0,0,0],[65,194,0],[33,5],[12,1],[11],[32,17],[65,208,0],[70],[4,64,"TYPESWITCH|Array"],[32,13],[252,3],[65,9],[108],[32,10],[252,3],[106],[34,16],[43,0,4],[32,16],[45,0,12],[33,5],[12,1],[11],[32,17],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[65,0],[65,1],[54,0,0],[65,0],[32,13],[252,3],[32,10],[252,3],[106],[45,0,4],[58,0,4],[68,0,0,0,0,0,0,0,0],[65,210,0],[33,5],[12,1],[11],[32,17],[65,213,0],[70],[4,64,"TYPESWITCH|Uint8Array"],[32,10],[252,3],[32,13],[252,3],[106],[45,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,214,0],[70],[4,64,"TYPESWITCH|Int8Array"],[32,10],[252,3],[32,13],[252,3],[106],[44,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,215,0],[70],[4,64,"TYPESWITCH|Uint8ClampedArray"],[32,10],[252,3],[32,13],[252,3],[106],[45,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,216,0],[70],[4,64,"TYPESWITCH|Uint16Array"],[32,10],[252,3],[32,13],[252,3],[65,2],[108],[106],[47,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,217,0],[70],[4,64,"TYPESWITCH|Int16Array"],[32,10],[252,3],[32,13],[252,3],[65,2],[108],[106],[46,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,218,0],[70],[4,64,"TYPESWITCH|Uint32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[40,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,219,0],[70],[4,64,"TYPESWITCH|Int32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[40,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,220,0],[70],[4,64,"TYPESWITCH|Float32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[42,0,4],[187],[65,0],[33,5],[12,1],[11],[32,17],[65,221,0],[70],[4,64,"TYPESWITCH|Float64Array"],[32,10],[252,3],[32,13],[252,3],[65,8],[108],[106],[43,0,4],[65,0],[33,5],[12,1],[11],...internalThrow(scope, 'TypeError', `Member expression is not supported for non-string non-array yet`),[68,0,0,0,0,0,0,0,0],[11,"TYPESWITCH_end"],[34,14],[252,3],[58,0,4],[65,0],[33,5],[11],[32,13],[68,0,0,0,0,0,0,240,63],[160],[33,13],[12,1],[11],[11],[5],[32,4],[252,3],[32,6],[32,6],[68,0,0,0,0,0,0,240,63],[160],[33,6],[252,3],[106],[32,10],[34,14],[252,3],[58,0,4],[65,0],[33,5],[11],[11],[32,9],[65,1],[106],[34,9],[32,8],[71],[13,1],[11],[11],[32,4],[252,3],[32,6],[34,18],[252,3],[54,1,0],[32,4],[65,213,0],[15]],
|
2241
|
+
params: [124,127,124,127],
|
2242
|
+
typedParams: true,
|
2243
|
+
returns: [124,127],
|
2244
|
+
typedReturns: true,
|
2245
|
+
locals: [124,127,124,127,127,127,124,127,124,124,124,127,127,127,124],
|
2246
|
+
localNames: ["_this","_this#type","vals","vals#type","out","#last_type","len","forof_base_pointer","forof_length","forof_counter","x","x#type","l","i","#member_setter_val_tmp","#member_setter_ptr_tmp","#loadArray_offset","#typeswitch_tmp","__length_setter_tmp"],
|
2247
|
+
hasRestArgument: true,
|
2248
|
+
};
|
2211
2249
|
this.__Uint8Array_prototype_reverse = {
|
2212
2250
|
wasm: (scope, {}) => [[32,0],[252,3],[40,1,0],[184],[33,2],[68,0,0,0,0,0,0,0,0],[33,3],[32,2],[68,0,0,0,0,0,0,240,63],[161],[33,4],[3,64],[32,3],[32,4],[99],[4,64],[32,0],[252,3],[32,3],[252,3],[106],[45,0,4],[184],[65,0],[33,7],[33,5],[32,0],[252,3],[32,3],[32,3],[68,0,0,0,0,0,0,240,63],[160],[33,3],[252,3],[106],[32,0],[252,3],[32,4],[252,3],[106],[45,0,4],[184],[65,0],[33,7],[34,8],[252,3],[58,0,4],[65,0],[33,7],[32,0],[252,3],[32,4],[32,4],[68,0,0,0,0,0,0,240,63],[161],[33,4],[252,3],[106],[32,5],[34,8],[252,3],[58,0,4],[65,0],[33,7],[12,1],[11],[11],[32,0],[65,213,0],[15]],
|
2213
2251
|
params: [124,127],
|
@@ -2456,6 +2494,25 @@ export const BuiltinFuncs = function() {
|
|
2456
2494
|
locals: [124,124,127,124,127],
|
2457
2495
|
localNames: ["_this","_this#type","index","index#type","value","value#type","len","out","#last_type","#member_setter_val_tmp","#member_setter_ptr_tmp"],
|
2458
2496
|
};
|
2497
|
+
this.__Int8Array_prototype_copyWithin = {
|
2498
|
+
wasm: (scope, {builtin,}) => [[32,0],[252,3],[40,1,0],[184],[33,8],[32,2],[68,0,0,0,0,0,0,0,0],[99],[4,64],[32,8],[32,2],[160],[34,2],[68,0,0,0,0,0,0,0,0],[99],[4,64],[68,0,0,0,0,0,0,0,0],[33,2],[11],[11],[32,2],[32,8],[100],[4,64],[32,8],[33,2],[11],[32,4],[68,0,0,0,0,0,0,0,0],[99],[4,64],[32,8],[32,4],[160],[34,4],[68,0,0,0,0,0,0,0,0],[99],[4,64],[68,0,0,0,0,0,0,0,0],[33,4],[11],[11],[32,4],[32,8],[100],[4,64],[32,8],[33,4],[11],[32,6],[32,7],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,8,64],[97],[4,64],[32,8],[34,6],[65,0],[33,7],[26],[5],[32,6],[68,0,0,0,0,0,0,0,0],[99],[4,64],[32,8],[32,6],[160],[34,6],[65,0],[33,7],[26],[32,6],[68,0,0,0,0,0,0,0,0],[99],[4,64],[68,0,0,0,0,0,0,0,0],[34,6],[65,0],[33,7],[26],[11],[11],[32,6],[32,8],[100],[4,64],[32,8],[34,6],[65,0],[33,7],[26],[11],[11],[3,64],[32,4],[32,6],[99],[4,64],[32,0],[252,3],[32,2],[32,2],[68,0,0,0,0,0,0,240,63],[160],[33,2],[252,3],[106],[32,0],[252,3],[32,4],[32,4],[68,0,0,0,0,0,0,240,63],[160],[33,4],[252,3],[106],[44,0,4],[183],[65,0],[33,12],[34,9],[252,2],[58,0,4],[65,0],[33,12],[12,1],[11],[11],[32,0],[65,214,0],[15]],
|
2499
|
+
params: [124,127,124,127,124,127,124,127],
|
2500
|
+
typedParams: true,
|
2501
|
+
returns: [124,127],
|
2502
|
+
typedReturns: true,
|
2503
|
+
locals: [124,124,127,127,127],
|
2504
|
+
localNames: ["_this","_this#type","target","target#type","start","start#type","end","end#type","len","#member_setter_val_tmp","#member_setter_ptr_tmp","#loadArray_offset","#last_type"],
|
2505
|
+
};
|
2506
|
+
this.__Int8Array_prototype_concat = {
|
2507
|
+
wasm: (scope, {builtin,internalThrow,}) => [[16, builtin('__Porffor_allocate')],[33,5],[33,4],[32,0],[32,4],[16, builtin('__Porffor_clone')],[32,0],[252,3],[40,1,0],[184],[33,6],[32,2],[252,3],[33,7],[65,0],[33,9],[32,7],[40,1,0],[33,8],[65,0],[33,11],[3,64],[32,7],[32,9],[106],[44,0,4],[183],[33,10],[2,64],[2,64],[32,10],[32,11],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,80,64],[16, builtin('f64_&')],[252,3],[4,64],[32,10],[252,3],[40,1,0],[184],[33,12],[68,0,0,0,0,0,0,0,0],[33,13],[3,64],[32,13],[32,12],[99],[4,64],[2,64],[32,4],[252,3],[32,6],[32,6],[68,0,0,0,0,0,0,240,63],[160],[33,6],[252,3],[106],[32,11],[33,17],[2,124],[32,17],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,128,128,192,1],[65,1],[54,0,0],[65,128,128,192,1],[32,13],[252,3],[65,2],[108],[32,10],[252,3],[106],[47,0,4],[59,0,4],[68,0,0,0,0,0,0,72,65],[65,194,0],[33,5],[12,1],[11],[32,17],[65,208,0],[70],[4,64,"TYPESWITCH|Array"],[32,13],[252,3],[65,9],[108],[32,10],[252,3],[106],[34,16],[43,0,4],[32,16],[45,0,12],[33,5],[12,1],[11],[32,17],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[65,128,128,192,1],[65,1],[54,0,0],[65,128,128,192,1],[32,13],[252,3],[32,10],[252,3],[106],[45,0,4],[58,0,4],[68,0,0,0,0,0,0,72,65],[65,210,0],[33,5],[12,1],[11],[32,17],[65,213,0],[70],[4,64,"TYPESWITCH|Uint8Array"],[32,10],[252,3],[32,13],[252,3],[106],[45,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,214,0],[70],[4,64,"TYPESWITCH|Int8Array"],[32,10],[252,3],[32,13],[252,3],[106],[44,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,215,0],[70],[4,64,"TYPESWITCH|Uint8ClampedArray"],[32,10],[252,3],[32,13],[252,3],[106],[45,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,216,0],[70],[4,64,"TYPESWITCH|Uint16Array"],[32,10],[252,3],[32,13],[252,3],[65,2],[108],[106],[47,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,217,0],[70],[4,64,"TYPESWITCH|Int16Array"],[32,10],[252,3],[32,13],[252,3],[65,2],[108],[106],[46,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,218,0],[70],[4,64,"TYPESWITCH|Uint32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[40,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,219,0],[70],[4,64,"TYPESWITCH|Int32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[40,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,220,0],[70],[4,64,"TYPESWITCH|Float32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[42,0,4],[187],[65,0],[33,5],[12,1],[11],[32,17],[65,221,0],[70],[4,64,"TYPESWITCH|Float64Array"],[32,10],[252,3],[32,13],[252,3],[65,8],[108],[106],[43,0,4],[65,0],[33,5],[12,1],[11],...internalThrow(scope, 'TypeError', `Member expression is not supported for non-string non-array yet`),[68,0,0,0,0,0,0,0,0],[11,"TYPESWITCH_end"],[34,14],[252,2],[58,0,4],[65,0],[33,5],[11],[32,13],[68,0,0,0,0,0,0,240,63],[160],[33,13],[12,1],[11],[11],[5],[32,4],[252,3],[32,6],[32,6],[68,0,0,0,0,0,0,240,63],[160],[33,6],[252,3],[106],[32,10],[34,14],[252,2],[58,0,4],[65,0],[33,5],[11],[11],[32,9],[65,1],[106],[34,9],[32,8],[71],[13,1],[11],[11],[32,4],[252,3],[32,6],[34,18],[252,3],[54,1,0],[32,4],[65,214,0],[15]],
|
2508
|
+
params: [124,127,124,127],
|
2509
|
+
typedParams: true,
|
2510
|
+
returns: [124,127],
|
2511
|
+
typedReturns: true,
|
2512
|
+
locals: [124,127,124,127,127,127,124,127,124,124,124,127,127,127,124],
|
2513
|
+
localNames: ["_this","_this#type","vals","vals#type","out","#last_type","len","forof_base_pointer","forof_length","forof_counter","x","x#type","l","i","#member_setter_val_tmp","#member_setter_ptr_tmp","#loadArray_offset","#typeswitch_tmp","__length_setter_tmp"],
|
2514
|
+
hasRestArgument: true,
|
2515
|
+
};
|
2459
2516
|
this.__Int8Array_prototype_reverse = {
|
2460
2517
|
wasm: (scope, {}) => [[32,0],[252,3],[40,1,0],[184],[33,2],[68,0,0,0,0,0,0,0,0],[33,3],[32,2],[68,0,0,0,0,0,0,240,63],[161],[33,4],[3,64],[32,3],[32,4],[99],[4,64],[32,0],[252,3],[32,3],[252,3],[106],[44,0,4],[183],[65,0],[33,7],[33,5],[32,0],[252,3],[32,3],[32,3],[68,0,0,0,0,0,0,240,63],[160],[33,3],[252,3],[106],[32,0],[252,3],[32,4],[252,3],[106],[44,0,4],[183],[65,0],[33,7],[34,8],[252,2],[58,0,4],[65,0],[33,7],[32,0],[252,3],[32,4],[32,4],[68,0,0,0,0,0,0,240,63],[161],[33,4],[252,3],[106],[32,5],[34,8],[252,2],[58,0,4],[65,0],[33,7],[12,1],[11],[11],[32,0],[65,214,0],[15]],
|
2461
2518
|
params: [124,127],
|
@@ -2623,7 +2680,7 @@ export const BuiltinFuncs = function() {
|
|
2623
2680
|
data: [{"bytes":[1,0,0,0,44],"offset":0}],
|
2624
2681
|
};
|
2625
2682
|
this.Uint8ClampedArray = {
|
2626
|
-
wasm: (scope, {builtin,internalThrow,}) => [[32,-1],[184],[65,1],[33,2],[33,3],[32,2],[33,4],[2,124],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,4],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,3],[68,0,0,0,0,0,0,0,0],[97],[184],[11,"TYPESWITCH_end"],[252,3],[4,64],...internalThrow(scope, 'TypeError', `Constructor Uint8ClampedArray requires 'new'`),[11],[16, builtin('__Porffor_allocate')],[33,2],[33,5],[68,0,0,0,0,0,0,0,0],[33,6],[32,0],[32,1],[16, builtin('__Porffor_rawType')],[34,7],[68,0,0,0,0,0,0,84,64],[97],[32,7],[68,0,0,0,0,0,128,80,64],[97],[114],[32,7],[68,0,0,0,0,0,128,84,64],[97],[114],[32,7],[68,0,0,0,0,0,0,52,64],[97],[114],[4,64],[68,0,0,0,0,0,0,0,0],[33,8],[32,0],[252,3],[33,9],[65,0],[33,11],[32,9],[40,1,0],[33,10],[32,1],[33,4],[2,64],[32,4],[65,20],[70],[4,64,"TYPESWITCH|Set"],[3,64],[32,9],[43,0,4],[32,9],[45,0,12],[33,13],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[106],[32,12],[34,14],[68,0,0,0,0,0,0,0,0],[165],[68,0,0,0,0,0,224,111,64],[164],[252,3],[58,0,4],[65,0],[33,2],[32,9],[65,9],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,194,0],[33,13],[65,128,128,
|
2683
|
+
wasm: (scope, {builtin,internalThrow,}) => [[32,-1],[184],[65,1],[33,2],[33,3],[32,2],[33,4],[2,124],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,4],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,3],[68,0,0,0,0,0,0,0,0],[97],[184],[11,"TYPESWITCH_end"],[252,3],[4,64],...internalThrow(scope, 'TypeError', `Constructor Uint8ClampedArray requires 'new'`),[11],[16, builtin('__Porffor_allocate')],[33,2],[33,5],[68,0,0,0,0,0,0,0,0],[33,6],[32,0],[32,1],[16, builtin('__Porffor_rawType')],[34,7],[68,0,0,0,0,0,0,84,64],[97],[32,7],[68,0,0,0,0,0,128,80,64],[97],[114],[32,7],[68,0,0,0,0,0,128,84,64],[97],[114],[32,7],[68,0,0,0,0,0,0,52,64],[97],[114],[4,64],[68,0,0,0,0,0,0,0,0],[33,8],[32,0],[252,3],[33,9],[65,0],[33,11],[32,9],[40,1,0],[33,10],[32,1],[33,4],[2,64],[32,4],[65,20],[70],[4,64,"TYPESWITCH|Set"],[3,64],[32,9],[43,0,4],[32,9],[45,0,12],[33,13],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[106],[32,12],[34,14],[68,0,0,0,0,0,0,0,0],[165],[68,0,0,0,0,0,224,111,64],[164],[252,3],[58,0,4],[65,0],[33,2],[32,9],[65,9],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,194,0],[33,13],[65,128,128,232,1],[65,1],[54,0,0],[3,64],[65,128,128,232,1],[32,9],[47,0,4],[59,0,4],[68,0,0,0,0,0,0,77,65],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[106],[32,12],[34,14],[68,0,0,0,0,0,0,0,0],[165],[68,0,0,0,0,0,224,111,64],[164],[252,3],[58,0,4],[65,0],[33,2],[32,9],[65,2],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,208,0],[70],[4,64,"TYPESWITCH|Array"],[3,64],[32,9],[43,0,4],[32,9],[45,0,12],[33,13],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[106],[32,12],[34,14],[68,0,0,0,0,0,0,0,0],[165],[68,0,0,0,0,0,224,111,64],[164],[252,3],[58,0,4],[65,0],[33,2],[32,9],[65,9],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[65,210,0],[33,13],[65,128,128,232,1],[65,1],[54,0,0],[3,64],[65,128,128,232,1],[32,9],[32,11],[106],[45,0,4],[58,0,4],[68,0,0,0,0,0,0,77,65],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[106],[32,12],[34,14],[68,0,0,0,0,0,0,0,0],[165],[68,0,0,0,0,0,224,111,64],[164],[252,3],[58,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,213,0],[70],[4,64,"TYPESWITCH|Uint8Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[106],[45,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[106],[32,12],[34,14],[68,0,0,0,0,0,0,0,0],[165],[68,0,0,0,0,0,224,111,64],[164],[252,3],[58,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,214,0],[70],[4,64,"TYPESWITCH|Int8Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[106],[44,0,4],[183],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[106],[32,12],[34,14],[68,0,0,0,0,0,0,0,0],[165],[68,0,0,0,0,0,224,111,64],[164],[252,3],[58,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,215,0],[70],[4,64,"TYPESWITCH|Uint8ClampedArray"],[65,0],[33,13],[3,64],[32,9],[32,11],[106],[45,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[106],[32,12],[34,14],[68,0,0,0,0,0,0,0,0],[165],[68,0,0,0,0,0,224,111,64],[164],[252,3],[58,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,216,0],[70],[4,64,"TYPESWITCH|Uint16Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,2],[108],[106],[47,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[106],[32,12],[34,14],[68,0,0,0,0,0,0,0,0],[165],[68,0,0,0,0,0,224,111,64],[164],[252,3],[58,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,217,0],[70],[4,64,"TYPESWITCH|Int16Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,2],[108],[106],[46,0,4],[183],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[106],[32,12],[34,14],[68,0,0,0,0,0,0,0,0],[165],[68,0,0,0,0,0,224,111,64],[164],[252,3],[58,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,218,0],[70],[4,64,"TYPESWITCH|Uint32Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,4],[108],[106],[40,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[106],[32,12],[34,14],[68,0,0,0,0,0,0,0,0],[165],[68,0,0,0,0,0,224,111,64],[164],[252,3],[58,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,219,0],[70],[4,64,"TYPESWITCH|Int32Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,4],[108],[106],[40,0,4],[183],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[106],[32,12],[34,14],[68,0,0,0,0,0,0,0,0],[165],[68,0,0,0,0,0,224,111,64],[164],[252,3],[58,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,220,0],[70],[4,64,"TYPESWITCH|Float32Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,4],[108],[106],[42,0,4],[187],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[106],[32,12],[34,14],[68,0,0,0,0,0,0,0,0],[165],[68,0,0,0,0,0,224,111,64],[164],[252,3],[58,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,221,0],[70],[4,64,"TYPESWITCH|Float64Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,8],[108],[106],[43,0,4],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[106],[32,12],[34,14],[68,0,0,0,0,0,0,0,0],[165],[68,0,0,0,0,0,224,111,64],[164],[252,3],[58,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],...internalThrow(scope, 'TypeError', `Tried for..of on non-iterable type`),[11,"TYPESWITCH_end"],[32,8],[33,6],[5],[32,7],[68,0,0,0,0,0,0,0,0],[97],[4,64],[32,0],[33,6],[11],[11],[32,5],[252,3],[32,6],[34,16],[252,3],[54,1,0],[32,5],[65,215,0],[15]],
|
2627
2684
|
params: [124,127],
|
2628
2685
|
typedParams: true,
|
2629
2686
|
returns: [124,127],
|
@@ -2704,6 +2761,25 @@ export const BuiltinFuncs = function() {
|
|
2704
2761
|
locals: [124,124,127,124,127],
|
2705
2762
|
localNames: ["_this","_this#type","index","index#type","value","value#type","len","out","#last_type","#member_setter_val_tmp","#member_setter_ptr_tmp"],
|
2706
2763
|
};
|
2764
|
+
this.__Uint8ClampedArray_prototype_copyWithin = {
|
2765
|
+
wasm: (scope, {builtin,}) => [[32,0],[252,3],[40,1,0],[184],[33,8],[32,2],[68,0,0,0,0,0,0,0,0],[99],[4,64],[32,8],[32,2],[160],[34,2],[68,0,0,0,0,0,0,0,0],[99],[4,64],[68,0,0,0,0,0,0,0,0],[33,2],[11],[11],[32,2],[32,8],[100],[4,64],[32,8],[33,2],[11],[32,4],[68,0,0,0,0,0,0,0,0],[99],[4,64],[32,8],[32,4],[160],[34,4],[68,0,0,0,0,0,0,0,0],[99],[4,64],[68,0,0,0,0,0,0,0,0],[33,4],[11],[11],[32,4],[32,8],[100],[4,64],[32,8],[33,4],[11],[32,6],[32,7],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,8,64],[97],[4,64],[32,8],[34,6],[65,0],[33,7],[26],[5],[32,6],[68,0,0,0,0,0,0,0,0],[99],[4,64],[32,8],[32,6],[160],[34,6],[65,0],[33,7],[26],[32,6],[68,0,0,0,0,0,0,0,0],[99],[4,64],[68,0,0,0,0,0,0,0,0],[34,6],[65,0],[33,7],[26],[11],[11],[32,6],[32,8],[100],[4,64],[32,8],[34,6],[65,0],[33,7],[26],[11],[11],[3,64],[32,4],[32,6],[99],[4,64],[32,0],[252,3],[32,2],[32,2],[68,0,0,0,0,0,0,240,63],[160],[33,2],[252,3],[106],[32,0],[252,3],[32,4],[32,4],[68,0,0,0,0,0,0,240,63],[160],[33,4],[252,3],[106],[45,0,4],[184],[65,0],[33,12],[34,9],[68,0,0,0,0,0,0,0,0],[165],[68,0,0,0,0,0,224,111,64],[164],[252,3],[58,0,4],[65,0],[33,12],[12,1],[11],[11],[32,0],[65,215,0],[15]],
|
2766
|
+
params: [124,127,124,127,124,127,124,127],
|
2767
|
+
typedParams: true,
|
2768
|
+
returns: [124,127],
|
2769
|
+
typedReturns: true,
|
2770
|
+
locals: [124,124,127,127,127],
|
2771
|
+
localNames: ["_this","_this#type","target","target#type","start","start#type","end","end#type","len","#member_setter_val_tmp","#member_setter_ptr_tmp","#loadArray_offset","#last_type"],
|
2772
|
+
};
|
2773
|
+
this.__Uint8ClampedArray_prototype_concat = {
|
2774
|
+
wasm: (scope, {builtin,internalThrow,}) => [[16, builtin('__Porffor_allocate')],[33,5],[33,4],[32,0],[32,4],[16, builtin('__Porffor_clone')],[32,0],[252,3],[40,1,0],[184],[33,6],[32,2],[252,3],[33,7],[65,0],[33,9],[32,7],[40,1,0],[33,8],[65,0],[33,11],[3,64],[32,7],[32,9],[106],[45,0,4],[184],[33,10],[2,64],[2,64],[32,10],[32,11],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,80,64],[16, builtin('f64_&')],[252,3],[4,64],[32,10],[252,3],[40,1,0],[184],[33,12],[68,0,0,0,0,0,0,0,0],[33,13],[3,64],[32,13],[32,12],[99],[4,64],[2,64],[32,4],[252,3],[32,6],[32,6],[68,0,0,0,0,0,0,240,63],[160],[33,6],[252,3],[106],[32,11],[33,17],[2,124],[32,17],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,128,128,148,3],[65,1],[54,0,0],[65,128,128,148,3],[32,13],[252,3],[65,2],[108],[32,10],[252,3],[106],[47,0,4],[59,0,4],[68,0,0,0,0,0,64,89,65],[65,194,0],[33,5],[12,1],[11],[32,17],[65,208,0],[70],[4,64,"TYPESWITCH|Array"],[32,13],[252,3],[65,9],[108],[32,10],[252,3],[106],[34,16],[43,0,4],[32,16],[45,0,12],[33,5],[12,1],[11],[32,17],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[65,128,128,148,3],[65,1],[54,0,0],[65,128,128,148,3],[32,13],[252,3],[32,10],[252,3],[106],[45,0,4],[58,0,4],[68,0,0,0,0,0,64,89,65],[65,210,0],[33,5],[12,1],[11],[32,17],[65,213,0],[70],[4,64,"TYPESWITCH|Uint8Array"],[32,10],[252,3],[32,13],[252,3],[106],[45,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,214,0],[70],[4,64,"TYPESWITCH|Int8Array"],[32,10],[252,3],[32,13],[252,3],[106],[44,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,215,0],[70],[4,64,"TYPESWITCH|Uint8ClampedArray"],[32,10],[252,3],[32,13],[252,3],[106],[45,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,216,0],[70],[4,64,"TYPESWITCH|Uint16Array"],[32,10],[252,3],[32,13],[252,3],[65,2],[108],[106],[47,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,217,0],[70],[4,64,"TYPESWITCH|Int16Array"],[32,10],[252,3],[32,13],[252,3],[65,2],[108],[106],[46,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,218,0],[70],[4,64,"TYPESWITCH|Uint32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[40,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,219,0],[70],[4,64,"TYPESWITCH|Int32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[40,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,220,0],[70],[4,64,"TYPESWITCH|Float32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[42,0,4],[187],[65,0],[33,5],[12,1],[11],[32,17],[65,221,0],[70],[4,64,"TYPESWITCH|Float64Array"],[32,10],[252,3],[32,13],[252,3],[65,8],[108],[106],[43,0,4],[65,0],[33,5],[12,1],[11],...internalThrow(scope, 'TypeError', `Member expression is not supported for non-string non-array yet`),[68,0,0,0,0,0,0,0,0],[11,"TYPESWITCH_end"],[34,14],[68,0,0,0,0,0,0,0,0],[165],[68,0,0,0,0,0,224,111,64],[164],[252,3],[58,0,4],[65,0],[33,5],[11],[32,13],[68,0,0,0,0,0,0,240,63],[160],[33,13],[12,1],[11],[11],[5],[32,4],[252,3],[32,6],[32,6],[68,0,0,0,0,0,0,240,63],[160],[33,6],[252,3],[106],[32,10],[34,14],[68,0,0,0,0,0,0,0,0],[165],[68,0,0,0,0,0,224,111,64],[164],[252,3],[58,0,4],[65,0],[33,5],[11],[11],[32,9],[65,1],[106],[34,9],[32,8],[71],[13,1],[11],[11],[32,4],[252,3],[32,6],[34,18],[252,3],[54,1,0],[32,4],[65,215,0],[15]],
|
2775
|
+
params: [124,127,124,127],
|
2776
|
+
typedParams: true,
|
2777
|
+
returns: [124,127],
|
2778
|
+
typedReturns: true,
|
2779
|
+
locals: [124,127,124,127,127,127,124,127,124,124,124,127,127,127,124],
|
2780
|
+
localNames: ["_this","_this#type","vals","vals#type","out","#last_type","len","forof_base_pointer","forof_length","forof_counter","x","x#type","l","i","#member_setter_val_tmp","#member_setter_ptr_tmp","#loadArray_offset","#typeswitch_tmp","__length_setter_tmp"],
|
2781
|
+
hasRestArgument: true,
|
2782
|
+
};
|
2707
2783
|
this.__Uint8ClampedArray_prototype_reverse = {
|
2708
2784
|
wasm: (scope, {}) => [[32,0],[252,3],[40,1,0],[184],[33,2],[68,0,0,0,0,0,0,0,0],[33,3],[32,2],[68,0,0,0,0,0,0,240,63],[161],[33,4],[3,64],[32,3],[32,4],[99],[4,64],[32,0],[252,3],[32,3],[252,3],[106],[45,0,4],[184],[65,0],[33,7],[33,5],[32,0],[252,3],[32,3],[32,3],[68,0,0,0,0,0,0,240,63],[160],[33,3],[252,3],[106],[32,0],[252,3],[32,4],[252,3],[106],[45,0,4],[184],[65,0],[33,7],[34,8],[68,0,0,0,0,0,0,0,0],[165],[68,0,0,0,0,0,224,111,64],[164],[252,3],[58,0,4],[65,0],[33,7],[32,0],[252,3],[32,4],[32,4],[68,0,0,0,0,0,0,240,63],[161],[33,4],[252,3],[106],[32,5],[34,8],[68,0,0,0,0,0,0,0,0],[165],[68,0,0,0,0,0,224,111,64],[164],[252,3],[58,0,4],[65,0],[33,7],[12,1],[11],[11],[32,0],[65,215,0],[15]],
|
2709
2785
|
params: [124,127],
|
@@ -2871,7 +2947,7 @@ export const BuiltinFuncs = function() {
|
|
2871
2947
|
data: [{"bytes":[1,0,0,0,44],"offset":0}],
|
2872
2948
|
};
|
2873
2949
|
this.Uint16Array = {
|
2874
|
-
wasm: (scope, {builtin,internalThrow,}) => [[32,-1],[184],[65,1],[33,2],[33,3],[32,2],[33,4],[2,124],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,4],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,3],[68,0,0,0,0,0,0,0,0],[97],[184],[11,"TYPESWITCH_end"],[252,3],[4,64],...internalThrow(scope, 'TypeError', `Constructor Uint16Array requires 'new'`),[11],[16, builtin('__Porffor_allocate')],[33,2],[33,5],[68,0,0,0,0,0,0,0,0],[33,6],[32,0],[32,1],[16, builtin('__Porffor_rawType')],[34,7],[68,0,0,0,0,0,0,84,64],[97],[32,7],[68,0,0,0,0,0,128,80,64],[97],[114],[32,7],[68,0,0,0,0,0,128,84,64],[97],[114],[32,7],[68,0,0,0,0,0,0,52,64],[97],[114],[4,64],[68,0,0,0,0,0,0,0,0],[33,8],[32,0],[252,3],[33,9],[65,0],[33,11],[32,9],[40,1,0],[33,10],[32,1],[33,4],[2,64],[32,4],[65,20],[70],[4,64,"TYPESWITCH|Set"],[3,64],[32,9],[43,0,4],[32,9],[45,0,12],[33,13],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,3],[59,0,4],[65,0],[33,2],[32,9],[65,9],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,194,0],[33,13],[65,128,128,
|
2950
|
+
wasm: (scope, {builtin,internalThrow,}) => [[32,-1],[184],[65,1],[33,2],[33,3],[32,2],[33,4],[2,124],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,4],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,3],[68,0,0,0,0,0,0,0,0],[97],[184],[11,"TYPESWITCH_end"],[252,3],[4,64],...internalThrow(scope, 'TypeError', `Constructor Uint16Array requires 'new'`),[11],[16, builtin('__Porffor_allocate')],[33,2],[33,5],[68,0,0,0,0,0,0,0,0],[33,6],[32,0],[32,1],[16, builtin('__Porffor_rawType')],[34,7],[68,0,0,0,0,0,0,84,64],[97],[32,7],[68,0,0,0,0,0,128,80,64],[97],[114],[32,7],[68,0,0,0,0,0,128,84,64],[97],[114],[32,7],[68,0,0,0,0,0,0,52,64],[97],[114],[4,64],[68,0,0,0,0,0,0,0,0],[33,8],[32,0],[252,3],[33,9],[65,0],[33,11],[32,9],[40,1,0],[33,10],[32,1],[33,4],[2,64],[32,4],[65,20],[70],[4,64,"TYPESWITCH|Set"],[3,64],[32,9],[43,0,4],[32,9],[45,0,12],[33,13],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,3],[59,0,4],[65,0],[33,2],[32,9],[65,9],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,194,0],[33,13],[65,128,128,192,3],[65,1],[54,0,0],[3,64],[65,128,128,192,3],[32,9],[47,0,4],[59,0,4],[68,0,0,0,0,0,0,92,65],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,3],[59,0,4],[65,0],[33,2],[32,9],[65,2],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,208,0],[70],[4,64,"TYPESWITCH|Array"],[3,64],[32,9],[43,0,4],[32,9],[45,0,12],[33,13],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,3],[59,0,4],[65,0],[33,2],[32,9],[65,9],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[65,210,0],[33,13],[65,128,128,192,3],[65,1],[54,0,0],[3,64],[65,128,128,192,3],[32,9],[32,11],[106],[45,0,4],[58,0,4],[68,0,0,0,0,0,0,92,65],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,3],[59,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,213,0],[70],[4,64,"TYPESWITCH|Uint8Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[106],[45,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,3],[59,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,214,0],[70],[4,64,"TYPESWITCH|Int8Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[106],[44,0,4],[183],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,3],[59,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,215,0],[70],[4,64,"TYPESWITCH|Uint8ClampedArray"],[65,0],[33,13],[3,64],[32,9],[32,11],[106],[45,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,3],[59,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,216,0],[70],[4,64,"TYPESWITCH|Uint16Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,2],[108],[106],[47,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,3],[59,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,217,0],[70],[4,64,"TYPESWITCH|Int16Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,2],[108],[106],[46,0,4],[183],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,3],[59,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,218,0],[70],[4,64,"TYPESWITCH|Uint32Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,4],[108],[106],[40,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,3],[59,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,219,0],[70],[4,64,"TYPESWITCH|Int32Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,4],[108],[106],[40,0,4],[183],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,3],[59,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,220,0],[70],[4,64,"TYPESWITCH|Float32Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,4],[108],[106],[42,0,4],[187],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,3],[59,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,221,0],[70],[4,64,"TYPESWITCH|Float64Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,8],[108],[106],[43,0,4],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,3],[59,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],...internalThrow(scope, 'TypeError', `Tried for..of on non-iterable type`),[11,"TYPESWITCH_end"],[32,8],[33,6],[5],[32,7],[68,0,0,0,0,0,0,0,0],[97],[4,64],[32,0],[33,6],[11],[11],[32,5],[252,3],[32,6],[34,16],[252,3],[54,1,0],[32,5],[65,216,0],[15]],
|
2875
2951
|
params: [124,127],
|
2876
2952
|
typedParams: true,
|
2877
2953
|
returns: [124,127],
|
@@ -2952,6 +3028,25 @@ export const BuiltinFuncs = function() {
|
|
2952
3028
|
locals: [124,124,127,124,127],
|
2953
3029
|
localNames: ["_this","_this#type","index","index#type","value","value#type","len","out","#last_type","#member_setter_val_tmp","#member_setter_ptr_tmp"],
|
2954
3030
|
};
|
3031
|
+
this.__Uint16Array_prototype_copyWithin = {
|
3032
|
+
wasm: (scope, {builtin,}) => [[32,0],[252,3],[40,1,0],[184],[33,8],[32,2],[68,0,0,0,0,0,0,0,0],[99],[4,64],[32,8],[32,2],[160],[34,2],[68,0,0,0,0,0,0,0,0],[99],[4,64],[68,0,0,0,0,0,0,0,0],[33,2],[11],[11],[32,2],[32,8],[100],[4,64],[32,8],[33,2],[11],[32,4],[68,0,0,0,0,0,0,0,0],[99],[4,64],[32,8],[32,4],[160],[34,4],[68,0,0,0,0,0,0,0,0],[99],[4,64],[68,0,0,0,0,0,0,0,0],[33,4],[11],[11],[32,4],[32,8],[100],[4,64],[32,8],[33,4],[11],[32,6],[32,7],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,8,64],[97],[4,64],[32,8],[34,6],[65,0],[33,7],[26],[5],[32,6],[68,0,0,0,0,0,0,0,0],[99],[4,64],[32,8],[32,6],[160],[34,6],[65,0],[33,7],[26],[32,6],[68,0,0,0,0,0,0,0,0],[99],[4,64],[68,0,0,0,0,0,0,0,0],[34,6],[65,0],[33,7],[26],[11],[11],[32,6],[32,8],[100],[4,64],[32,8],[34,6],[65,0],[33,7],[26],[11],[11],[3,64],[32,4],[32,6],[99],[4,64],[32,0],[252,3],[32,2],[32,2],[68,0,0,0,0,0,0,240,63],[160],[33,2],[252,3],[65,2],[108],[106],[32,0],[252,3],[32,4],[32,4],[68,0,0,0,0,0,0,240,63],[160],[33,4],[252,3],[65,2],[108],[106],[47,0,4],[184],[65,0],[33,12],[34,9],[252,3],[59,0,4],[65,0],[33,12],[12,1],[11],[11],[32,0],[65,216,0],[15]],
|
3033
|
+
params: [124,127,124,127,124,127,124,127],
|
3034
|
+
typedParams: true,
|
3035
|
+
returns: [124,127],
|
3036
|
+
typedReturns: true,
|
3037
|
+
locals: [124,124,127,127,127],
|
3038
|
+
localNames: ["_this","_this#type","target","target#type","start","start#type","end","end#type","len","#member_setter_val_tmp","#member_setter_ptr_tmp","#loadArray_offset","#last_type"],
|
3039
|
+
};
|
3040
|
+
this.__Uint16Array_prototype_concat = {
|
3041
|
+
wasm: (scope, {builtin,internalThrow,}) => [[16, builtin('__Porffor_allocate')],[33,5],[33,4],[32,0],[32,4],[16, builtin('__Porffor_clone')],[32,0],[252,3],[40,1,0],[184],[33,6],[32,2],[252,3],[33,7],[65,0],[33,9],[32,7],[40,1,0],[33,8],[65,0],[33,11],[3,64],[32,7],[32,9],[65,2],[108],[106],[47,0,4],[184],[33,10],[2,64],[2,64],[32,10],[32,11],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,80,64],[16, builtin('f64_&')],[252,3],[4,64],[32,10],[252,3],[40,1,0],[184],[33,12],[68,0,0,0,0,0,0,0,0],[33,13],[3,64],[32,13],[32,12],[99],[4,64],[2,64],[32,4],[252,3],[32,6],[32,6],[68,0,0,0,0,0,0,240,63],[160],[33,6],[252,3],[65,2],[108],[106],[32,11],[33,17],[2,124],[32,17],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,128,128,244,4],[65,1],[54,0,0],[65,128,128,244,4],[32,13],[252,3],[65,2],[108],[32,10],[252,3],[106],[47,0,4],[59,0,4],[68,0,0,0,0,0,160,99,65],[65,194,0],[33,5],[12,1],[11],[32,17],[65,208,0],[70],[4,64,"TYPESWITCH|Array"],[32,13],[252,3],[65,9],[108],[32,10],[252,3],[106],[34,16],[43,0,4],[32,16],[45,0,12],[33,5],[12,1],[11],[32,17],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[65,128,128,244,4],[65,1],[54,0,0],[65,128,128,244,4],[32,13],[252,3],[32,10],[252,3],[106],[45,0,4],[58,0,4],[68,0,0,0,0,0,160,99,65],[65,210,0],[33,5],[12,1],[11],[32,17],[65,213,0],[70],[4,64,"TYPESWITCH|Uint8Array"],[32,10],[252,3],[32,13],[252,3],[106],[45,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,214,0],[70],[4,64,"TYPESWITCH|Int8Array"],[32,10],[252,3],[32,13],[252,3],[106],[44,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,215,0],[70],[4,64,"TYPESWITCH|Uint8ClampedArray"],[32,10],[252,3],[32,13],[252,3],[106],[45,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,216,0],[70],[4,64,"TYPESWITCH|Uint16Array"],[32,10],[252,3],[32,13],[252,3],[65,2],[108],[106],[47,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,217,0],[70],[4,64,"TYPESWITCH|Int16Array"],[32,10],[252,3],[32,13],[252,3],[65,2],[108],[106],[46,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,218,0],[70],[4,64,"TYPESWITCH|Uint32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[40,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,219,0],[70],[4,64,"TYPESWITCH|Int32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[40,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,220,0],[70],[4,64,"TYPESWITCH|Float32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[42,0,4],[187],[65,0],[33,5],[12,1],[11],[32,17],[65,221,0],[70],[4,64,"TYPESWITCH|Float64Array"],[32,10],[252,3],[32,13],[252,3],[65,8],[108],[106],[43,0,4],[65,0],[33,5],[12,1],[11],...internalThrow(scope, 'TypeError', `Member expression is not supported for non-string non-array yet`),[68,0,0,0,0,0,0,0,0],[11,"TYPESWITCH_end"],[34,14],[252,3],[59,0,4],[65,0],[33,5],[11],[32,13],[68,0,0,0,0,0,0,240,63],[160],[33,13],[12,1],[11],[11],[5],[32,4],[252,3],[32,6],[32,6],[68,0,0,0,0,0,0,240,63],[160],[33,6],[252,3],[65,2],[108],[106],[32,10],[34,14],[252,3],[59,0,4],[65,0],[33,5],[11],[11],[32,9],[65,1],[106],[34,9],[32,8],[71],[13,1],[11],[11],[32,4],[252,3],[32,6],[34,18],[252,3],[54,1,0],[32,4],[65,216,0],[15]],
|
3042
|
+
params: [124,127,124,127],
|
3043
|
+
typedParams: true,
|
3044
|
+
returns: [124,127],
|
3045
|
+
typedReturns: true,
|
3046
|
+
locals: [124,127,124,127,127,127,124,127,124,124,124,127,127,127,124],
|
3047
|
+
localNames: ["_this","_this#type","vals","vals#type","out","#last_type","len","forof_base_pointer","forof_length","forof_counter","x","x#type","l","i","#member_setter_val_tmp","#member_setter_ptr_tmp","#loadArray_offset","#typeswitch_tmp","__length_setter_tmp"],
|
3048
|
+
hasRestArgument: true,
|
3049
|
+
};
|
2955
3050
|
this.__Uint16Array_prototype_reverse = {
|
2956
3051
|
wasm: (scope, {}) => [[32,0],[252,3],[40,1,0],[184],[33,2],[68,0,0,0,0,0,0,0,0],[33,3],[32,2],[68,0,0,0,0,0,0,240,63],[161],[33,4],[3,64],[32,3],[32,4],[99],[4,64],[32,0],[252,3],[32,3],[252,3],[65,2],[108],[106],[47,0,4],[184],[65,0],[33,7],[33,5],[32,0],[252,3],[32,3],[32,3],[68,0,0,0,0,0,0,240,63],[160],[33,3],[252,3],[65,2],[108],[106],[32,0],[252,3],[32,4],[252,3],[65,2],[108],[106],[47,0,4],[184],[65,0],[33,7],[34,8],[252,3],[59,0,4],[65,0],[33,7],[32,0],[252,3],[32,4],[32,4],[68,0,0,0,0,0,0,240,63],[161],[33,4],[252,3],[65,2],[108],[106],[32,5],[34,8],[252,3],[59,0,4],[65,0],[33,7],[12,1],[11],[11],[32,0],[65,216,0],[15]],
|
2957
3052
|
params: [124,127],
|
@@ -3119,7 +3214,7 @@ export const BuiltinFuncs = function() {
|
|
3119
3214
|
data: [{"bytes":[1,0,0,0,44],"offset":0}],
|
3120
3215
|
};
|
3121
3216
|
this.Int16Array = {
|
3122
|
-
wasm: (scope, {builtin,internalThrow,}) => [[32,-1],[184],[65,1],[33,2],[33,3],[32,2],[33,4],[2,124],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,4],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,3],[68,0,0,0,0,0,0,0,0],[97],[184],[11,"TYPESWITCH_end"],[252,3],[4,64],...internalThrow(scope, 'TypeError', `Constructor Int16Array requires 'new'`),[11],[16, builtin('__Porffor_allocate')],[33,2],[33,5],[68,0,0,0,0,0,0,0,0],[33,6],[32,0],[32,1],[16, builtin('__Porffor_rawType')],[34,7],[68,0,0,0,0,0,0,84,64],[97],[32,7],[68,0,0,0,0,0,128,80,64],[97],[114],[32,7],[68,0,0,0,0,0,128,84,64],[97],[114],[32,7],[68,0,0,0,0,0,0,52,64],[97],[114],[4,64],[68,0,0,0,0,0,0,0,0],[33,8],[32,0],[252,3],[33,9],[65,0],[33,11],[32,9],[40,1,0],[33,10],[32,1],[33,4],[2,64],[32,4],[65,20],[70],[4,64,"TYPESWITCH|Set"],[3,64],[32,9],[43,0,4],[32,9],[45,0,12],[33,13],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,2],[59,0,4],[65,0],[33,2],[32,9],[65,9],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,194,0],[33,13],[65,128,128,
|
3217
|
+
wasm: (scope, {builtin,internalThrow,}) => [[32,-1],[184],[65,1],[33,2],[33,3],[32,2],[33,4],[2,124],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,4],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,3],[68,0,0,0,0,0,0,0,0],[97],[184],[11,"TYPESWITCH_end"],[252,3],[4,64],...internalThrow(scope, 'TypeError', `Constructor Int16Array requires 'new'`),[11],[16, builtin('__Porffor_allocate')],[33,2],[33,5],[68,0,0,0,0,0,0,0,0],[33,6],[32,0],[32,1],[16, builtin('__Porffor_rawType')],[34,7],[68,0,0,0,0,0,0,84,64],[97],[32,7],[68,0,0,0,0,0,128,80,64],[97],[114],[32,7],[68,0,0,0,0,0,128,84,64],[97],[114],[32,7],[68,0,0,0,0,0,0,52,64],[97],[114],[4,64],[68,0,0,0,0,0,0,0,0],[33,8],[32,0],[252,3],[33,9],[65,0],[33,11],[32,9],[40,1,0],[33,10],[32,1],[33,4],[2,64],[32,4],[65,20],[70],[4,64,"TYPESWITCH|Set"],[3,64],[32,9],[43,0,4],[32,9],[45,0,12],[33,13],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,2],[59,0,4],[65,0],[33,2],[32,9],[65,9],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,194,0],[33,13],[65,128,128,152,5],[65,1],[54,0,0],[3,64],[65,128,128,152,5],[32,9],[47,0,4],[59,0,4],[68,0,0,0,0,0,192,100,65],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,2],[59,0,4],[65,0],[33,2],[32,9],[65,2],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,208,0],[70],[4,64,"TYPESWITCH|Array"],[3,64],[32,9],[43,0,4],[32,9],[45,0,12],[33,13],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,2],[59,0,4],[65,0],[33,2],[32,9],[65,9],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[65,210,0],[33,13],[65,128,128,152,5],[65,1],[54,0,0],[3,64],[65,128,128,152,5],[32,9],[32,11],[106],[45,0,4],[58,0,4],[68,0,0,0,0,0,192,100,65],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,2],[59,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,213,0],[70],[4,64,"TYPESWITCH|Uint8Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[106],[45,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,2],[59,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,214,0],[70],[4,64,"TYPESWITCH|Int8Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[106],[44,0,4],[183],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,2],[59,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,215,0],[70],[4,64,"TYPESWITCH|Uint8ClampedArray"],[65,0],[33,13],[3,64],[32,9],[32,11],[106],[45,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,2],[59,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,216,0],[70],[4,64,"TYPESWITCH|Uint16Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,2],[108],[106],[47,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,2],[59,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,217,0],[70],[4,64,"TYPESWITCH|Int16Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,2],[108],[106],[46,0,4],[183],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,2],[59,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,218,0],[70],[4,64,"TYPESWITCH|Uint32Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,4],[108],[106],[40,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,2],[59,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,219,0],[70],[4,64,"TYPESWITCH|Int32Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,4],[108],[106],[40,0,4],[183],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,2],[59,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,220,0],[70],[4,64,"TYPESWITCH|Float32Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,4],[108],[106],[42,0,4],[187],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,2],[59,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,221,0],[70],[4,64,"TYPESWITCH|Float64Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,8],[108],[106],[43,0,4],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,2],[108],[106],[32,12],[34,14],[252,2],[59,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],...internalThrow(scope, 'TypeError', `Tried for..of on non-iterable type`),[11,"TYPESWITCH_end"],[32,8],[33,6],[5],[32,7],[68,0,0,0,0,0,0,0,0],[97],[4,64],[32,0],[33,6],[11],[11],[32,5],[252,3],[32,6],[34,16],[252,3],[54,1,0],[32,5],[65,217,0],[15]],
|
3123
3218
|
params: [124,127],
|
3124
3219
|
typedParams: true,
|
3125
3220
|
returns: [124,127],
|
@@ -3200,6 +3295,25 @@ export const BuiltinFuncs = function() {
|
|
3200
3295
|
locals: [124,124,127,124,127],
|
3201
3296
|
localNames: ["_this","_this#type","index","index#type","value","value#type","len","out","#last_type","#member_setter_val_tmp","#member_setter_ptr_tmp"],
|
3202
3297
|
};
|
3298
|
+
this.__Int16Array_prototype_copyWithin = {
|
3299
|
+
wasm: (scope, {builtin,}) => [[32,0],[252,3],[40,1,0],[184],[33,8],[32,2],[68,0,0,0,0,0,0,0,0],[99],[4,64],[32,8],[32,2],[160],[34,2],[68,0,0,0,0,0,0,0,0],[99],[4,64],[68,0,0,0,0,0,0,0,0],[33,2],[11],[11],[32,2],[32,8],[100],[4,64],[32,8],[33,2],[11],[32,4],[68,0,0,0,0,0,0,0,0],[99],[4,64],[32,8],[32,4],[160],[34,4],[68,0,0,0,0,0,0,0,0],[99],[4,64],[68,0,0,0,0,0,0,0,0],[33,4],[11],[11],[32,4],[32,8],[100],[4,64],[32,8],[33,4],[11],[32,6],[32,7],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,8,64],[97],[4,64],[32,8],[34,6],[65,0],[33,7],[26],[5],[32,6],[68,0,0,0,0,0,0,0,0],[99],[4,64],[32,8],[32,6],[160],[34,6],[65,0],[33,7],[26],[32,6],[68,0,0,0,0,0,0,0,0],[99],[4,64],[68,0,0,0,0,0,0,0,0],[34,6],[65,0],[33,7],[26],[11],[11],[32,6],[32,8],[100],[4,64],[32,8],[34,6],[65,0],[33,7],[26],[11],[11],[3,64],[32,4],[32,6],[99],[4,64],[32,0],[252,3],[32,2],[32,2],[68,0,0,0,0,0,0,240,63],[160],[33,2],[252,3],[65,2],[108],[106],[32,0],[252,3],[32,4],[32,4],[68,0,0,0,0,0,0,240,63],[160],[33,4],[252,3],[65,2],[108],[106],[46,0,4],[183],[65,0],[33,12],[34,9],[252,2],[59,0,4],[65,0],[33,12],[12,1],[11],[11],[32,0],[65,217,0],[15]],
|
3300
|
+
params: [124,127,124,127,124,127,124,127],
|
3301
|
+
typedParams: true,
|
3302
|
+
returns: [124,127],
|
3303
|
+
typedReturns: true,
|
3304
|
+
locals: [124,124,127,127,127],
|
3305
|
+
localNames: ["_this","_this#type","target","target#type","start","start#type","end","end#type","len","#member_setter_val_tmp","#member_setter_ptr_tmp","#loadArray_offset","#last_type"],
|
3306
|
+
};
|
3307
|
+
this.__Int16Array_prototype_concat = {
|
3308
|
+
wasm: (scope, {builtin,internalThrow,}) => [[16, builtin('__Porffor_allocate')],[33,5],[33,4],[32,0],[32,4],[16, builtin('__Porffor_clone')],[32,0],[252,3],[40,1,0],[184],[33,6],[32,2],[252,3],[33,7],[65,0],[33,9],[32,7],[40,1,0],[33,8],[65,0],[33,11],[3,64],[32,7],[32,9],[65,2],[108],[106],[46,0,4],[183],[33,10],[2,64],[2,64],[32,10],[32,11],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,80,64],[16, builtin('f64_&')],[252,3],[4,64],[32,10],[252,3],[40,1,0],[184],[33,12],[68,0,0,0,0,0,0,0,0],[33,13],[3,64],[32,13],[32,12],[99],[4,64],[2,64],[32,4],[252,3],[32,6],[32,6],[68,0,0,0,0,0,0,240,63],[160],[33,6],[252,3],[65,2],[108],[106],[32,11],[33,17],[2,124],[32,17],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,128,128,208,6],[65,1],[54,0,0],[65,128,128,208,6],[32,13],[252,3],[65,2],[108],[32,10],[252,3],[106],[47,0,4],[59,0,4],[68,0,0,0,0,0,128,106,65],[65,194,0],[33,5],[12,1],[11],[32,17],[65,208,0],[70],[4,64,"TYPESWITCH|Array"],[32,13],[252,3],[65,9],[108],[32,10],[252,3],[106],[34,16],[43,0,4],[32,16],[45,0,12],[33,5],[12,1],[11],[32,17],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[65,128,128,208,6],[65,1],[54,0,0],[65,128,128,208,6],[32,13],[252,3],[32,10],[252,3],[106],[45,0,4],[58,0,4],[68,0,0,0,0,0,128,106,65],[65,210,0],[33,5],[12,1],[11],[32,17],[65,213,0],[70],[4,64,"TYPESWITCH|Uint8Array"],[32,10],[252,3],[32,13],[252,3],[106],[45,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,214,0],[70],[4,64,"TYPESWITCH|Int8Array"],[32,10],[252,3],[32,13],[252,3],[106],[44,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,215,0],[70],[4,64,"TYPESWITCH|Uint8ClampedArray"],[32,10],[252,3],[32,13],[252,3],[106],[45,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,216,0],[70],[4,64,"TYPESWITCH|Uint16Array"],[32,10],[252,3],[32,13],[252,3],[65,2],[108],[106],[47,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,217,0],[70],[4,64,"TYPESWITCH|Int16Array"],[32,10],[252,3],[32,13],[252,3],[65,2],[108],[106],[46,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,218,0],[70],[4,64,"TYPESWITCH|Uint32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[40,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,219,0],[70],[4,64,"TYPESWITCH|Int32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[40,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,220,0],[70],[4,64,"TYPESWITCH|Float32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[42,0,4],[187],[65,0],[33,5],[12,1],[11],[32,17],[65,221,0],[70],[4,64,"TYPESWITCH|Float64Array"],[32,10],[252,3],[32,13],[252,3],[65,8],[108],[106],[43,0,4],[65,0],[33,5],[12,1],[11],...internalThrow(scope, 'TypeError', `Member expression is not supported for non-string non-array yet`),[68,0,0,0,0,0,0,0,0],[11,"TYPESWITCH_end"],[34,14],[252,2],[59,0,4],[65,0],[33,5],[11],[32,13],[68,0,0,0,0,0,0,240,63],[160],[33,13],[12,1],[11],[11],[5],[32,4],[252,3],[32,6],[32,6],[68,0,0,0,0,0,0,240,63],[160],[33,6],[252,3],[65,2],[108],[106],[32,10],[34,14],[252,2],[59,0,4],[65,0],[33,5],[11],[11],[32,9],[65,1],[106],[34,9],[32,8],[71],[13,1],[11],[11],[32,4],[252,3],[32,6],[34,18],[252,3],[54,1,0],[32,4],[65,217,0],[15]],
|
3309
|
+
params: [124,127,124,127],
|
3310
|
+
typedParams: true,
|
3311
|
+
returns: [124,127],
|
3312
|
+
typedReturns: true,
|
3313
|
+
locals: [124,127,124,127,127,127,124,127,124,124,124,127,127,127,124],
|
3314
|
+
localNames: ["_this","_this#type","vals","vals#type","out","#last_type","len","forof_base_pointer","forof_length","forof_counter","x","x#type","l","i","#member_setter_val_tmp","#member_setter_ptr_tmp","#loadArray_offset","#typeswitch_tmp","__length_setter_tmp"],
|
3315
|
+
hasRestArgument: true,
|
3316
|
+
};
|
3203
3317
|
this.__Int16Array_prototype_reverse = {
|
3204
3318
|
wasm: (scope, {}) => [[32,0],[252,3],[40,1,0],[184],[33,2],[68,0,0,0,0,0,0,0,0],[33,3],[32,2],[68,0,0,0,0,0,0,240,63],[161],[33,4],[3,64],[32,3],[32,4],[99],[4,64],[32,0],[252,3],[32,3],[252,3],[65,2],[108],[106],[46,0,4],[183],[65,0],[33,7],[33,5],[32,0],[252,3],[32,3],[32,3],[68,0,0,0,0,0,0,240,63],[160],[33,3],[252,3],[65,2],[108],[106],[32,0],[252,3],[32,4],[252,3],[65,2],[108],[106],[46,0,4],[183],[65,0],[33,7],[34,8],[252,2],[59,0,4],[65,0],[33,7],[32,0],[252,3],[32,4],[32,4],[68,0,0,0,0,0,0,240,63],[161],[33,4],[252,3],[65,2],[108],[106],[32,5],[34,8],[252,2],[59,0,4],[65,0],[33,7],[12,1],[11],[11],[32,0],[65,217,0],[15]],
|
3205
3319
|
params: [124,127],
|
@@ -3367,7 +3481,7 @@ export const BuiltinFuncs = function() {
|
|
3367
3481
|
data: [{"bytes":[1,0,0,0,44],"offset":0}],
|
3368
3482
|
};
|
3369
3483
|
this.Uint32Array = {
|
3370
|
-
wasm: (scope, {builtin,internalThrow,}) => [[32,-1],[184],[65,1],[33,2],[33,3],[32,2],[33,4],[2,124],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,4],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,3],[68,0,0,0,0,0,0,0,0],[97],[184],[11,"TYPESWITCH_end"],[252,3],[4,64],...internalThrow(scope, 'TypeError', `Constructor Uint32Array requires 'new'`),[11],[16, builtin('__Porffor_allocate')],[33,2],[33,5],[68,0,0,0,0,0,0,0,0],[33,6],[32,0],[32,1],[16, builtin('__Porffor_rawType')],[34,7],[68,0,0,0,0,0,0,84,64],[97],[32,7],[68,0,0,0,0,0,128,80,64],[97],[114],[32,7],[68,0,0,0,0,0,128,84,64],[97],[114],[32,7],[68,0,0,0,0,0,0,52,64],[97],[114],[4,64],[68,0,0,0,0,0,0,0,0],[33,8],[32,0],[252,3],[33,9],[65,0],[33,11],[32,9],[40,1,0],[33,10],[32,1],[33,4],[2,64],[32,4],[65,20],[70],[4,64,"TYPESWITCH|Set"],[3,64],[32,9],[43,0,4],[32,9],[45,0,12],[33,13],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,3],[54,0,4],[65,0],[33,2],[32,9],[65,9],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,194,0],[33,13],[65,128,128,
|
3484
|
+
wasm: (scope, {builtin,internalThrow,}) => [[32,-1],[184],[65,1],[33,2],[33,3],[32,2],[33,4],[2,124],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,4],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,3],[68,0,0,0,0,0,0,0,0],[97],[184],[11,"TYPESWITCH_end"],[252,3],[4,64],...internalThrow(scope, 'TypeError', `Constructor Uint32Array requires 'new'`),[11],[16, builtin('__Porffor_allocate')],[33,2],[33,5],[68,0,0,0,0,0,0,0,0],[33,6],[32,0],[32,1],[16, builtin('__Porffor_rawType')],[34,7],[68,0,0,0,0,0,0,84,64],[97],[32,7],[68,0,0,0,0,0,128,80,64],[97],[114],[32,7],[68,0,0,0,0,0,128,84,64],[97],[114],[32,7],[68,0,0,0,0,0,0,52,64],[97],[114],[4,64],[68,0,0,0,0,0,0,0,0],[33,8],[32,0],[252,3],[33,9],[65,0],[33,11],[32,9],[40,1,0],[33,10],[32,1],[33,4],[2,64],[32,4],[65,20],[70],[4,64,"TYPESWITCH|Set"],[3,64],[32,9],[43,0,4],[32,9],[45,0,12],[33,13],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,3],[54,0,4],[65,0],[33,2],[32,9],[65,9],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,194,0],[33,13],[65,128,128,240,6],[65,1],[54,0,0],[3,64],[65,128,128,240,6],[32,9],[47,0,4],[59,0,4],[68,0,0,0,0,0,128,107,65],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,3],[54,0,4],[65,0],[33,2],[32,9],[65,2],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,208,0],[70],[4,64,"TYPESWITCH|Array"],[3,64],[32,9],[43,0,4],[32,9],[45,0,12],[33,13],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,3],[54,0,4],[65,0],[33,2],[32,9],[65,9],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[65,210,0],[33,13],[65,128,128,240,6],[65,1],[54,0,0],[3,64],[65,128,128,240,6],[32,9],[32,11],[106],[45,0,4],[58,0,4],[68,0,0,0,0,0,128,107,65],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,3],[54,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,213,0],[70],[4,64,"TYPESWITCH|Uint8Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[106],[45,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,3],[54,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,214,0],[70],[4,64,"TYPESWITCH|Int8Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[106],[44,0,4],[183],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,3],[54,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,215,0],[70],[4,64,"TYPESWITCH|Uint8ClampedArray"],[65,0],[33,13],[3,64],[32,9],[32,11],[106],[45,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,3],[54,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,216,0],[70],[4,64,"TYPESWITCH|Uint16Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,2],[108],[106],[47,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,3],[54,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,217,0],[70],[4,64,"TYPESWITCH|Int16Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,2],[108],[106],[46,0,4],[183],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,3],[54,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,218,0],[70],[4,64,"TYPESWITCH|Uint32Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,4],[108],[106],[40,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,3],[54,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,219,0],[70],[4,64,"TYPESWITCH|Int32Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,4],[108],[106],[40,0,4],[183],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,3],[54,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,220,0],[70],[4,64,"TYPESWITCH|Float32Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,4],[108],[106],[42,0,4],[187],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,3],[54,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,221,0],[70],[4,64,"TYPESWITCH|Float64Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,8],[108],[106],[43,0,4],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,3],[54,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],...internalThrow(scope, 'TypeError', `Tried for..of on non-iterable type`),[11,"TYPESWITCH_end"],[32,8],[33,6],[5],[32,7],[68,0,0,0,0,0,0,0,0],[97],[4,64],[32,0],[33,6],[11],[11],[32,5],[252,3],[32,6],[34,16],[252,3],[54,1,0],[32,5],[65,218,0],[15]],
|
3371
3485
|
params: [124,127],
|
3372
3486
|
typedParams: true,
|
3373
3487
|
returns: [124,127],
|
@@ -3448,6 +3562,25 @@ export const BuiltinFuncs = function() {
|
|
3448
3562
|
locals: [124,124,127,124,127],
|
3449
3563
|
localNames: ["_this","_this#type","index","index#type","value","value#type","len","out","#last_type","#member_setter_val_tmp","#member_setter_ptr_tmp"],
|
3450
3564
|
};
|
3565
|
+
this.__Uint32Array_prototype_copyWithin = {
|
3566
|
+
wasm: (scope, {builtin,}) => [[32,0],[252,3],[40,1,0],[184],[33,8],[32,2],[68,0,0,0,0,0,0,0,0],[99],[4,64],[32,8],[32,2],[160],[34,2],[68,0,0,0,0,0,0,0,0],[99],[4,64],[68,0,0,0,0,0,0,0,0],[33,2],[11],[11],[32,2],[32,8],[100],[4,64],[32,8],[33,2],[11],[32,4],[68,0,0,0,0,0,0,0,0],[99],[4,64],[32,8],[32,4],[160],[34,4],[68,0,0,0,0,0,0,0,0],[99],[4,64],[68,0,0,0,0,0,0,0,0],[33,4],[11],[11],[32,4],[32,8],[100],[4,64],[32,8],[33,4],[11],[32,6],[32,7],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,8,64],[97],[4,64],[32,8],[34,6],[65,0],[33,7],[26],[5],[32,6],[68,0,0,0,0,0,0,0,0],[99],[4,64],[32,8],[32,6],[160],[34,6],[65,0],[33,7],[26],[32,6],[68,0,0,0,0,0,0,0,0],[99],[4,64],[68,0,0,0,0,0,0,0,0],[34,6],[65,0],[33,7],[26],[11],[11],[32,6],[32,8],[100],[4,64],[32,8],[34,6],[65,0],[33,7],[26],[11],[11],[3,64],[32,4],[32,6],[99],[4,64],[32,0],[252,3],[32,2],[32,2],[68,0,0,0,0,0,0,240,63],[160],[33,2],[252,3],[65,4],[108],[106],[32,0],[252,3],[32,4],[32,4],[68,0,0,0,0,0,0,240,63],[160],[33,4],[252,3],[65,4],[108],[106],[40,0,4],[184],[65,0],[33,12],[34,9],[252,3],[54,0,4],[65,0],[33,12],[12,1],[11],[11],[32,0],[65,218,0],[15]],
|
3567
|
+
params: [124,127,124,127,124,127,124,127],
|
3568
|
+
typedParams: true,
|
3569
|
+
returns: [124,127],
|
3570
|
+
typedReturns: true,
|
3571
|
+
locals: [124,124,127,127,127],
|
3572
|
+
localNames: ["_this","_this#type","target","target#type","start","start#type","end","end#type","len","#member_setter_val_tmp","#member_setter_ptr_tmp","#loadArray_offset","#last_type"],
|
3573
|
+
};
|
3574
|
+
this.__Uint32Array_prototype_concat = {
|
3575
|
+
wasm: (scope, {builtin,internalThrow,}) => [[16, builtin('__Porffor_allocate')],[33,5],[33,4],[32,0],[32,4],[16, builtin('__Porffor_clone')],[32,0],[252,3],[40,1,0],[184],[33,6],[32,2],[252,3],[33,7],[65,0],[33,9],[32,7],[40,1,0],[33,8],[65,0],[33,11],[3,64],[32,7],[32,9],[65,4],[108],[106],[40,0,4],[184],[33,10],[2,64],[2,64],[32,10],[32,11],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,80,64],[16, builtin('f64_&')],[252,3],[4,64],[32,10],[252,3],[40,1,0],[184],[33,12],[68,0,0,0,0,0,0,0,0],[33,13],[3,64],[32,13],[32,12],[99],[4,64],[2,64],[32,4],[252,3],[32,6],[32,6],[68,0,0,0,0,0,0,240,63],[160],[33,6],[252,3],[65,4],[108],[106],[32,11],[33,17],[2,124],[32,17],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,128,128,172,8],[65,1],[54,0,0],[65,128,128,172,8],[32,13],[252,3],[65,2],[108],[32,10],[252,3],[106],[47,0,4],[59,0,4],[68,0,0,0,0,0,176,112,65],[65,194,0],[33,5],[12,1],[11],[32,17],[65,208,0],[70],[4,64,"TYPESWITCH|Array"],[32,13],[252,3],[65,9],[108],[32,10],[252,3],[106],[34,16],[43,0,4],[32,16],[45,0,12],[33,5],[12,1],[11],[32,17],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[65,128,128,172,8],[65,1],[54,0,0],[65,128,128,172,8],[32,13],[252,3],[32,10],[252,3],[106],[45,0,4],[58,0,4],[68,0,0,0,0,0,176,112,65],[65,210,0],[33,5],[12,1],[11],[32,17],[65,213,0],[70],[4,64,"TYPESWITCH|Uint8Array"],[32,10],[252,3],[32,13],[252,3],[106],[45,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,214,0],[70],[4,64,"TYPESWITCH|Int8Array"],[32,10],[252,3],[32,13],[252,3],[106],[44,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,215,0],[70],[4,64,"TYPESWITCH|Uint8ClampedArray"],[32,10],[252,3],[32,13],[252,3],[106],[45,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,216,0],[70],[4,64,"TYPESWITCH|Uint16Array"],[32,10],[252,3],[32,13],[252,3],[65,2],[108],[106],[47,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,217,0],[70],[4,64,"TYPESWITCH|Int16Array"],[32,10],[252,3],[32,13],[252,3],[65,2],[108],[106],[46,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,218,0],[70],[4,64,"TYPESWITCH|Uint32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[40,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,219,0],[70],[4,64,"TYPESWITCH|Int32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[40,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,220,0],[70],[4,64,"TYPESWITCH|Float32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[42,0,4],[187],[65,0],[33,5],[12,1],[11],[32,17],[65,221,0],[70],[4,64,"TYPESWITCH|Float64Array"],[32,10],[252,3],[32,13],[252,3],[65,8],[108],[106],[43,0,4],[65,0],[33,5],[12,1],[11],...internalThrow(scope, 'TypeError', `Member expression is not supported for non-string non-array yet`),[68,0,0,0,0,0,0,0,0],[11,"TYPESWITCH_end"],[34,14],[252,3],[54,0,4],[65,0],[33,5],[11],[32,13],[68,0,0,0,0,0,0,240,63],[160],[33,13],[12,1],[11],[11],[5],[32,4],[252,3],[32,6],[32,6],[68,0,0,0,0,0,0,240,63],[160],[33,6],[252,3],[65,4],[108],[106],[32,10],[34,14],[252,3],[54,0,4],[65,0],[33,5],[11],[11],[32,9],[65,1],[106],[34,9],[32,8],[71],[13,1],[11],[11],[32,4],[252,3],[32,6],[34,18],[252,3],[54,1,0],[32,4],[65,218,0],[15]],
|
3576
|
+
params: [124,127,124,127],
|
3577
|
+
typedParams: true,
|
3578
|
+
returns: [124,127],
|
3579
|
+
typedReturns: true,
|
3580
|
+
locals: [124,127,124,127,127,127,124,127,124,124,124,127,127,127,124],
|
3581
|
+
localNames: ["_this","_this#type","vals","vals#type","out","#last_type","len","forof_base_pointer","forof_length","forof_counter","x","x#type","l","i","#member_setter_val_tmp","#member_setter_ptr_tmp","#loadArray_offset","#typeswitch_tmp","__length_setter_tmp"],
|
3582
|
+
hasRestArgument: true,
|
3583
|
+
};
|
3451
3584
|
this.__Uint32Array_prototype_reverse = {
|
3452
3585
|
wasm: (scope, {}) => [[32,0],[252,3],[40,1,0],[184],[33,2],[68,0,0,0,0,0,0,0,0],[33,3],[32,2],[68,0,0,0,0,0,0,240,63],[161],[33,4],[3,64],[32,3],[32,4],[99],[4,64],[32,0],[252,3],[32,3],[252,3],[65,4],[108],[106],[40,0,4],[184],[65,0],[33,7],[33,5],[32,0],[252,3],[32,3],[32,3],[68,0,0,0,0,0,0,240,63],[160],[33,3],[252,3],[65,4],[108],[106],[32,0],[252,3],[32,4],[252,3],[65,4],[108],[106],[40,0,4],[184],[65,0],[33,7],[34,8],[252,3],[54,0,4],[65,0],[33,7],[32,0],[252,3],[32,4],[32,4],[68,0,0,0,0,0,0,240,63],[161],[33,4],[252,3],[65,4],[108],[106],[32,5],[34,8],[252,3],[54,0,4],[65,0],[33,7],[12,1],[11],[11],[32,0],[65,218,0],[15]],
|
3453
3586
|
params: [124,127],
|
@@ -3615,7 +3748,7 @@ export const BuiltinFuncs = function() {
|
|
3615
3748
|
data: [{"bytes":[1,0,0,0,44],"offset":0}],
|
3616
3749
|
};
|
3617
3750
|
this.Int32Array = {
|
3618
|
-
wasm: (scope, {builtin,internalThrow,}) => [[32,-1],[184],[65,1],[33,2],[33,3],[32,2],[33,4],[2,124],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,4],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,3],[68,0,0,0,0,0,0,0,0],[97],[184],[11,"TYPESWITCH_end"],[252,3],[4,64],...internalThrow(scope, 'TypeError', `Constructor Int32Array requires 'new'`),[11],[16, builtin('__Porffor_allocate')],[33,2],[33,5],[68,0,0,0,0,0,0,0,0],[33,6],[32,0],[32,1],[16, builtin('__Porffor_rawType')],[34,7],[68,0,0,0,0,0,0,84,64],[97],[32,7],[68,0,0,0,0,0,128,80,64],[97],[114],[32,7],[68,0,0,0,0,0,128,84,64],[97],[114],[32,7],[68,0,0,0,0,0,0,52,64],[97],[114],[4,64],[68,0,0,0,0,0,0,0,0],[33,8],[32,0],[252,3],[33,9],[65,0],[33,11],[32,9],[40,1,0],[33,10],[32,1],[33,4],[2,64],[32,4],[65,20],[70],[4,64,"TYPESWITCH|Set"],[3,64],[32,9],[43,0,4],[32,9],[45,0,12],[33,13],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,2],[54,0,4],[65,0],[33,2],[32,9],[65,9],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,194,0],[33,13],[65,128,128,
|
3751
|
+
wasm: (scope, {builtin,internalThrow,}) => [[32,-1],[184],[65,1],[33,2],[33,3],[32,2],[33,4],[2,124],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,4],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,3],[68,0,0,0,0,0,0,0,0],[97],[184],[11,"TYPESWITCH_end"],[252,3],[4,64],...internalThrow(scope, 'TypeError', `Constructor Int32Array requires 'new'`),[11],[16, builtin('__Porffor_allocate')],[33,2],[33,5],[68,0,0,0,0,0,0,0,0],[33,6],[32,0],[32,1],[16, builtin('__Porffor_rawType')],[34,7],[68,0,0,0,0,0,0,84,64],[97],[32,7],[68,0,0,0,0,0,128,80,64],[97],[114],[32,7],[68,0,0,0,0,0,128,84,64],[97],[114],[32,7],[68,0,0,0,0,0,0,52,64],[97],[114],[4,64],[68,0,0,0,0,0,0,0,0],[33,8],[32,0],[252,3],[33,9],[65,0],[33,11],[32,9],[40,1,0],[33,10],[32,1],[33,4],[2,64],[32,4],[65,20],[70],[4,64,"TYPESWITCH|Set"],[3,64],[32,9],[43,0,4],[32,9],[45,0,12],[33,13],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,2],[54,0,4],[65,0],[33,2],[32,9],[65,9],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,194,0],[33,13],[65,128,128,200,8],[65,1],[54,0,0],[3,64],[65,128,128,200,8],[32,9],[47,0,4],[59,0,4],[68,0,0,0,0,0,32,113,65],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,2],[54,0,4],[65,0],[33,2],[32,9],[65,2],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,208,0],[70],[4,64,"TYPESWITCH|Array"],[3,64],[32,9],[43,0,4],[32,9],[45,0,12],[33,13],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,2],[54,0,4],[65,0],[33,2],[32,9],[65,9],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[65,210,0],[33,13],[65,128,128,200,8],[65,1],[54,0,0],[3,64],[65,128,128,200,8],[32,9],[32,11],[106],[45,0,4],[58,0,4],[68,0,0,0,0,0,32,113,65],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,2],[54,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,213,0],[70],[4,64,"TYPESWITCH|Uint8Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[106],[45,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,2],[54,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,214,0],[70],[4,64,"TYPESWITCH|Int8Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[106],[44,0,4],[183],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,2],[54,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,215,0],[70],[4,64,"TYPESWITCH|Uint8ClampedArray"],[65,0],[33,13],[3,64],[32,9],[32,11],[106],[45,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,2],[54,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,216,0],[70],[4,64,"TYPESWITCH|Uint16Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,2],[108],[106],[47,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,2],[54,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,217,0],[70],[4,64,"TYPESWITCH|Int16Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,2],[108],[106],[46,0,4],[183],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,2],[54,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,218,0],[70],[4,64,"TYPESWITCH|Uint32Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,4],[108],[106],[40,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,2],[54,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,219,0],[70],[4,64,"TYPESWITCH|Int32Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,4],[108],[106],[40,0,4],[183],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,2],[54,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,220,0],[70],[4,64,"TYPESWITCH|Float32Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,4],[108],[106],[42,0,4],[187],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,2],[54,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,221,0],[70],[4,64,"TYPESWITCH|Float64Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,8],[108],[106],[43,0,4],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[252,2],[54,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],...internalThrow(scope, 'TypeError', `Tried for..of on non-iterable type`),[11,"TYPESWITCH_end"],[32,8],[33,6],[5],[32,7],[68,0,0,0,0,0,0,0,0],[97],[4,64],[32,0],[33,6],[11],[11],[32,5],[252,3],[32,6],[34,16],[252,3],[54,1,0],[32,5],[65,219,0],[15]],
|
3619
3752
|
params: [124,127],
|
3620
3753
|
typedParams: true,
|
3621
3754
|
returns: [124,127],
|
@@ -3696,6 +3829,25 @@ export const BuiltinFuncs = function() {
|
|
3696
3829
|
locals: [124,124,127,124,127],
|
3697
3830
|
localNames: ["_this","_this#type","index","index#type","value","value#type","len","out","#last_type","#member_setter_val_tmp","#member_setter_ptr_tmp"],
|
3698
3831
|
};
|
3832
|
+
this.__Int32Array_prototype_copyWithin = {
|
3833
|
+
wasm: (scope, {builtin,}) => [[32,0],[252,3],[40,1,0],[184],[33,8],[32,2],[68,0,0,0,0,0,0,0,0],[99],[4,64],[32,8],[32,2],[160],[34,2],[68,0,0,0,0,0,0,0,0],[99],[4,64],[68,0,0,0,0,0,0,0,0],[33,2],[11],[11],[32,2],[32,8],[100],[4,64],[32,8],[33,2],[11],[32,4],[68,0,0,0,0,0,0,0,0],[99],[4,64],[32,8],[32,4],[160],[34,4],[68,0,0,0,0,0,0,0,0],[99],[4,64],[68,0,0,0,0,0,0,0,0],[33,4],[11],[11],[32,4],[32,8],[100],[4,64],[32,8],[33,4],[11],[32,6],[32,7],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,8,64],[97],[4,64],[32,8],[34,6],[65,0],[33,7],[26],[5],[32,6],[68,0,0,0,0,0,0,0,0],[99],[4,64],[32,8],[32,6],[160],[34,6],[65,0],[33,7],[26],[32,6],[68,0,0,0,0,0,0,0,0],[99],[4,64],[68,0,0,0,0,0,0,0,0],[34,6],[65,0],[33,7],[26],[11],[11],[32,6],[32,8],[100],[4,64],[32,8],[34,6],[65,0],[33,7],[26],[11],[11],[3,64],[32,4],[32,6],[99],[4,64],[32,0],[252,3],[32,2],[32,2],[68,0,0,0,0,0,0,240,63],[160],[33,2],[252,3],[65,4],[108],[106],[32,0],[252,3],[32,4],[32,4],[68,0,0,0,0,0,0,240,63],[160],[33,4],[252,3],[65,4],[108],[106],[40,0,4],[183],[65,0],[33,12],[34,9],[252,2],[54,0,4],[65,0],[33,12],[12,1],[11],[11],[32,0],[65,219,0],[15]],
|
3834
|
+
params: [124,127,124,127,124,127,124,127],
|
3835
|
+
typedParams: true,
|
3836
|
+
returns: [124,127],
|
3837
|
+
typedReturns: true,
|
3838
|
+
locals: [124,124,127,127,127],
|
3839
|
+
localNames: ["_this","_this#type","target","target#type","start","start#type","end","end#type","len","#member_setter_val_tmp","#member_setter_ptr_tmp","#loadArray_offset","#last_type"],
|
3840
|
+
};
|
3841
|
+
this.__Int32Array_prototype_concat = {
|
3842
|
+
wasm: (scope, {builtin,internalThrow,}) => [[16, builtin('__Porffor_allocate')],[33,5],[33,4],[32,0],[32,4],[16, builtin('__Porffor_clone')],[32,0],[252,3],[40,1,0],[184],[33,6],[32,2],[252,3],[33,7],[65,0],[33,9],[32,7],[40,1,0],[33,8],[65,0],[33,11],[3,64],[32,7],[32,9],[65,4],[108],[106],[40,0,4],[183],[33,10],[2,64],[2,64],[32,10],[32,11],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,80,64],[16, builtin('f64_&')],[252,3],[4,64],[32,10],[252,3],[40,1,0],[184],[33,12],[68,0,0,0,0,0,0,0,0],[33,13],[3,64],[32,13],[32,12],[99],[4,64],[2,64],[32,4],[252,3],[32,6],[32,6],[68,0,0,0,0,0,0,240,63],[160],[33,6],[252,3],[65,4],[108],[106],[32,11],[33,17],[2,124],[32,17],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,128,128,136,10],[65,1],[54,0,0],[65,128,128,136,10],[32,13],[252,3],[65,2],[108],[32,10],[252,3],[106],[47,0,4],[59,0,4],[68,0,0,0,0,0,32,116,65],[65,194,0],[33,5],[12,1],[11],[32,17],[65,208,0],[70],[4,64,"TYPESWITCH|Array"],[32,13],[252,3],[65,9],[108],[32,10],[252,3],[106],[34,16],[43,0,4],[32,16],[45,0,12],[33,5],[12,1],[11],[32,17],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[65,128,128,136,10],[65,1],[54,0,0],[65,128,128,136,10],[32,13],[252,3],[32,10],[252,3],[106],[45,0,4],[58,0,4],[68,0,0,0,0,0,32,116,65],[65,210,0],[33,5],[12,1],[11],[32,17],[65,213,0],[70],[4,64,"TYPESWITCH|Uint8Array"],[32,10],[252,3],[32,13],[252,3],[106],[45,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,214,0],[70],[4,64,"TYPESWITCH|Int8Array"],[32,10],[252,3],[32,13],[252,3],[106],[44,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,215,0],[70],[4,64,"TYPESWITCH|Uint8ClampedArray"],[32,10],[252,3],[32,13],[252,3],[106],[45,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,216,0],[70],[4,64,"TYPESWITCH|Uint16Array"],[32,10],[252,3],[32,13],[252,3],[65,2],[108],[106],[47,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,217,0],[70],[4,64,"TYPESWITCH|Int16Array"],[32,10],[252,3],[32,13],[252,3],[65,2],[108],[106],[46,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,218,0],[70],[4,64,"TYPESWITCH|Uint32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[40,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,219,0],[70],[4,64,"TYPESWITCH|Int32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[40,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,220,0],[70],[4,64,"TYPESWITCH|Float32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[42,0,4],[187],[65,0],[33,5],[12,1],[11],[32,17],[65,221,0],[70],[4,64,"TYPESWITCH|Float64Array"],[32,10],[252,3],[32,13],[252,3],[65,8],[108],[106],[43,0,4],[65,0],[33,5],[12,1],[11],...internalThrow(scope, 'TypeError', `Member expression is not supported for non-string non-array yet`),[68,0,0,0,0,0,0,0,0],[11,"TYPESWITCH_end"],[34,14],[252,2],[54,0,4],[65,0],[33,5],[11],[32,13],[68,0,0,0,0,0,0,240,63],[160],[33,13],[12,1],[11],[11],[5],[32,4],[252,3],[32,6],[32,6],[68,0,0,0,0,0,0,240,63],[160],[33,6],[252,3],[65,4],[108],[106],[32,10],[34,14],[252,2],[54,0,4],[65,0],[33,5],[11],[11],[32,9],[65,1],[106],[34,9],[32,8],[71],[13,1],[11],[11],[32,4],[252,3],[32,6],[34,18],[252,3],[54,1,0],[32,4],[65,219,0],[15]],
|
3843
|
+
params: [124,127,124,127],
|
3844
|
+
typedParams: true,
|
3845
|
+
returns: [124,127],
|
3846
|
+
typedReturns: true,
|
3847
|
+
locals: [124,127,124,127,127,127,124,127,124,124,124,127,127,127,124],
|
3848
|
+
localNames: ["_this","_this#type","vals","vals#type","out","#last_type","len","forof_base_pointer","forof_length","forof_counter","x","x#type","l","i","#member_setter_val_tmp","#member_setter_ptr_tmp","#loadArray_offset","#typeswitch_tmp","__length_setter_tmp"],
|
3849
|
+
hasRestArgument: true,
|
3850
|
+
};
|
3699
3851
|
this.__Int32Array_prototype_reverse = {
|
3700
3852
|
wasm: (scope, {}) => [[32,0],[252,3],[40,1,0],[184],[33,2],[68,0,0,0,0,0,0,0,0],[33,3],[32,2],[68,0,0,0,0,0,0,240,63],[161],[33,4],[3,64],[32,3],[32,4],[99],[4,64],[32,0],[252,3],[32,3],[252,3],[65,4],[108],[106],[40,0,4],[183],[65,0],[33,7],[33,5],[32,0],[252,3],[32,3],[32,3],[68,0,0,0,0,0,0,240,63],[160],[33,3],[252,3],[65,4],[108],[106],[32,0],[252,3],[32,4],[252,3],[65,4],[108],[106],[40,0,4],[183],[65,0],[33,7],[34,8],[252,2],[54,0,4],[65,0],[33,7],[32,0],[252,3],[32,4],[32,4],[68,0,0,0,0,0,0,240,63],[161],[33,4],[252,3],[65,4],[108],[106],[32,5],[34,8],[252,2],[54,0,4],[65,0],[33,7],[12,1],[11],[11],[32,0],[65,219,0],[15]],
|
3701
3853
|
params: [124,127],
|
@@ -3863,7 +4015,7 @@ export const BuiltinFuncs = function() {
|
|
3863
4015
|
data: [{"bytes":[1,0,0,0,44],"offset":0}],
|
3864
4016
|
};
|
3865
4017
|
this.Float32Array = {
|
3866
|
-
wasm: (scope, {builtin,internalThrow,}) => [[32,-1],[184],[65,1],[33,2],[33,3],[32,2],[33,4],[2,124],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,4],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,3],[68,0,0,0,0,0,0,0,0],[97],[184],[11,"TYPESWITCH_end"],[252,3],[4,64],...internalThrow(scope, 'TypeError', `Constructor Float32Array requires 'new'`),[11],[16, builtin('__Porffor_allocate')],[33,2],[33,5],[68,0,0,0,0,0,0,0,0],[33,6],[32,0],[32,1],[16, builtin('__Porffor_rawType')],[34,7],[68,0,0,0,0,0,0,84,64],[97],[32,7],[68,0,0,0,0,0,128,80,64],[97],[114],[32,7],[68,0,0,0,0,0,128,84,64],[97],[114],[32,7],[68,0,0,0,0,0,0,52,64],[97],[114],[4,64],[68,0,0,0,0,0,0,0,0],[33,8],[32,0],[252,3],[33,9],[65,0],[33,11],[32,9],[40,1,0],[33,10],[32,1],[33,4],[2,64],[32,4],[65,20],[70],[4,64,"TYPESWITCH|Set"],[3,64],[32,9],[43,0,4],[32,9],[45,0,12],[33,13],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[182],[56,0,4],[65,0],[33,2],[32,9],[65,9],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,194,0],[33,13],[65,128,128,
|
4018
|
+
wasm: (scope, {builtin,internalThrow,}) => [[32,-1],[184],[65,1],[33,2],[33,3],[32,2],[33,4],[2,124],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,4],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,3],[68,0,0,0,0,0,0,0,0],[97],[184],[11,"TYPESWITCH_end"],[252,3],[4,64],...internalThrow(scope, 'TypeError', `Constructor Float32Array requires 'new'`),[11],[16, builtin('__Porffor_allocate')],[33,2],[33,5],[68,0,0,0,0,0,0,0,0],[33,6],[32,0],[32,1],[16, builtin('__Porffor_rawType')],[34,7],[68,0,0,0,0,0,0,84,64],[97],[32,7],[68,0,0,0,0,0,128,80,64],[97],[114],[32,7],[68,0,0,0,0,0,128,84,64],[97],[114],[32,7],[68,0,0,0,0,0,0,52,64],[97],[114],[4,64],[68,0,0,0,0,0,0,0,0],[33,8],[32,0],[252,3],[33,9],[65,0],[33,11],[32,9],[40,1,0],[33,10],[32,1],[33,4],[2,64],[32,4],[65,20],[70],[4,64,"TYPESWITCH|Set"],[3,64],[32,9],[43,0,4],[32,9],[45,0,12],[33,13],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[182],[56,0,4],[65,0],[33,2],[32,9],[65,9],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,194,0],[33,13],[65,128,128,160,10],[65,1],[54,0,0],[3,64],[65,128,128,160,10],[32,9],[47,0,4],[59,0,4],[68,0,0,0,0,0,128,116,65],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[182],[56,0,4],[65,0],[33,2],[32,9],[65,2],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,208,0],[70],[4,64,"TYPESWITCH|Array"],[3,64],[32,9],[43,0,4],[32,9],[45,0,12],[33,13],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[182],[56,0,4],[65,0],[33,2],[32,9],[65,9],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[65,210,0],[33,13],[65,128,128,160,10],[65,1],[54,0,0],[3,64],[65,128,128,160,10],[32,9],[32,11],[106],[45,0,4],[58,0,4],[68,0,0,0,0,0,128,116,65],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[182],[56,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,213,0],[70],[4,64,"TYPESWITCH|Uint8Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[106],[45,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[182],[56,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,214,0],[70],[4,64,"TYPESWITCH|Int8Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[106],[44,0,4],[183],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[182],[56,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,215,0],[70],[4,64,"TYPESWITCH|Uint8ClampedArray"],[65,0],[33,13],[3,64],[32,9],[32,11],[106],[45,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[182],[56,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,216,0],[70],[4,64,"TYPESWITCH|Uint16Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,2],[108],[106],[47,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[182],[56,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,217,0],[70],[4,64,"TYPESWITCH|Int16Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,2],[108],[106],[46,0,4],[183],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[182],[56,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,218,0],[70],[4,64,"TYPESWITCH|Uint32Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,4],[108],[106],[40,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[182],[56,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,219,0],[70],[4,64,"TYPESWITCH|Int32Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,4],[108],[106],[40,0,4],[183],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[182],[56,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,220,0],[70],[4,64,"TYPESWITCH|Float32Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,4],[108],[106],[42,0,4],[187],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[182],[56,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,221,0],[70],[4,64,"TYPESWITCH|Float64Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,8],[108],[106],[43,0,4],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,4],[108],[106],[32,12],[34,14],[182],[56,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],...internalThrow(scope, 'TypeError', `Tried for..of on non-iterable type`),[11,"TYPESWITCH_end"],[32,8],[33,6],[5],[32,7],[68,0,0,0,0,0,0,0,0],[97],[4,64],[32,0],[33,6],[11],[11],[32,5],[252,3],[32,6],[34,16],[252,3],[54,1,0],[32,5],[65,220,0],[15]],
|
3867
4019
|
params: [124,127],
|
3868
4020
|
typedParams: true,
|
3869
4021
|
returns: [124,127],
|
@@ -3944,6 +4096,25 @@ export const BuiltinFuncs = function() {
|
|
3944
4096
|
locals: [124,124,127,124,127],
|
3945
4097
|
localNames: ["_this","_this#type","index","index#type","value","value#type","len","out","#last_type","#member_setter_val_tmp","#member_setter_ptr_tmp"],
|
3946
4098
|
};
|
4099
|
+
this.__Float32Array_prototype_copyWithin = {
|
4100
|
+
wasm: (scope, {builtin,}) => [[32,0],[252,3],[40,1,0],[184],[33,8],[32,2],[68,0,0,0,0,0,0,0,0],[99],[4,64],[32,8],[32,2],[160],[34,2],[68,0,0,0,0,0,0,0,0],[99],[4,64],[68,0,0,0,0,0,0,0,0],[33,2],[11],[11],[32,2],[32,8],[100],[4,64],[32,8],[33,2],[11],[32,4],[68,0,0,0,0,0,0,0,0],[99],[4,64],[32,8],[32,4],[160],[34,4],[68,0,0,0,0,0,0,0,0],[99],[4,64],[68,0,0,0,0,0,0,0,0],[33,4],[11],[11],[32,4],[32,8],[100],[4,64],[32,8],[33,4],[11],[32,6],[32,7],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,8,64],[97],[4,64],[32,8],[34,6],[65,0],[33,7],[26],[5],[32,6],[68,0,0,0,0,0,0,0,0],[99],[4,64],[32,8],[32,6],[160],[34,6],[65,0],[33,7],[26],[32,6],[68,0,0,0,0,0,0,0,0],[99],[4,64],[68,0,0,0,0,0,0,0,0],[34,6],[65,0],[33,7],[26],[11],[11],[32,6],[32,8],[100],[4,64],[32,8],[34,6],[65,0],[33,7],[26],[11],[11],[3,64],[32,4],[32,6],[99],[4,64],[32,0],[252,3],[32,2],[32,2],[68,0,0,0,0,0,0,240,63],[160],[33,2],[252,3],[65,4],[108],[106],[32,0],[252,3],[32,4],[32,4],[68,0,0,0,0,0,0,240,63],[160],[33,4],[252,3],[65,4],[108],[106],[42,0,4],[187],[65,0],[33,12],[34,9],[182],[56,0,4],[65,0],[33,12],[12,1],[11],[11],[32,0],[65,220,0],[15]],
|
4101
|
+
params: [124,127,124,127,124,127,124,127],
|
4102
|
+
typedParams: true,
|
4103
|
+
returns: [124,127],
|
4104
|
+
typedReturns: true,
|
4105
|
+
locals: [124,124,127,127,127],
|
4106
|
+
localNames: ["_this","_this#type","target","target#type","start","start#type","end","end#type","len","#member_setter_val_tmp","#member_setter_ptr_tmp","#loadArray_offset","#last_type"],
|
4107
|
+
};
|
4108
|
+
this.__Float32Array_prototype_concat = {
|
4109
|
+
wasm: (scope, {builtin,internalThrow,}) => [[16, builtin('__Porffor_allocate')],[33,5],[33,4],[32,0],[32,4],[16, builtin('__Porffor_clone')],[32,0],[252,3],[40,1,0],[184],[33,6],[32,2],[252,3],[33,7],[65,0],[33,9],[32,7],[40,1,0],[33,8],[65,0],[33,11],[3,64],[32,7],[32,9],[65,4],[108],[106],[42,0,4],[187],[33,10],[2,64],[2,64],[32,10],[32,11],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,80,64],[16, builtin('f64_&')],[252,3],[4,64],[32,10],[252,3],[40,1,0],[184],[33,12],[68,0,0,0,0,0,0,0,0],[33,13],[3,64],[32,13],[32,12],[99],[4,64],[2,64],[32,4],[252,3],[32,6],[32,6],[68,0,0,0,0,0,0,240,63],[160],[33,6],[252,3],[65,4],[108],[106],[32,11],[33,17],[2,124],[32,17],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,128,128,228,11],[65,1],[54,0,0],[65,128,128,228,11],[32,13],[252,3],[65,2],[108],[32,10],[252,3],[106],[47,0,4],[59,0,4],[68,0,0,0,0,0,144,119,65],[65,194,0],[33,5],[12,1],[11],[32,17],[65,208,0],[70],[4,64,"TYPESWITCH|Array"],[32,13],[252,3],[65,9],[108],[32,10],[252,3],[106],[34,16],[43,0,4],[32,16],[45,0,12],[33,5],[12,1],[11],[32,17],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[65,128,128,228,11],[65,1],[54,0,0],[65,128,128,228,11],[32,13],[252,3],[32,10],[252,3],[106],[45,0,4],[58,0,4],[68,0,0,0,0,0,144,119,65],[65,210,0],[33,5],[12,1],[11],[32,17],[65,213,0],[70],[4,64,"TYPESWITCH|Uint8Array"],[32,10],[252,3],[32,13],[252,3],[106],[45,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,214,0],[70],[4,64,"TYPESWITCH|Int8Array"],[32,10],[252,3],[32,13],[252,3],[106],[44,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,215,0],[70],[4,64,"TYPESWITCH|Uint8ClampedArray"],[32,10],[252,3],[32,13],[252,3],[106],[45,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,216,0],[70],[4,64,"TYPESWITCH|Uint16Array"],[32,10],[252,3],[32,13],[252,3],[65,2],[108],[106],[47,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,217,0],[70],[4,64,"TYPESWITCH|Int16Array"],[32,10],[252,3],[32,13],[252,3],[65,2],[108],[106],[46,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,218,0],[70],[4,64,"TYPESWITCH|Uint32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[40,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,219,0],[70],[4,64,"TYPESWITCH|Int32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[40,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,220,0],[70],[4,64,"TYPESWITCH|Float32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[42,0,4],[187],[65,0],[33,5],[12,1],[11],[32,17],[65,221,0],[70],[4,64,"TYPESWITCH|Float64Array"],[32,10],[252,3],[32,13],[252,3],[65,8],[108],[106],[43,0,4],[65,0],[33,5],[12,1],[11],...internalThrow(scope, 'TypeError', `Member expression is not supported for non-string non-array yet`),[68,0,0,0,0,0,0,0,0],[11,"TYPESWITCH_end"],[34,14],[182],[56,0,4],[65,0],[33,5],[11],[32,13],[68,0,0,0,0,0,0,240,63],[160],[33,13],[12,1],[11],[11],[5],[32,4],[252,3],[32,6],[32,6],[68,0,0,0,0,0,0,240,63],[160],[33,6],[252,3],[65,4],[108],[106],[32,10],[34,14],[182],[56,0,4],[65,0],[33,5],[11],[11],[32,9],[65,1],[106],[34,9],[32,8],[71],[13,1],[11],[11],[32,4],[252,3],[32,6],[34,18],[252,3],[54,1,0],[32,4],[65,220,0],[15]],
|
4110
|
+
params: [124,127,124,127],
|
4111
|
+
typedParams: true,
|
4112
|
+
returns: [124,127],
|
4113
|
+
typedReturns: true,
|
4114
|
+
locals: [124,127,124,127,127,127,124,127,124,124,124,127,127,127,124],
|
4115
|
+
localNames: ["_this","_this#type","vals","vals#type","out","#last_type","len","forof_base_pointer","forof_length","forof_counter","x","x#type","l","i","#member_setter_val_tmp","#member_setter_ptr_tmp","#loadArray_offset","#typeswitch_tmp","__length_setter_tmp"],
|
4116
|
+
hasRestArgument: true,
|
4117
|
+
};
|
3947
4118
|
this.__Float32Array_prototype_reverse = {
|
3948
4119
|
wasm: (scope, {}) => [[32,0],[252,3],[40,1,0],[184],[33,2],[68,0,0,0,0,0,0,0,0],[33,3],[32,2],[68,0,0,0,0,0,0,240,63],[161],[33,4],[3,64],[32,3],[32,4],[99],[4,64],[32,0],[252,3],[32,3],[252,3],[65,4],[108],[106],[42,0,4],[187],[65,0],[33,7],[33,5],[32,0],[252,3],[32,3],[32,3],[68,0,0,0,0,0,0,240,63],[160],[33,3],[252,3],[65,4],[108],[106],[32,0],[252,3],[32,4],[252,3],[65,4],[108],[106],[42,0,4],[187],[65,0],[33,7],[34,8],[182],[56,0,4],[65,0],[33,7],[32,0],[252,3],[32,4],[32,4],[68,0,0,0,0,0,0,240,63],[161],[33,4],[252,3],[65,4],[108],[106],[32,5],[34,8],[182],[56,0,4],[65,0],[33,7],[12,1],[11],[11],[32,0],[65,220,0],[15]],
|
3949
4120
|
params: [124,127],
|
@@ -4111,7 +4282,7 @@ export const BuiltinFuncs = function() {
|
|
4111
4282
|
data: [{"bytes":[1,0,0,0,44],"offset":0}],
|
4112
4283
|
};
|
4113
4284
|
this.Float64Array = {
|
4114
|
-
wasm: (scope, {builtin,internalThrow,}) => [[32,-1],[184],[65,1],[33,2],[33,3],[32,2],[33,4],[2,124],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,4],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,3],[68,0,0,0,0,0,0,0,0],[97],[184],[11,"TYPESWITCH_end"],[252,3],[4,64],...internalThrow(scope, 'TypeError', `Constructor Float64Array requires 'new'`),[11],[16, builtin('__Porffor_allocate')],[33,2],[33,5],[68,0,0,0,0,0,0,0,0],[33,6],[32,0],[32,1],[16, builtin('__Porffor_rawType')],[34,7],[68,0,0,0,0,0,0,84,64],[97],[32,7],[68,0,0,0,0,0,128,80,64],[97],[114],[32,7],[68,0,0,0,0,0,128,84,64],[97],[114],[32,7],[68,0,0,0,0,0,0,52,64],[97],[114],[4,64],[68,0,0,0,0,0,0,0,0],[33,8],[32,0],[252,3],[33,9],[65,0],[33,11],[32,9],[40,1,0],[33,10],[32,1],[33,4],[2,64],[32,4],[65,20],[70],[4,64,"TYPESWITCH|Set"],[3,64],[32,9],[43,0,4],[32,9],[45,0,12],[33,13],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,8],[108],[106],[32,12],[34,14],[57,0,4],[65,0],[33,2],[32,9],[65,9],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,194,0],[33,13],[65,128,128,
|
4285
|
+
wasm: (scope, {builtin,internalThrow,}) => [[32,-1],[184],[65,1],[33,2],[33,3],[32,2],[33,4],[2,124],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,4],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[32,3],[252,3],[40,1,0],[69],[184],[12,1],[11],[32,3],[68,0,0,0,0,0,0,0,0],[97],[184],[11,"TYPESWITCH_end"],[252,3],[4,64],...internalThrow(scope, 'TypeError', `Constructor Float64Array requires 'new'`),[11],[16, builtin('__Porffor_allocate')],[33,2],[33,5],[68,0,0,0,0,0,0,0,0],[33,6],[32,0],[32,1],[16, builtin('__Porffor_rawType')],[34,7],[68,0,0,0,0,0,0,84,64],[97],[32,7],[68,0,0,0,0,0,128,80,64],[97],[114],[32,7],[68,0,0,0,0,0,128,84,64],[97],[114],[32,7],[68,0,0,0,0,0,0,52,64],[97],[114],[4,64],[68,0,0,0,0,0,0,0,0],[33,8],[32,0],[252,3],[33,9],[65,0],[33,11],[32,9],[40,1,0],[33,10],[32,1],[33,4],[2,64],[32,4],[65,20],[70],[4,64,"TYPESWITCH|Set"],[3,64],[32,9],[43,0,4],[32,9],[45,0,12],[33,13],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,8],[108],[106],[32,12],[34,14],[57,0,4],[65,0],[33,2],[32,9],[65,9],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,194,0],[33,13],[65,128,128,248,11],[65,1],[54,0,0],[3,64],[65,128,128,248,11],[32,9],[47,0,4],[59,0,4],[68,0,0,0,0,0,224,119,65],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,8],[108],[106],[32,12],[34,14],[57,0,4],[65,0],[33,2],[32,9],[65,2],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,208,0],[70],[4,64,"TYPESWITCH|Array"],[3,64],[32,9],[43,0,4],[32,9],[45,0,12],[33,13],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,8],[108],[106],[32,12],[34,14],[57,0,4],[65,0],[33,2],[32,9],[65,9],[106],[33,9],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[65,210,0],[33,13],[65,128,128,248,11],[65,1],[54,0,0],[3,64],[65,128,128,248,11],[32,9],[32,11],[106],[45,0,4],[58,0,4],[68,0,0,0,0,0,224,119,65],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,8],[108],[106],[32,12],[34,14],[57,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,213,0],[70],[4,64,"TYPESWITCH|Uint8Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[106],[45,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,8],[108],[106],[32,12],[34,14],[57,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,214,0],[70],[4,64,"TYPESWITCH|Int8Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[106],[44,0,4],[183],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,8],[108],[106],[32,12],[34,14],[57,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,215,0],[70],[4,64,"TYPESWITCH|Uint8ClampedArray"],[65,0],[33,13],[3,64],[32,9],[32,11],[106],[45,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,8],[108],[106],[32,12],[34,14],[57,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,216,0],[70],[4,64,"TYPESWITCH|Uint16Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,2],[108],[106],[47,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,8],[108],[106],[32,12],[34,14],[57,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,217,0],[70],[4,64,"TYPESWITCH|Int16Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,2],[108],[106],[46,0,4],[183],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,8],[108],[106],[32,12],[34,14],[57,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,218,0],[70],[4,64,"TYPESWITCH|Uint32Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,4],[108],[106],[40,0,4],[184],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,8],[108],[106],[32,12],[34,14],[57,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,219,0],[70],[4,64,"TYPESWITCH|Int32Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,4],[108],[106],[40,0,4],[183],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,8],[108],[106],[32,12],[34,14],[57,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,220,0],[70],[4,64,"TYPESWITCH|Float32Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,4],[108],[106],[42,0,4],[187],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,8],[108],[106],[32,12],[34,14],[57,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],[32,4],[65,221,0],[70],[4,64,"TYPESWITCH|Float64Array"],[65,0],[33,13],[3,64],[32,9],[32,11],[65,8],[108],[106],[43,0,4],[33,12],[2,64],[32,5],[252,3],[32,8],[32,8],[68,0,0,0,0,0,0,240,63],[160],[33,8],[252,3],[65,8],[108],[106],[32,12],[34,14],[57,0,4],[65,0],[33,2],[32,11],[65,1],[106],[34,11],[32,10],[71],[13,1],[11],[11],[12,1],[11],...internalThrow(scope, 'TypeError', `Tried for..of on non-iterable type`),[11,"TYPESWITCH_end"],[32,8],[33,6],[5],[32,7],[68,0,0,0,0,0,0,0,0],[97],[4,64],[32,0],[33,6],[11],[11],[32,5],[252,3],[32,6],[34,16],[252,3],[54,1,0],[32,5],[65,221,0],[15]],
|
4115
4286
|
params: [124,127],
|
4116
4287
|
typedParams: true,
|
4117
4288
|
returns: [124,127],
|
@@ -4192,6 +4363,25 @@ export const BuiltinFuncs = function() {
|
|
4192
4363
|
locals: [124,124,127,124,127],
|
4193
4364
|
localNames: ["_this","_this#type","index","index#type","value","value#type","len","out","#last_type","#member_setter_val_tmp","#member_setter_ptr_tmp"],
|
4194
4365
|
};
|
4366
|
+
this.__Float64Array_prototype_copyWithin = {
|
4367
|
+
wasm: (scope, {builtin,}) => [[32,0],[252,3],[40,1,0],[184],[33,8],[32,2],[68,0,0,0,0,0,0,0,0],[99],[4,64],[32,8],[32,2],[160],[34,2],[68,0,0,0,0,0,0,0,0],[99],[4,64],[68,0,0,0,0,0,0,0,0],[33,2],[11],[11],[32,2],[32,8],[100],[4,64],[32,8],[33,2],[11],[32,4],[68,0,0,0,0,0,0,0,0],[99],[4,64],[32,8],[32,4],[160],[34,4],[68,0,0,0,0,0,0,0,0],[99],[4,64],[68,0,0,0,0,0,0,0,0],[33,4],[11],[11],[32,4],[32,8],[100],[4,64],[32,8],[33,4],[11],[32,6],[32,7],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,8,64],[97],[4,64],[32,8],[34,6],[65,0],[33,7],[26],[5],[32,6],[68,0,0,0,0,0,0,0,0],[99],[4,64],[32,8],[32,6],[160],[34,6],[65,0],[33,7],[26],[32,6],[68,0,0,0,0,0,0,0,0],[99],[4,64],[68,0,0,0,0,0,0,0,0],[34,6],[65,0],[33,7],[26],[11],[11],[32,6],[32,8],[100],[4,64],[32,8],[34,6],[65,0],[33,7],[26],[11],[11],[3,64],[32,4],[32,6],[99],[4,64],[32,0],[252,3],[32,2],[32,2],[68,0,0,0,0,0,0,240,63],[160],[33,2],[252,3],[65,8],[108],[106],[32,0],[252,3],[32,4],[32,4],[68,0,0,0,0,0,0,240,63],[160],[33,4],[252,3],[65,8],[108],[106],[43,0,4],[65,0],[33,12],[34,9],[57,0,4],[65,0],[33,12],[12,1],[11],[11],[32,0],[65,221,0],[15]],
|
4368
|
+
params: [124,127,124,127,124,127,124,127],
|
4369
|
+
typedParams: true,
|
4370
|
+
returns: [124,127],
|
4371
|
+
typedReturns: true,
|
4372
|
+
locals: [124,124,127,127,127],
|
4373
|
+
localNames: ["_this","_this#type","target","target#type","start","start#type","end","end#type","len","#member_setter_val_tmp","#member_setter_ptr_tmp","#loadArray_offset","#last_type"],
|
4374
|
+
};
|
4375
|
+
this.__Float64Array_prototype_concat = {
|
4376
|
+
wasm: (scope, {builtin,internalThrow,}) => [[16, builtin('__Porffor_allocate')],[33,5],[33,4],[32,0],[32,4],[16, builtin('__Porffor_clone')],[32,0],[252,3],[40,1,0],[184],[33,6],[32,2],[252,3],[33,7],[65,0],[33,9],[32,7],[40,1,0],[33,8],[65,0],[33,11],[3,64],[32,7],[32,9],[65,8],[108],[106],[43,0,4],[33,10],[2,64],[2,64],[32,10],[32,11],[16, builtin('__Porffor_rawType')],[68,0,0,0,0,0,0,80,64],[16, builtin('f64_&')],[252,3],[4,64],[32,10],[252,3],[40,1,0],[184],[33,12],[68,0,0,0,0,0,0,0,0],[33,13],[3,64],[32,13],[32,12],[99],[4,64],[2,64],[32,4],[252,3],[32,6],[32,6],[68,0,0,0,0,0,0,240,63],[160],[33,6],[252,3],[65,8],[108],[106],[32,11],[33,17],[2,124],[32,17],[65,194,0],[70],[4,64,"TYPESWITCH|undefined"],[65,128,128,192,13],[65,1],[54,0,0],[65,128,128,192,13],[32,13],[252,3],[65,2],[108],[32,10],[252,3],[106],[47,0,4],[59,0,4],[68,0,0,0,0,0,0,123,65],[65,194,0],[33,5],[12,1],[11],[32,17],[65,208,0],[70],[4,64,"TYPESWITCH|Array"],[32,13],[252,3],[65,9],[108],[32,10],[252,3],[106],[34,16],[43,0,4],[32,16],[45,0,12],[33,5],[12,1],[11],[32,17],[65,210,0],[70],[4,64,"TYPESWITCH|ByteString"],[65,128,128,192,13],[65,1],[54,0,0],[65,128,128,192,13],[32,13],[252,3],[32,10],[252,3],[106],[45,0,4],[58,0,4],[68,0,0,0,0,0,0,123,65],[65,210,0],[33,5],[12,1],[11],[32,17],[65,213,0],[70],[4,64,"TYPESWITCH|Uint8Array"],[32,10],[252,3],[32,13],[252,3],[106],[45,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,214,0],[70],[4,64,"TYPESWITCH|Int8Array"],[32,10],[252,3],[32,13],[252,3],[106],[44,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,215,0],[70],[4,64,"TYPESWITCH|Uint8ClampedArray"],[32,10],[252,3],[32,13],[252,3],[106],[45,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,216,0],[70],[4,64,"TYPESWITCH|Uint16Array"],[32,10],[252,3],[32,13],[252,3],[65,2],[108],[106],[47,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,217,0],[70],[4,64,"TYPESWITCH|Int16Array"],[32,10],[252,3],[32,13],[252,3],[65,2],[108],[106],[46,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,218,0],[70],[4,64,"TYPESWITCH|Uint32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[40,0,4],[184],[65,0],[33,5],[12,1],[11],[32,17],[65,219,0],[70],[4,64,"TYPESWITCH|Int32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[40,0,4],[183],[65,0],[33,5],[12,1],[11],[32,17],[65,220,0],[70],[4,64,"TYPESWITCH|Float32Array"],[32,10],[252,3],[32,13],[252,3],[65,4],[108],[106],[42,0,4],[187],[65,0],[33,5],[12,1],[11],[32,17],[65,221,0],[70],[4,64,"TYPESWITCH|Float64Array"],[32,10],[252,3],[32,13],[252,3],[65,8],[108],[106],[43,0,4],[65,0],[33,5],[12,1],[11],...internalThrow(scope, 'TypeError', `Member expression is not supported for non-string non-array yet`),[68,0,0,0,0,0,0,0,0],[11,"TYPESWITCH_end"],[34,14],[57,0,4],[65,0],[33,5],[11],[32,13],[68,0,0,0,0,0,0,240,63],[160],[33,13],[12,1],[11],[11],[5],[32,4],[252,3],[32,6],[32,6],[68,0,0,0,0,0,0,240,63],[160],[33,6],[252,3],[65,8],[108],[106],[32,10],[34,14],[57,0,4],[65,0],[33,5],[11],[11],[32,9],[65,1],[106],[34,9],[32,8],[71],[13,1],[11],[11],[32,4],[252,3],[32,6],[34,18],[252,3],[54,1,0],[32,4],[65,221,0],[15]],
|
4377
|
+
params: [124,127,124,127],
|
4378
|
+
typedParams: true,
|
4379
|
+
returns: [124,127],
|
4380
|
+
typedReturns: true,
|
4381
|
+
locals: [124,127,124,127,127,127,124,127,124,124,124,127,127,127,124],
|
4382
|
+
localNames: ["_this","_this#type","vals","vals#type","out","#last_type","len","forof_base_pointer","forof_length","forof_counter","x","x#type","l","i","#member_setter_val_tmp","#member_setter_ptr_tmp","#loadArray_offset","#typeswitch_tmp","__length_setter_tmp"],
|
4383
|
+
hasRestArgument: true,
|
4384
|
+
};
|
4195
4385
|
this.__Float64Array_prototype_reverse = {
|
4196
4386
|
wasm: (scope, {}) => [[32,0],[252,3],[40,1,0],[184],[33,2],[68,0,0,0,0,0,0,0,0],[33,3],[32,2],[68,0,0,0,0,0,0,240,63],[161],[33,4],[3,64],[32,3],[32,4],[99],[4,64],[32,0],[252,3],[32,3],[252,3],[65,8],[108],[106],[43,0,4],[65,0],[33,7],[33,5],[32,0],[252,3],[32,3],[32,3],[68,0,0,0,0,0,0,240,63],[160],[33,3],[252,3],[65,8],[108],[106],[32,0],[252,3],[32,4],[252,3],[65,8],[108],[106],[43,0,4],[65,0],[33,7],[34,8],[57,0,4],[65,0],[33,7],[32,0],[252,3],[32,4],[32,4],[68,0,0,0,0,0,0,240,63],[161],[33,4],[252,3],[65,8],[108],[106],[32,5],[34,8],[57,0,4],[65,0],[33,7],[12,1],[11],[11],[32,0],[65,221,0],[15]],
|
4197
4387
|
params: [124,127],
|
package/compiler/precompile.js
CHANGED
@@ -119,7 +119,7 @@ ${funcs.map(x => {
|
|
119
119
|
locals: ${JSON.stringify(Object.values(x.locals).slice(x.params.length).map(x => x.type))},
|
120
120
|
localNames: ${JSON.stringify(Object.keys(x.locals))},
|
121
121
|
${x.data && x.data.length > 0 ? ` data: ${JSON.stringify(x.data)},` : ''}
|
122
|
-
${x.table ? ` table: true,` : ''}${x.constr ? ` constr: true,` : ''}
|
122
|
+
${x.table ? ` table: true,` : ''}${x.constr ? ` constr: true,` : ''}${x.hasRestArgument ? ` hasRestArgument: true,` : ''}
|
123
123
|
};`.replaceAll('\n\n', '\n').replaceAll('\n\n', '\n').replaceAll('\n\n', '\n');
|
124
124
|
}).join('\n')}
|
125
125
|
};`;
|
package/package.json
CHANGED
package/runner/index.js
CHANGED
package/bf
DELETED
Binary file
|