porffor 0.48.3 → 0.48.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/assemble.js +105 -132
- package/compiler/builtins/__internal_object.ts +2 -5
- package/compiler/builtins/array.ts +2 -2
- package/compiler/builtins/date.ts +1 -2
- package/compiler/builtins/error.js +7 -11
- package/compiler/builtins/function.ts +2 -6
- package/compiler/builtins/json.ts +11 -14
- package/compiler/builtins/object.ts +10 -27
- package/compiler/builtins/promise.ts +4 -17
- package/compiler/builtins/set.ts +1 -5
- package/compiler/builtins/weakref.ts +1 -5
- package/compiler/builtins/z_map.ts +1 -5
- package/compiler/builtins/z_weakmap.ts +1 -5
- package/compiler/builtins/z_weakset.ts +1 -5
- package/compiler/builtins.js +2 -15
- package/compiler/builtins_precompiled.js +103 -97
- package/compiler/codegen.js +138 -130
- package/compiler/precompile.js +1 -1
- package/compiler/types.js +1 -1
- package/compiler/wasmSpec.js +1 -2
- package/compiler/wrap.js +2 -4
- package/package.json +1 -1
- package/runner/index.js +1 -13
@@ -37,9 +37,5 @@ export const WeakMap = function (iterable: any): WeakMap {
|
|
37
37
|
return out;
|
38
38
|
};
|
39
39
|
|
40
|
-
export const __WeakMap_prototype_toString = (_this: WeakMap) =>
|
41
|
-
const out: bytestring = '[object WeakMap]';
|
42
|
-
return out;
|
43
|
-
};
|
44
|
-
|
40
|
+
export const __WeakMap_prototype_toString = (_this: WeakMap) => '[object WeakMap]';
|
45
41
|
export const __WeakMap_prototype_toLocaleString = (_this: WeakMap) => __WeakMap_prototype_toString(_this);
|
@@ -30,9 +30,5 @@ export const WeakSet = function (iterable: any): WeakSet {
|
|
30
30
|
return out;
|
31
31
|
};
|
32
32
|
|
33
|
-
export const __WeakSet_prototype_toString = (_this: WeakSet) =>
|
34
|
-
const out: bytestring = '[object WeakSet]';
|
35
|
-
return out;
|
36
|
-
};
|
37
|
-
|
33
|
+
export const __WeakSet_prototype_toString = (_this: WeakSet) => '[object WeakSet]';
|
38
34
|
export const __WeakSet_prototype_toLocaleString = (_this: WeakSet) => __WeakSet_prototype_toString(_this);
|
package/compiler/builtins.js
CHANGED
@@ -68,21 +68,6 @@ for (let i = 0; i < importedFuncs.length; i++) {
|
|
68
68
|
importedFuncs[f.name] = i;
|
69
69
|
}
|
70
70
|
|
71
|
-
const printStaticStr = str => {
|
72
|
-
const out = [];
|
73
|
-
|
74
|
-
for (let i = 0; i < str.length; i++) {
|
75
|
-
out.push(
|
76
|
-
// ...number(str.charCodeAt(i)),
|
77
|
-
...number(str.charCodeAt(i), Valtype.i32),
|
78
|
-
Opcodes.i32_from_u,
|
79
|
-
[ Opcodes.call, importedFuncs.printChar ]
|
80
|
-
);
|
81
|
-
}
|
82
|
-
|
83
|
-
return out;
|
84
|
-
};
|
85
|
-
|
86
71
|
export const UNDEFINED = 0;
|
87
72
|
export const NULL = 0;
|
88
73
|
|
@@ -106,6 +91,7 @@ export const BuiltinVars = function(ctx) {
|
|
106
91
|
this.__performance_timeOrigin = [
|
107
92
|
[ Opcodes.call, importedFuncs.timeOrigin ]
|
108
93
|
];
|
94
|
+
this.__performance_timeOrigin.usesImports = true;
|
109
95
|
|
110
96
|
this.__Uint8Array_BYTES_PER_ELEMENT = number(1);
|
111
97
|
this.__Int8Array_BYTES_PER_ELEMENT = number(1);
|
@@ -849,6 +835,7 @@ export const BuiltinFuncs = function() {
|
|
849
835
|
[ Opcodes.call, importedFuncs.time ]
|
850
836
|
]
|
851
837
|
};
|
838
|
+
this.__performance_now.usesImports = true;
|
852
839
|
|
853
840
|
|
854
841
|
this.__Porffor_type = {
|