Quote for Closure Compiler and add missing functions for non-optimised builds

This commit is contained in:
Fabian 2018-08-09 18:10:16 -05:00
parent 05d0079015
commit 952b8cf723

View file

@ -105,7 +105,7 @@ function V86Starter(options)
// }, this); // }, this);
//} //}
const wasm_table = new WebAssembly.Table({ element: "anyfunc", initial: 0x10000 + 0x100 }); const wasm_table = new WebAssembly.Table({ element: "anyfunc", "initial": 0x10000 + 0x100 });
var wasm_shared_funcs = { var wasm_shared_funcs = {
"__assert_fail": (condition, file, line, fun) => { "__assert_fail": (condition, file, line, fun) => {
@ -254,6 +254,10 @@ function V86Starter(options)
}, },
"codegen_finalize": (wasm_table_index, start, end, first_opcode, state_flags) => cpu.codegen_finalize(wasm_table_index, start, end, first_opcode, state_flags), "codegen_finalize": (wasm_table_index, start, end, first_opcode, state_flags) => cpu.codegen_finalize(wasm_table_index, start, end, first_opcode, state_flags),
"__indirect_function_table": wasm_table, "__indirect_function_table": wasm_table,
"floor": Math.floor,
"ceil": Math.ceil,
"fabs": Math.abs,
"abs": Math.abs,
}; };
const wasm_globals = { const wasm_globals = {