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

Side by Side Diff: test/mjsunit/wasm/embenchen/fannkuch.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 = 4 var EXPECTED_OUTPUT =
5 '123456789\n' + 5 '123456789\n' +
6 '213456789\n' + 6 '213456789\n' +
7 '231456789\n' + 7 '231456789\n' +
8 '321456789\n' + 8 '321456789\n' +
9 '312456789\n' + 9 '312456789\n' +
10 '132456789\n' + 10 '132456789\n' +
(...skipping 8209 matching lines...) Expand 10 before | Expand all | Expand 10 after
8220 function stackSave() { 8220 function stackSave() {
8221 return STACKTOP | 0; 8221 return STACKTOP | 0;
8222 } 8222 }
8223 8223
8224 // EMSCRIPTEN_END_FUNCS 8224 // EMSCRIPTEN_END_FUNCS
8225 8225
8226 8226
8227 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 }; 8227 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 };
8228 }).toString(), 8228 }).toString(),
8229 // EMSCRIPTEN_END_ASM 8229 // EMSCRIPTEN_END_ASM
8230 { "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, "_fflush": _fflush, "_emscripten_memcpy_big": _emscript en_memcpy_big, "_putchar": _putchar, "_fputc": _fputc, "_send": _send, "_pwrite" : _pwrite, "_abort": _abort, "__reallyNegative": __reallyNegative, "_fwrite": _f write, "_sbrk": _sbrk, "_mkport": _mkport, "_fprintf": _fprintf, "___setErrNo": ___setErrNo, "__formatString": __formatString, "_fileno": _fileno, "_printf": _p rintf, "_time": _time, "_sysconf": _sysconf, "_write": _write, "___errno_locatio n": ___errno_location, "STACKTOP": STACKTOP, "STACK_MAX": STACK_MAX, "tempDouble Ptr": tempDoublePtr, "ABORT": ABORT, "NaN": NaN, "Infinity": Infinity }, buffer) ; 8230 { "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, "_fflush": _fflush, "_emscripten_memcpy_big": _emsc ripten_memcpy_big, "_putchar": _putchar, "_fputc": _fputc, "_send": _send, "_pwr ite": _pwrite, "_abort": _abort, "__reallyNegative": __reallyNegative, "_fwrite" : _fwrite, "_sbrk": _sbrk, "_mkport": _mkport, "_fprintf": _fprintf, "___setErrN o": ___setErrNo, "__formatString": __formatString, "_fileno": _fileno, "_printf" : _printf, "_time": _time, "_sysconf": _sysconf, "_write": _write, "___errno_loc ation": ___errno_location, "STACKTOP": STACKTOP, "STACK_MAX": STACK_MAX, "tempDo ublePtr": tempDoublePtr, "ABORT": ABORT, "NaN": NaN, "Infinity": Infinity }, buf fer);
8231 var _strlen = Module["_strlen"] = asm["_strlen"]; 8231 var _strlen = Module["_strlen"] = asm["_strlen"];
8232 var _free = Module["_free"] = asm["_free"]; 8232 var _free = Module["_free"] = asm["_free"];
8233 var _main = Module["_main"] = asm["_main"]; 8233 var _main = Module["_main"] = asm["_main"];
8234 var _memset = Module["_memset"] = asm["_memset"]; 8234 var _memset = Module["_memset"] = asm["_memset"];
8235 var _malloc = Module["_malloc"] = asm["_malloc"]; 8235 var _malloc = Module["_malloc"] = asm["_malloc"];
8236 var _memcpy = Module["_memcpy"] = asm["_memcpy"]; 8236 var _memcpy = Module["_memcpy"] = asm["_memcpy"];
8237 var runPostSets = Module["runPostSets"] = asm["runPostSets"]; 8237 var runPostSets = Module["runPostSets"] = asm["runPostSets"];
8238 8238
8239 Runtime.stackAlloc = function(size) { return asm['stackAlloc'](size) }; 8239 Runtime.stackAlloc = function(size) { return asm['stackAlloc'](size) };
8240 Runtime.stackSave = function() { return asm['stackSave']() }; 8240 Runtime.stackSave = function() { return asm['stackSave']() };
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
8429 } 8429 }
8430 8430
8431 // shouldRunNow refers to calling main(), not run(). 8431 // shouldRunNow refers to calling main(), not run().
8432 var shouldRunNow = true; 8432 var shouldRunNow = true;
8433 if (Module['noInitialRun']) { 8433 if (Module['noInitialRun']) {
8434 shouldRunNow = false; 8434 shouldRunNow = false;
8435 } 8435 }
8436 8436
8437 8437
8438 run([].concat(Module["arguments"])); 8438 run([].concat(Module["arguments"]));
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698