Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(234)

Side by Side Diff: test/mjsunit/wasm/embenchen/corrections.js

Issue 2251433002: [wasm] asm.js - Check stdlib.NaN is valid, prepare for the rest. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 = 'final: 40006013:58243.\n'; 4 var EXPECTED_OUTPUT = 'final: 40006013:58243.\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 5759 matching lines...) Expand 10 before | Expand all | Expand 10 after
5770 function stackSave() { 5770 function stackSave() {
5771 return STACKTOP | 0; 5771 return STACKTOP | 0;
5772 } 5772 }
5773 5773
5774 // EMSCRIPTEN_END_FUNCS 5774 // EMSCRIPTEN_END_FUNCS
5775 5775
5776 5776
5777 return { _strlen: _strlen, _memcpy: _memcpy, _main: _main, _memset: _memset, r unPostSets: runPostSets, stackAlloc: stackAlloc, stackSave: stackSave, stackRest ore: stackRestore, setThrew: setThrew, setTempRet0: setTempRet0, setTempRet1: se tTempRet1, setTempRet2: setTempRet2, setTempRet3: setTempRet3, setTempRet4: setT empRet4, setTempRet5: setTempRet5, setTempRet6: setTempRet6, setTempRet7: setTem pRet7, setTempRet8: setTempRet8, setTempRet9: setTempRet9 }; 5777 return { _strlen: _strlen, _memcpy: _memcpy, _main: _main, _memset: _memset, r unPostSets: runPostSets, stackAlloc: stackAlloc, stackSave: stackSave, stackRest ore: stackRestore, setThrew: setThrew, setTempRet0: setTempRet0, setTempRet1: se tTempRet1, setTempRet2: setTempRet2, setTempRet3: setTempRet3, setTempRet4: setT empRet4, setTempRet5: setTempRet5, setTempRet6: setTempRet6, setTempRet7: setTem pRet7, setTempRet8: setTempRet8, setTempRet9: setTempRet9 };
5778 }).toString(), 5778 }).toString(),
5779 // EMSCRIPTEN_END_ASM 5779 // EMSCRIPTEN_END_ASM
5780 { "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, "_free": _free, "_emscripten_memcpy_big": _emscripten_m emcpy_big, "_printf": _printf, "_send": _send, "_pwrite": _pwrite, "__reallyNega tive": __reallyNegative, "_fwrite": _fwrite, "_malloc": _malloc, "_mkport": _mkp ort, "_fprintf": _fprintf, "___setErrNo": ___setErrNo, "__formatString": __forma tString, "_fileno": _fileno, "_fflush": _fflush, "_write": _write, "STACKTOP": S TACKTOP, "STACK_MAX": STACK_MAX, "tempDoublePtr": tempDoublePtr, "ABORT": ABORT, "NaN": NaN, "Infinity": Infinity }, buffer); 5780 { "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, "_free": _free, "_emscripten_memcpy_big": _emscript en_memcpy_big, "_printf": _printf, "_send": _send, "_pwrite": _pwrite, "__really Negative": __reallyNegative, "_fwrite": _fwrite, "_malloc": _malloc, "_mkport": _mkport, "_fprintf": _fprintf, "___setErrNo": ___setErrNo, "__formatString": __f ormatString, "_fileno": _fileno, "_fflush": _fflush, "_write": _write, "STACKTOP ": STACKTOP, "STACK_MAX": STACK_MAX, "tempDoublePtr": tempDoublePtr, "ABORT": AB ORT, "NaN": NaN, "Infinity": Infinity }, buffer);
5781 var _strlen = Module["_strlen"] = asm["_strlen"]; 5781 var _strlen = Module["_strlen"] = asm["_strlen"];
5782 var _memcpy = Module["_memcpy"] = asm["_memcpy"]; 5782 var _memcpy = Module["_memcpy"] = asm["_memcpy"];
5783 var _main = Module["_main"] = asm["_main"]; 5783 var _main = Module["_main"] = asm["_main"];
5784 var _memset = Module["_memset"] = asm["_memset"]; 5784 var _memset = Module["_memset"] = asm["_memset"];
5785 var runPostSets = Module["runPostSets"] = asm["runPostSets"]; 5785 var runPostSets = Module["runPostSets"] = asm["runPostSets"];
5786 5786
5787 Runtime.stackAlloc = function(size) { return asm['stackAlloc'](size) }; 5787 Runtime.stackAlloc = function(size) { return asm['stackAlloc'](size) };
5788 Runtime.stackSave = function() { return asm['stackSave']() }; 5788 Runtime.stackSave = function() { return asm['stackSave']() };
5789 Runtime.stackRestore = function(top) { asm['stackRestore'](top) }; 5789 Runtime.stackRestore = function(top) { asm['stackRestore'](top) };
5790 5790
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
5977 } 5977 }
5978 5978
5979 // shouldRunNow refers to calling main(), not run(). 5979 // shouldRunNow refers to calling main(), not run().
5980 var shouldRunNow = true; 5980 var shouldRunNow = true;
5981 if (Module['noInitialRun']) { 5981 if (Module['noInitialRun']) {
5982 shouldRunNow = false; 5982 shouldRunNow = false;
5983 } 5983 }
5984 5984
5985 5985
5986 run([].concat(Module["arguments"])); 5986 run([].concat(Module["arguments"]));
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698