porffor 0.41.1 → 0.41.2
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.
@@ -1,3 +1,3 @@
|
|
1
|
-
const uniq = [...new Set(require('../
|
1
|
+
const uniq = [...new Set(require('../hermes.json').pass.map(x => x.slice(5))).difference(new Set(require('./test262/results.json').passes))];
|
2
2
|
console.log([...uniq.reduce((acc, x) => { let k = x.split('/').slice(0, -1).join('/'); return acc.set(k, (acc.get(k) || 0) + 1); }, new Map()).entries()].sort((a, b) => a[1] - b[1]).slice(-20).map(x => x[0] + ': ' + x[1]).join('\n'));
|
3
3
|
console.log(uniq.filter(x => x.startsWith('built-ins/Object/defineProperty')).join('\n'))
|
@@ -13,7 +13,10 @@ export const __Porffor_object_underlying = (obj: any): any => {
|
|
13
13
|
}
|
14
14
|
|
15
15
|
if (Porffor.fastAnd(t > 0x05, t != Porffor.TYPES.undefined)) {
|
16
|
-
|
16
|
+
// this causes memory corruption things in some situations in test262?
|
17
|
+
// let idx: i32 = Porffor.array.fastIndexOf(underlyingKeys, obj);
|
18
|
+
|
19
|
+
let idx: i32 = underlyingKeys.indexOf(obj);
|
17
20
|
if (idx == -1) {
|
18
21
|
const underlying: object = {};
|
19
22
|
|
package/compiler/builtins.js
CHANGED
@@ -952,7 +952,7 @@ export const BuiltinFuncs = function() {
|
|
952
952
|
this.__Porffor_bytestringToString = {
|
953
953
|
params: [ Valtype.i32, Valtype.i32 ],
|
954
954
|
locals: [ Valtype.i32, Valtype.i32 ],
|
955
|
-
localNames: [ 'src', 'len', '
|
955
|
+
localNames: [ 'src', 'len', 'counter', 'dst' ],
|
956
956
|
returns: [ Valtype.i32 ],
|
957
957
|
returnType: TYPES.string,
|
958
958
|
wasm: [
|
@@ -967,10 +967,6 @@ export const BuiltinFuncs = function() {
|
|
967
967
|
[ Opcodes.local_get, 1 ],
|
968
968
|
[ Opcodes.i32_store, 0, 0 ],
|
969
969
|
|
970
|
-
// counter = 0
|
971
|
-
[ Opcodes.i32_const, 0 ],
|
972
|
-
[ Opcodes.local_set, 2 ],
|
973
|
-
|
974
970
|
[ Opcodes.loop, Blocktype.void ],
|
975
971
|
|
976
972
|
// base for store later
|
@@ -3,12 +3,11 @@ import { number } from './embedding.js';
|
|
3
3
|
|
4
4
|
export const BuiltinFuncs = function() {
|
5
5
|
this.__Porffor_object_underlying = {
|
6
|
-
wasm:(_,{
|
6
|
+
wasm:(_,{allocPage,glbl,builtin})=>[[32,1],[184],[34,2],[68,7],[97],[4,64],[32,0],[32,1],[15],[11],[32,2],[68,39],[102],[32,2],[68,48],[101],[113],[4,64],[32,0],[34,3],[65,7],[15],[11],[32,2],[68,5],[100],[32,2],[68,128],[98],[113],[4,64],...glbl(35,'underlyingKeys',124),[33,5],[65,208,0],[33,6],[32,5],[32,6],[32,0],[32,1],[68,0],[65,128,1],[16,builtin('__Array_prototype_indexOf')],[33,7],[34,4],[68,-1],[97],[4,64],[16,builtin('__Porffor_allocate')],[184],[33,8],[32,2],[68,6],[97],[4,64],[32,0],[252,2],[16,builtin('__Porffor_funcLut_flags')],[183],[34,9],[68,2],[16,builtin('f64_&')],[252,3],[4,64],[16,builtin('__Porffor_allocate')],[184],[33,10],[65,7],[33,11],...number(allocPage(_,'bytestring: __Porffor_object_underlying/key1','i8'),124),[33,12],[32,8],[252,2],[65,7],[32,12],[252,2],[65,195,1],[32,10],[32,11],[65,8],[65,1],[16,builtin('__Porffor_object_expr_initWithFlags')],[33,7],[183],[26],...number(allocPage(_,'bytestring: __Porffor_object_underlying/key2','i8'),124),[33,13],[32,10],[252,2],[32,11],[32,13],[252,2],[65,195,1],[32,0],[32,1],[65,10],[65,1],[16,builtin('__Porffor_object_expr_initWithFlags')],[33,7],[183],[26],[11],[11],[32,2],[68,80],[97],[4,64],[32,0],[34,14],[252,3],[40,1,0],[184],[33,15],...number(allocPage(_,'bytestring: __Porffor_object_underlying/key3','i8'),124),[33,16],[32,8],[252,2],[65,7],[32,16],[252,2],[65,195,1],[32,15],[65,1],[65,8],[65,1],[16,builtin('__Porffor_object_expr_initWithFlags')],[33,7],[183],[26],[68,0],[33,17],[3,64],[32,17],[32,15],[99],[4,64],[32,8],[252,2],[65,7],[32,17],[65,1],[68,0],[65,128,1],[16,builtin('__Number_prototype_toString')],[33,7],[252,2],[32,7],[32,14],[33,18],[32,17],[34,19],[252,3],[65,9],[108],[32,18],[252,3],[106],[34,20],[43,0,4],[32,20],[45,0,12],[34,7],[65,14],[65,1],[16,builtin('__Porffor_object_expr_initWithFlags')],[33,7],[183],[26],[32,17],[68,1],[160],[33,17],[12,1],[11],[11],[11],[32,2],[68,67],[97],[4,64],[32,0],[34,21],[252,3],[40,1,0],[184],[33,15],[32,16],[252,3],[34,22],[65,6],[54,1,0],[32,22],[65,236,0],[58,0,4],[32,22],[65,229,0],[58,0,5],[32,22],[65,238,0],[58,0,6],[32,22],[65,231,0],[58,0,7],[32,22],[65,244,0],[58,0,8],[32,22],[65,232,0],[58,0,9],[32,22],[184],[33,16],[32,8],[252,2],[65,7],[32,12],[252,2],[65,195,1],[32,15],[65,1],[65,0],[65,1],[16,builtin('__Porffor_object_expr_initWithFlags')],[33,7],[183],[26],[68,0],[33,17],[3,64],[32,17],[32,15],[99],[4,64],[32,8],[252,2],[65,7],[32,17],[65,1],[68,0],[65,128,1],[16,builtin('__Number_prototype_toString')],[33,7],[252,2],[32,7],[32,21],[33,18],[32,17],[33,19],[16,builtin('__Porffor_allocate')],[34,23],[65,1],[54,0,0],[32,23],[32,19],[252,3],[65,2],[108],[32,18],[252,3],[106],[47,0,4],[59,0,4],[32,23],[184],[65,195,0],[33,7],[65,195,0],[65,4],[65,1],[16,builtin('__Porffor_object_expr_initWithFlags')],[33,7],[183],[26],[32,17],[68,1],[160],[33,17],[12,1],[11],[11],[32,8],[252,2],[65,7],[16,builtin('__Porffor_object_preventExtensions')],[33,7],[183],[26],[11],[32,2],[68,195],[97],[4,64],[32,0],[34,21],[252,3],[40,1,0],[184],[33,15],[32,16],[252,3],[34,22],[65,6],[54,1,0],[32,22],[65,236,0],[58,0,4],[32,22],[65,229,0],[58,0,5],[32,22],[65,238,0],[58,0,6],[32,22],[65,231,0],[58,0,7],[32,22],[65,244,0],[58,0,8],[32,22],[65,232,0],[58,0,9],[32,22],[184],[33,16],[32,8],[252,2],[65,7],[32,12],[252,2],[65,195,1],[32,15],[65,1],[65,0],[65,1],[16,builtin('__Porffor_object_expr_initWithFlags')],[33,7],[183],[26],[68,0],[33,17],[3,64],[32,17],[32,15],[99],[4,64],[32,8],[252,2],[65,7],[32,17],[65,1],[68,0],[65,128,1],[16,builtin('__Number_prototype_toString')],[33,7],[252,2],[32,7],[32,21],[33,18],[32,17],[33,19],[16,builtin('__Porffor_allocate')],[34,23],[65,1],[54,0,0],[32,23],[32,19],[252,3],[32,18],[252,3],[106],[45,0,4],[58,0,4],[32,23],[184],[65,195,1],[33,7],[65,195,1],[65,4],[65,1],[16,builtin('__Porffor_object_expr_initWithFlags')],[33,7],[183],[26],[32,17],[68,1],[160],[33,17],[12,1],[11],[11],[32,8],[252,2],[65,7],[16,builtin('__Porffor_object_preventExtensions')],[33,7],[183],[26],[11],...glbl(35,'underlyingVals',124),[65,208,0],[32,8],[65,7],[16,builtin('__Porffor_array_fastPush')],[33,7],[26],...glbl(35,'underlyingKeys',124),[65,208,0],[32,0],[32,1],[16,builtin('__Porffor_array_fastPush')],[33,7],[68,1],[161],[33,4],[11],...glbl(35,'underlyingVals',124),[33,18],[32,4],[34,19],[252,3],[65,9],[108],[32,18],[252,3],[106],[34,20],[43,0,4],[32,20],[45,0,12],[34,7],[15],[11],[32,0],[32,1],[15]],
|
7
7
|
params:[124,127],typedParams:1,returns:[124,127],typedReturns:1,
|
8
|
-
locals:[124,124,124,
|
8
|
+
locals:[124,124,124,124,127,127,124,124,124,127,124,124,124,124,124,124,124,124,127,124,127,127],localNames:["obj","obj#type","t","remap","idx","#proto_target","#proto_target#type","#last_type","underlying","flags","proto","proto#type","key1","key2","arr","len","key3","i","#member_obj","#member_prop","#loadArray_offset","str","#makearray_pointer_tmp","#member_allocd"],
|
9
9
|
usedTypes:[7,80,195,67],
|
10
10
|
globalInits:{underlyingKeys:(_,{allocPage,glbl,loc})=>[...number(allocPage(_,'array: __internal_object.ts/underlyingKeys','f64'),124),...glbl(36,'underlyingKeys',124),...glbl(35,'underlyingKeys',124),[252,3],[33,loc('#makearray_pointer_tmp',127)],[32,loc('#makearray_pointer_tmp',127)],[65,0],[54,1,0],[32,loc('#makearray_pointer_tmp',127)],[26]],underlyingVals:(_,{allocPage,glbl,loc})=>[...number(allocPage(_,'array: __internal_object.ts/underlyingVals','f64'),124),...glbl(36,'underlyingVals',124),...glbl(35,'underlyingVals',124),[252,3],[33,loc('#makearray_pointer_tmp',127)],[32,loc('#makearray_pointer_tmp',127)],[65,0],[54,1,0],[32,loc('#makearray_pointer_tmp',127)],[26]]},data:{"bytestring: __Porffor_object_underlying/key1":[9,0,0,0,112,114,111,116,111,116,121,112,101],"bytestring: __Porffor_object_underlying/key2":[11,0,0,0,99,111,110,115,116,114,117,99,116,111,114],"bytestring: __Porffor_object_underlying/key3":[6,0,0,0,108,101,110,103,116,104]},
|
11
|
-
table:1,
|
12
11
|
};
|
13
12
|
this.__Porffor_strcmp = {
|
14
13
|
wasm:()=>[[32,0],[32,2],[70],[4,64],[65,1],[65,2],[15],[11],[32,0],[40,0,0],[33,4],[32,2],[40,0,0],[33,5],[32,4],[32,5],[71],[4,64],[65,0],[65,2],[15],[11],[32,1],[65,195,1],[70],[4,64],[32,3],[65,195,1],[70],[4,64],[32,0],[65,28],[107],[33,6],[32,2],[65,28],[107],[33,7],[32,0],[65,4],[107],[33,8],[32,2],[65,4],[107],[33,9],[32,4],[65,32],[78],[4,64],[3,64],[32,6],[32,4],[106],[253,0,0,0],[32,7],[32,4],[106],[253,0,0,0],[253,81],[32,6],[32,4],[106],[253,0,0,16],[32,7],[32,4],[106],[253,0,0,16],[253,81],[253,80],[253,83],[4,64],[65,0],[65,2],[15],[11],[32,4],[65,32],[107],[34,4],[65,32],[78],[13,0],[11],[11],[32,4],[65,8],[78],[4,64],[3,64],[32,8],[32,4],[106],[41,0,0],[32,9],[32,4],[106],[41,0,0],[82],[4,64],[65,0],[65,2],[15],[11],[32,4],[65,8],[107],[34,4],[65,8],[78],[13,0],[11],[11],[32,4],[65,2],[78],[4,64],[3,64],[32,0],[32,4],[106],[47,0,2],[32,2],[32,4],[106],[47,0,2],[71],[4,64],[65,0],[65,2],[15],[11],[32,4],[65,2],[107],[34,4],[65,2],[78],[13,0],[11],[11],[32,4],[65,1],[70],[4,64],[32,0],[45,0,4],[32,2],[45,0,4],[71],[4,64],[65,0],[65,2],[15],[11],[11],[65,1],[65,2],[15],[5],[65,0],[33,10],[3,64],[32,10],[32,4],[72],[4,64],[32,0],[32,10],[106],[45,0,4],[32,2],[32,10],[65,2],[108],[106],[47,0,4],[71],[4,64],[65,0],[65,2],[15],[11],[32,10],[65,1],[106],[33,10],[12,1],[11],[11],[65,1],[65,2],[15],[11],[5],[32,3],[65,195,1],[70],[4,64],[65,0],[33,10],[3,64],[32,10],[32,4],[72],[4,64],[32,0],[32,10],[65,2],[108],[106],[47,0,4],[32,2],[32,10],[106],[45,0,4],[71],[4,64],[65,0],[65,2],[15],[11],[32,10],[65,1],[106],[33,10],[12,1],[11],[11],[65,1],[65,2],[15],[5],[32,0],[65,4],[107],[33,11],[32,2],[65,4],[107],[33,12],[3,64],[32,11],[32,4],[65,2],[108],[106],[41,0,0],[32,12],[32,4],[65,2],[108],[106],[41,0,0],[82],[4,64],[65,0],[65,2],[15],[11],[32,4],[65,4],[107],[34,4],[65,4],[78],[13,0],[11],[65,0],[33,10],[3,64],[32,10],[32,4],[72],[4,64],[32,0],[32,10],[65,2],[108],[106],[47,0,4],[32,2],[32,10],[65,2],[108],[106],[47,0,4],[71],[4,64],[65,0],[65,2],[15],[11],[32,10],[65,1],[106],[33,10],[12,1],[11],[11],[65,1],[65,2],[15],[11],[11],[65,0],[65,128,1],[15]],
|
package/package.json
CHANGED
package/runner/index.js
CHANGED