porffor 0.55.16 → 0.55.18
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/LICENSE +1 -1
- package/compiler/builtins/__internal_object.ts +7 -11
- package/compiler/builtins/__internal_string.ts +0 -6
- package/compiler/builtins/_internal_object.ts +8 -15
- package/compiler/builtins/_internal_string.ts +1 -1
- package/compiler/builtins/array.ts +2 -4
- package/compiler/builtins/boolean.ts +1 -2
- package/compiler/builtins/generator.ts +10 -14
- package/compiler/builtins/json.ts +3 -5
- package/compiler/builtins/number.ts +1 -2
- package/compiler/builtins/object.ts +15 -14
- package/compiler/builtins/promise.ts +18 -29
- package/compiler/builtins/string_f64.ts +1 -2
- package/compiler/builtins/symbol.ts +1 -3
- package/compiler/builtins/z_ecma262.ts +2 -4
- package/compiler/builtins.js +2 -2
- package/compiler/builtins_objects.js +1 -3
- package/compiler/builtins_precompiled.js +1867 -1963
- package/compiler/codegen.js +60 -55
- package/compiler/precompile.js +3 -4
- package/compiler/wrap.js +2 -16
- package/package.json +4 -8
- package/r.cjs +2 -0
- package/runner/index.js +1 -1
- package/compiler/builtins/bigint.ts +0 -233
package/compiler/builtins.js
CHANGED
@@ -131,8 +131,7 @@ export const BuiltinFuncs = function() {
|
|
131
131
|
number(TYPES.number, Valtype.i32),
|
132
132
|
[ Opcodes.local_get, 1 ],
|
133
133
|
number(TYPES.number, Valtype.i32),
|
134
|
-
[ Opcodes.call, builtin('__Math_pow') ]
|
135
|
-
[ Opcodes.drop ],
|
134
|
+
[ Opcodes.call, builtin('__Math_pow') ]
|
136
135
|
]
|
137
136
|
};
|
138
137
|
|
@@ -756,6 +755,7 @@ export const BuiltinFuncs = function() {
|
|
756
755
|
params: [ Valtype.i32, Valtype.i32 ],
|
757
756
|
locals: [],
|
758
757
|
returns: [],
|
758
|
+
returnType: TYPES.undefined,
|
759
759
|
wasm: [
|
760
760
|
// dst
|
761
761
|
[ Opcodes.local_get, 1 ],
|
@@ -74,9 +74,7 @@ export default function({ builtinFuncs }, Prefs) {
|
|
74
74
|
number(flags, Valtype.i32),
|
75
75
|
number(TYPES.number, Valtype.i32),
|
76
76
|
|
77
|
-
[ Opcodes.call, builtin('__Porffor_object_expr_initWithFlags') ]
|
78
|
-
[ Opcodes.drop ],
|
79
|
-
[ Opcodes.drop ]
|
77
|
+
[ Opcodes.call, builtin('__Porffor_object_expr_initWithFlags') ]
|
80
78
|
);
|
81
79
|
}
|
82
80
|
|