porffor 0.18.3 → 0.18.4

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.
@@ -142,6 +142,38 @@ 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
+
145
177
  // @porf-typed-array
146
178
  export const __Array_prototype_reverse = (_this: any[]) => {
147
179
  const len: i32 = _this.length;
@@ -58,6 +58,8 @@ type PorfforGlobal = {
58
58
  set: i32;
59
59
  }
60
60
 
61
+ clone(source: any, destination: any): void;
62
+
61
63
  fastOr(...args: any): boolean;
62
64
  fastAnd(...args: any): boolean;
63
65
 
@@ -281,6 +281,15 @@ 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
+ };
284
293
  this.__Array_prototype_reverse = {
285
294
  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
295
  params: [124,127],
@@ -2208,6 +2217,15 @@ export const BuiltinFuncs = function() {
2208
2217
  locals: [124,124,127,124,127],
2209
2218
  localNames: ["_this","_this#type","index","index#type","value","value#type","len","out","#last_type","#member_setter_val_tmp","#member_setter_ptr_tmp"],
2210
2219
  };
2220
+ this.__Uint8Array_prototype_copyWithin = {
2221
+ 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]],
2222
+ params: [124,127,124,127,124,127,124,127],
2223
+ typedParams: true,
2224
+ returns: [124,127],
2225
+ typedReturns: true,
2226
+ locals: [124,124,127,127,127],
2227
+ 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"],
2228
+ };
2211
2229
  this.__Uint8Array_prototype_reverse = {
2212
2230
  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
2231
  params: [124,127],
@@ -2456,6 +2474,15 @@ export const BuiltinFuncs = function() {
2456
2474
  locals: [124,124,127,124,127],
2457
2475
  localNames: ["_this","_this#type","index","index#type","value","value#type","len","out","#last_type","#member_setter_val_tmp","#member_setter_ptr_tmp"],
2458
2476
  };
2477
+ this.__Int8Array_prototype_copyWithin = {
2478
+ 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]],
2479
+ params: [124,127,124,127,124,127,124,127],
2480
+ typedParams: true,
2481
+ returns: [124,127],
2482
+ typedReturns: true,
2483
+ locals: [124,124,127,127,127],
2484
+ 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"],
2485
+ };
2459
2486
  this.__Int8Array_prototype_reverse = {
2460
2487
  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
2488
  params: [124,127],
@@ -2704,6 +2731,15 @@ export const BuiltinFuncs = function() {
2704
2731
  locals: [124,124,127,124,127],
2705
2732
  localNames: ["_this","_this#type","index","index#type","value","value#type","len","out","#last_type","#member_setter_val_tmp","#member_setter_ptr_tmp"],
2706
2733
  };
2734
+ this.__Uint8ClampedArray_prototype_copyWithin = {
2735
+ 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]],
2736
+ params: [124,127,124,127,124,127,124,127],
2737
+ typedParams: true,
2738
+ returns: [124,127],
2739
+ typedReturns: true,
2740
+ locals: [124,124,127,127,127],
2741
+ 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"],
2742
+ };
2707
2743
  this.__Uint8ClampedArray_prototype_reverse = {
2708
2744
  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
2745
  params: [124,127],
@@ -2952,6 +2988,15 @@ export const BuiltinFuncs = function() {
2952
2988
  locals: [124,124,127,124,127],
2953
2989
  localNames: ["_this","_this#type","index","index#type","value","value#type","len","out","#last_type","#member_setter_val_tmp","#member_setter_ptr_tmp"],
2954
2990
  };
2991
+ this.__Uint16Array_prototype_copyWithin = {
2992
+ 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]],
2993
+ params: [124,127,124,127,124,127,124,127],
2994
+ typedParams: true,
2995
+ returns: [124,127],
2996
+ typedReturns: true,
2997
+ locals: [124,124,127,127,127],
2998
+ 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"],
2999
+ };
2955
3000
  this.__Uint16Array_prototype_reverse = {
2956
3001
  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
3002
  params: [124,127],
@@ -3200,6 +3245,15 @@ export const BuiltinFuncs = function() {
3200
3245
  locals: [124,124,127,124,127],
3201
3246
  localNames: ["_this","_this#type","index","index#type","value","value#type","len","out","#last_type","#member_setter_val_tmp","#member_setter_ptr_tmp"],
3202
3247
  };
3248
+ this.__Int16Array_prototype_copyWithin = {
3249
+ 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]],
3250
+ params: [124,127,124,127,124,127,124,127],
3251
+ typedParams: true,
3252
+ returns: [124,127],
3253
+ typedReturns: true,
3254
+ locals: [124,124,127,127,127],
3255
+ 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"],
3256
+ };
3203
3257
  this.__Int16Array_prototype_reverse = {
3204
3258
  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
3259
  params: [124,127],
@@ -3448,6 +3502,15 @@ export const BuiltinFuncs = function() {
3448
3502
  locals: [124,124,127,124,127],
3449
3503
  localNames: ["_this","_this#type","index","index#type","value","value#type","len","out","#last_type","#member_setter_val_tmp","#member_setter_ptr_tmp"],
3450
3504
  };
3505
+ this.__Uint32Array_prototype_copyWithin = {
3506
+ 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]],
3507
+ params: [124,127,124,127,124,127,124,127],
3508
+ typedParams: true,
3509
+ returns: [124,127],
3510
+ typedReturns: true,
3511
+ locals: [124,124,127,127,127],
3512
+ 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"],
3513
+ };
3451
3514
  this.__Uint32Array_prototype_reverse = {
3452
3515
  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
3516
  params: [124,127],
@@ -3696,6 +3759,15 @@ export const BuiltinFuncs = function() {
3696
3759
  locals: [124,124,127,124,127],
3697
3760
  localNames: ["_this","_this#type","index","index#type","value","value#type","len","out","#last_type","#member_setter_val_tmp","#member_setter_ptr_tmp"],
3698
3761
  };
3762
+ this.__Int32Array_prototype_copyWithin = {
3763
+ 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]],
3764
+ params: [124,127,124,127,124,127,124,127],
3765
+ typedParams: true,
3766
+ returns: [124,127],
3767
+ typedReturns: true,
3768
+ locals: [124,124,127,127,127],
3769
+ 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"],
3770
+ };
3699
3771
  this.__Int32Array_prototype_reverse = {
3700
3772
  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
3773
  params: [124,127],
@@ -3944,6 +4016,15 @@ export const BuiltinFuncs = function() {
3944
4016
  locals: [124,124,127,124,127],
3945
4017
  localNames: ["_this","_this#type","index","index#type","value","value#type","len","out","#last_type","#member_setter_val_tmp","#member_setter_ptr_tmp"],
3946
4018
  };
4019
+ this.__Float32Array_prototype_copyWithin = {
4020
+ 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]],
4021
+ params: [124,127,124,127,124,127,124,127],
4022
+ typedParams: true,
4023
+ returns: [124,127],
4024
+ typedReturns: true,
4025
+ locals: [124,124,127,127,127],
4026
+ 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"],
4027
+ };
3947
4028
  this.__Float32Array_prototype_reverse = {
3948
4029
  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
4030
  params: [124,127],
@@ -4192,6 +4273,15 @@ export const BuiltinFuncs = function() {
4192
4273
  locals: [124,124,127,124,127],
4193
4274
  localNames: ["_this","_this#type","index","index#type","value","value#type","len","out","#last_type","#member_setter_val_tmp","#member_setter_ptr_tmp"],
4194
4275
  };
4276
+ this.__Float64Array_prototype_copyWithin = {
4277
+ 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]],
4278
+ params: [124,127,124,127,124,127,124,127],
4279
+ typedParams: true,
4280
+ returns: [124,127],
4281
+ typedReturns: true,
4282
+ locals: [124,124,127,127,127],
4283
+ 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"],
4284
+ };
4195
4285
  this.__Float64Array_prototype_reverse = {
4196
4286
  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
4287
  params: [124,127],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "porffor",
3
3
  "description": "a basic experimental wip aot optimizing js -> wasm engine/compiler/runtime in js",
4
- "version": "0.18.3+945765df9",
4
+ "version": "0.18.4+aed1171a7",
5
5
  "author": "CanadaHonk",
6
6
  "license": "MIT",
7
7
  "scripts": {},
package/runner/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import fs from 'node:fs';
3
- globalThis.version = '0.18.3+945765df9';
3
+ globalThis.version = '0.18.4+aed1171a7';
4
4
 
5
5
  // deno compat
6
6
  if (typeof process === 'undefined' && typeof Deno !== 'undefined') {