OLD | NEW |
1 // Modified embenchen to direct to asm-wasm. | 1 // Modified embenchen to direct to asm-wasm. |
2 // Flags: --expose-wasm | 2 // Flags: --expose-wasm |
3 | 3 |
4 var EXPECTED_OUTPUT = 'sizes: 100000,25906\nok.\n'; | 4 var EXPECTED_OUTPUT = 'sizes: 100000,25906\nok.\n'; |
5 var Module = { | 5 var Module = { |
6 arguments: [1], | 6 arguments: [1], |
7 print: function(x) {Module.printBuffer += x + '\n';}, | 7 print: function(x) {Module.printBuffer += x + '\n';}, |
8 preRun: [function() {Module.printBuffer = ''}], | 8 preRun: [function() {Module.printBuffer = ''}], |
9 postRun: [function() { | 9 postRun: [function() { |
10 assertEquals(EXPECTED_OUTPUT, Module.printBuffer); | 10 assertEquals(EXPECTED_OUTPUT, Module.printBuffer); |
(...skipping 14523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14534 } | 14534 } |
14535 | 14535 |
14536 // EMSCRIPTEN_END_FUNCS | 14536 // EMSCRIPTEN_END_FUNCS |
14537 var FUNCTION_TABLE_iiii = [b0,_zcalloc]; | 14537 var FUNCTION_TABLE_iiii = [b0,_zcalloc]; |
14538 var FUNCTION_TABLE_vii = [b1,_zcfree]; | 14538 var FUNCTION_TABLE_vii = [b1,_zcfree]; |
14539 var FUNCTION_TABLE_iii = [b2,_deflate_stored,_deflate_fast,_deflate_slow]; | 14539 var FUNCTION_TABLE_iii = [b2,_deflate_stored,_deflate_fast,_deflate_slow]; |
14540 | 14540 |
14541 return { _strlen: _strlen, _free: _free, _main: _main, _memset: _memset, _mall
oc: _malloc, _memcpy: _memcpy, runPostSets: runPostSets, stackAlloc: stackAlloc,
stackSave: stackSave, stackRestore: stackRestore, setThrew: setThrew, setTempRe
t0: setTempRet0, setTempRet1: setTempRet1, setTempRet2: setTempRet2, setTempRet3
: setTempRet3, setTempRet4: setTempRet4, setTempRet5: setTempRet5, setTempRet6:
setTempRet6, setTempRet7: setTempRet7, setTempRet8: setTempRet8, setTempRet9: se
tTempRet9, dynCall_iiii: dynCall_iiii, dynCall_vii: dynCall_vii, dynCall_iii: dy
nCall_iii }; | 14541 return { _strlen: _strlen, _free: _free, _main: _main, _memset: _memset, _mall
oc: _malloc, _memcpy: _memcpy, runPostSets: runPostSets, stackAlloc: stackAlloc,
stackSave: stackSave, stackRestore: stackRestore, setThrew: setThrew, setTempRe
t0: setTempRet0, setTempRet1: setTempRet1, setTempRet2: setTempRet2, setTempRet3
: setTempRet3, setTempRet4: setTempRet4, setTempRet5: setTempRet5, setTempRet6:
setTempRet6, setTempRet7: setTempRet7, setTempRet8: setTempRet8, setTempRet9: se
tTempRet9, dynCall_iiii: dynCall_iiii, dynCall_vii: dynCall_vii, dynCall_iii: dy
nCall_iii }; |
14542 }).toString(), | 14542 }).toString(), |
14543 // EMSCRIPTEN_END_ASM | 14543 // EMSCRIPTEN_END_ASM |
14544 { "Math": Math, "Int8Array": Int8Array, "Int16Array": Int16Array, "Int32Array":
Int32Array, "Uint8Array": Uint8Array, "Uint16Array": Uint16Array, "Uint32Array":
Uint32Array, "Float32Array": Float32Array, "Float64Array": Float64Array, "abort
": abort, "assert": assert, "asmPrintInt": asmPrintInt, "asmPrintFloat": asmPrin
tFloat, "min": Math_min, "invoke_iiii": invoke_iiii, "invoke_vii": invoke_vii, "
invoke_iii": invoke_iii, "_send": _send, "___setErrNo": ___setErrNo, "___assert_
fail": ___assert_fail, "_fflush": _fflush, "_pwrite": _pwrite, "__reallyNegative
": __reallyNegative, "_sbrk": _sbrk, "___errno_location": ___errno_location, "_e
mscripten_memcpy_big": _emscripten_memcpy_big, "_fileno": _fileno, "_sysconf": _
sysconf, "_puts": _puts, "_mkport": _mkport, "_write": _write, "_llvm_bswap_i32"
: _llvm_bswap_i32, "_fputc": _fputc, "_abort": _abort, "_fwrite": _fwrite, "_tim
e": _time, "_fprintf": _fprintf, "__formatString": __formatString, "_fputs": _fp
uts, "_printf": _printf, "STACKTOP": STACKTOP, "STACK_MAX": STACK_MAX, "tempDoub
lePtr": tempDoublePtr, "ABORT": ABORT, "NaN": NaN, "Infinity": Infinity }, buffe
r); | 14544 { "Math": Math, "Int8Array": Int8Array, "Int16Array": Int16Array, "Int32Array":
Int32Array, "Uint8Array": Uint8Array, "Uint16Array": Uint16Array, "Uint32Array":
Uint32Array, "Float32Array": Float32Array, "Float64Array": Float64Array }, { "a
bort": abort, "assert": assert, "asmPrintInt": asmPrintInt, "asmPrintFloat": asm
PrintFloat, "min": Math_min, "invoke_iiii": invoke_iiii, "invoke_vii": invoke_vi
i, "invoke_iii": invoke_iii, "_send": _send, "___setErrNo": ___setErrNo, "___ass
ert_fail": ___assert_fail, "_fflush": _fflush, "_pwrite": _pwrite, "__reallyNega
tive": __reallyNegative, "_sbrk": _sbrk, "___errno_location": ___errno_location,
"_emscripten_memcpy_big": _emscripten_memcpy_big, "_fileno": _fileno, "_sysconf
": _sysconf, "_puts": _puts, "_mkport": _mkport, "_write": _write, "_llvm_bswap_
i32": _llvm_bswap_i32, "_fputc": _fputc, "_abort": _abort, "_fwrite": _fwrite, "
_time": _time, "_fprintf": _fprintf, "__formatString": __formatString, "_fputs":
_fputs, "_printf": _printf, "STACKTOP": STACKTOP, "STACK_MAX": STACK_MAX, "temp
DoublePtr": tempDoublePtr, "ABORT": ABORT, "NaN": NaN, "Infinity": Infinity }, b
uffer); |
14545 var _strlen = Module["_strlen"] = asm["_strlen"]; | 14545 var _strlen = Module["_strlen"] = asm["_strlen"]; |
14546 var _free = Module["_free"] = asm["_free"]; | 14546 var _free = Module["_free"] = asm["_free"]; |
14547 var _main = Module["_main"] = asm["_main"]; | 14547 var _main = Module["_main"] = asm["_main"]; |
14548 var _memset = Module["_memset"] = asm["_memset"]; | 14548 var _memset = Module["_memset"] = asm["_memset"]; |
14549 var _malloc = Module["_malloc"] = asm["_malloc"]; | 14549 var _malloc = Module["_malloc"] = asm["_malloc"]; |
14550 var _memcpy = Module["_memcpy"] = asm["_memcpy"]; | 14550 var _memcpy = Module["_memcpy"] = asm["_memcpy"]; |
14551 var runPostSets = Module["runPostSets"] = asm["runPostSets"]; | 14551 var runPostSets = Module["runPostSets"] = asm["runPostSets"]; |
14552 var dynCall_iiii = Module["dynCall_iiii"] = asm["dynCall_iiii"]; | 14552 var dynCall_iiii = Module["dynCall_iiii"] = asm["dynCall_iiii"]; |
14553 var dynCall_vii = Module["dynCall_vii"] = asm["dynCall_vii"]; | 14553 var dynCall_vii = Module["dynCall_vii"] = asm["dynCall_vii"]; |
14554 var dynCall_iii = Module["dynCall_iii"] = asm["dynCall_iii"]; | 14554 var dynCall_iii = Module["dynCall_iii"] = asm["dynCall_iii"]; |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14746 } | 14746 } |
14747 | 14747 |
14748 // shouldRunNow refers to calling main(), not run(). | 14748 // shouldRunNow refers to calling main(), not run(). |
14749 var shouldRunNow = true; | 14749 var shouldRunNow = true; |
14750 if (Module['noInitialRun']) { | 14750 if (Module['noInitialRun']) { |
14751 shouldRunNow = false; | 14751 shouldRunNow = false; |
14752 } | 14752 } |
14753 | 14753 |
14754 | 14754 |
14755 run([].concat(Module["arguments"])); | 14755 run([].concat(Module["arguments"])); |
OLD | NEW |