porffor 0.17.0-30b9c5fa5 → 0.17.0-3c2d70d66
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/README.md +6 -4
- package/compiler/assemble.js +19 -4
- package/compiler/builtins/array.ts +57 -9
- package/compiler/builtins/date.ts +104 -106
- package/compiler/builtins/error.js +2 -5
- package/compiler/builtins/set.ts +4 -5
- package/compiler/builtins/string_f64.ts +4 -6
- package/compiler/builtins/symbol.ts +2 -1
- package/compiler/builtins/typedarray.js +58 -6
- package/compiler/builtins/z_ecma262.ts +1 -0
- package/compiler/builtins.js +2 -2
- package/compiler/codegen.js +358 -120
- package/compiler/generated_builtins.js +2604 -703
- package/compiler/opt.js +3 -0
- package/compiler/precompile.js +4 -2
- package/compiler/prototype.js +0 -69
- package/package.json +1 -1
- package/rhemyn/compile.js +49 -16
package/compiler/builtins.js
CHANGED
@@ -161,7 +161,6 @@ export const BuiltinVars = function() {
|
|
161
161
|
[ Opcodes.call, importedFuncs.timeOrigin ]
|
162
162
|
];
|
163
163
|
|
164
|
-
|
165
164
|
this.__Uint8Array_BYTES_PER_ELEMENT = number(1);
|
166
165
|
this.__Int8Array_BYTES_PER_ELEMENT = number(1);
|
167
166
|
this.__Uint8ClampedArray_BYTES_PER_ELEMENT = number(1);
|
@@ -205,7 +204,8 @@ export const BuiltinFuncs = function() {
|
|
205
204
|
...number(TYPES.number, Valtype.i32),
|
206
205
|
[ Opcodes.local_get, 1 ],
|
207
206
|
...number(TYPES.number, Valtype.i32),
|
208
|
-
[ Opcodes.call, builtin('__Math_pow') ]
|
207
|
+
[ Opcodes.call, builtin('__Math_pow') ],
|
208
|
+
[ Opcodes.drop ],
|
209
209
|
]
|
210
210
|
};
|
211
211
|
|