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

Side by Side Diff: test/mjsunit/wasm/embenchen/fasta.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 'GGCCGGGCGCGGTGGCTCACGCCTGTAATCCCAGCACTTTGGGAGGCCGAGGCGGGCGGA\n' + 5 'GGCCGGGCGCGGTGGCTCACGCCTGTAATCCCAGCACTTTGGGAGGCCGAGGCGGGCGGA\n' +
6 'TCACCTGAGGTCAGGAGTTCGAGACCAGCCTGGCCAACATGGTGAAACCCCGTCTCTACT\n' + 6 'TCACCTGAGGTCAGGAGTTCGAGACCAGCCTGGCCAACATGGTGAAACCCCGTCTCTACT\n' +
7 'AAAAATACAAAAATTAGCCGGGCGTGGTGGCGCGCGCCTGTAATCCCAGCTACTCGGGAG\n' + 7 'AAAAATACAAAAATTAGCCGGGCGTGGTGGCGCGCGCCTGTAATCCCAGCTACTCGGGAG\n' +
8 'GCTGAGGCAGGAGAATCGCTTGAACCCGGGAGGCGGAGGTTGCAGTGAGCCGAGATCGCG\n' + 8 'GCTGAGGCAGGAGAATCGCTTGAACCCGGGAGGCGGAGGTTGCAGTGAGCCGAGATCGCG\n' +
9 'CCACTGCACTCCAGCCTGGGCGACAGAGCGAGACTCCGTCTCAAAAAGGCCGGGCGCGGT\n' + 9 'CCACTGCACTCCAGCCTGGGCGACAGAGCGAGACTCCGTCTCAAAAAGGCCGGGCGCGGT\n' +
10 'GGCTCACGCCTGTAATCCCAGCACTTTGGGAGGCCGAGGCGGGCGGATCACCTGAGGTCA\n' + 10 'GGCTCACGCCTGTAATCCCAGCACTTTGGGAGGCCGAGGCGGGCGGATCACCTGAGGTCA\n' +
(...skipping 8376 matching lines...) Expand 10 before | Expand all | Expand 10 after
8387 } 8387 }
8388 8388
8389 // EMSCRIPTEN_END_FUNCS 8389 // EMSCRIPTEN_END_FUNCS
8390 var FUNCTION_TABLE_ii = [b0,__ZNKSt9bad_alloc4whatEv]; 8390 var FUNCTION_TABLE_ii = [b0,__ZNKSt9bad_alloc4whatEv];
8391 var FUNCTION_TABLE_vi = [b1,__ZNSt9bad_allocD2Ev,__ZNSt9bad_allocD0Ev,b1]; 8391 var FUNCTION_TABLE_vi = [b1,__ZNSt9bad_allocD2Ev,__ZNSt9bad_allocD0Ev,b1];
8392 var FUNCTION_TABLE_v = [b2]; 8392 var FUNCTION_TABLE_v = [b2];
8393 8393
8394 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_ii: dynCall_ii, dynCall_vi: dynCall_vi, dynCall_v: dynCall_v }; 8394 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_ii: dynCall_ii, dynCall_vi: dynCall_vi, dynCall_v: dynCall_v };
8395 }).toString(), 8395 }).toString(),
8396 // EMSCRIPTEN_END_ASM 8396 // EMSCRIPTEN_END_ASM
8397 { "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_ii": invoke_ii, "invoke_vi": invoke_vi, "invoke _v": invoke_v, "_send": _send, "___setErrNo": ___setErrNo, "___cxa_is_number_typ e": ___cxa_is_number_type, "___cxa_allocate_exception": ___cxa_allocate_exceptio n, "___cxa_find_matching_catch": ___cxa_find_matching_catch, "_fflush": _fflush, "_time": _time, "_pwrite": _pwrite, "__reallyNegative": __reallyNegative, "_sbr k": _sbrk, "_emscripten_memcpy_big": _emscripten_memcpy_big, "_fileno": _fileno, "___resumeException": ___resumeException, "__ZSt18uncaught_exceptionv": __ZSt18 uncaught_exceptionv, "_sysconf": _sysconf, "_puts": _puts, "_mkport": _mkport, " _write": _write, "___errno_location": ___errno_location, "__ZNSt9exceptionD2Ev": __ZNSt9exceptionD2Ev, "_fputc": _fputc, "___cxa_throw": ___cxa_throw, "_abort": _abort, "_fwrite": _fwrite, "___cxa_does_inherit": ___cxa_does_inherit, "_fprin tf": _fprintf, "__formatString": __formatString, "_fputs": _fputs, "_printf": _p rintf, "STACKTOP": STACKTOP, "STACK_MAX": STACK_MAX, "tempDoublePtr": tempDouble Ptr, "ABORT": ABORT, "NaN": NaN, "Infinity": Infinity, "__ZTISt9exception": __ZT ISt9exception, "__ZTVN10__cxxabiv120__si_class_type_infoE": __ZTVN10__cxxabiv120 __si_class_type_infoE }, buffer); 8397 { "Math": Math, "Int8Array": Int8Array, "Int16Array": Int16Array, "Int32Array": Int32Array, "Uint8Array": Uint8Array, "Uint16Array": Uint16Array, "Uint32Array": Uint32Array, "Float32Array": Float32Array, "Float64Array": Float64Array}, {"abo rt": abort, "assert": assert, "asmPrintInt": asmPrintInt, "asmPrintFloat": asmPr intFloat, "min": Math_min, "invoke_ii": invoke_ii, "invoke_vi": invoke_vi, "invo ke_v": invoke_v, "_send": _send, "___setErrNo": ___setErrNo, "___cxa_is_number_t ype": ___cxa_is_number_type, "___cxa_allocate_exception": ___cxa_allocate_except ion, "___cxa_find_matching_catch": ___cxa_find_matching_catch, "_fflush": _fflus h, "_time": _time, "_pwrite": _pwrite, "__reallyNegative": __reallyNegative, "_s brk": _sbrk, "_emscripten_memcpy_big": _emscripten_memcpy_big, "_fileno": _filen o, "___resumeException": ___resumeException, "__ZSt18uncaught_exceptionv": __ZSt 18uncaught_exceptionv, "_sysconf": _sysconf, "_puts": _puts, "_mkport": _mkport, "_write": _write, "___errno_location": ___errno_location, "__ZNSt9exceptionD2Ev ": __ZNSt9exceptionD2Ev, "_fputc": _fputc, "___cxa_throw": ___cxa_throw, "_abort ": _abort, "_fwrite": _fwrite, "___cxa_does_inherit": ___cxa_does_inherit, "_fpr intf": _fprintf, "__formatString": __formatString, "_fputs": _fputs, "_printf": _printf, "STACKTOP": STACKTOP, "STACK_MAX": STACK_MAX, "tempDoublePtr": tempDoub lePtr, "ABORT": ABORT, "NaN": NaN, "Infinity": Infinity, "__ZTISt9exception": __ ZTISt9exception, "__ZTVN10__cxxabiv120__si_class_type_infoE": __ZTVN10__cxxabiv1 20__si_class_type_infoE }, buffer);
8398 var _strlen = Module["_strlen"] = asm["_strlen"]; 8398 var _strlen = Module["_strlen"] = asm["_strlen"];
8399 var _free = Module["_free"] = asm["_free"]; 8399 var _free = Module["_free"] = asm["_free"];
8400 var _main = Module["_main"] = asm["_main"]; 8400 var _main = Module["_main"] = asm["_main"];
8401 var _memset = Module["_memset"] = asm["_memset"]; 8401 var _memset = Module["_memset"] = asm["_memset"];
8402 var _malloc = Module["_malloc"] = asm["_malloc"]; 8402 var _malloc = Module["_malloc"] = asm["_malloc"];
8403 var _memcpy = Module["_memcpy"] = asm["_memcpy"]; 8403 var _memcpy = Module["_memcpy"] = asm["_memcpy"];
8404 var runPostSets = Module["runPostSets"] = asm["runPostSets"]; 8404 var runPostSets = Module["runPostSets"] = asm["runPostSets"];
8405 var dynCall_ii = Module["dynCall_ii"] = asm["dynCall_ii"]; 8405 var dynCall_ii = Module["dynCall_ii"] = asm["dynCall_ii"];
8406 var dynCall_vi = Module["dynCall_vi"] = asm["dynCall_vi"]; 8406 var dynCall_vi = Module["dynCall_vi"] = asm["dynCall_vi"];
8407 var dynCall_v = Module["dynCall_v"] = asm["dynCall_v"]; 8407 var dynCall_v = Module["dynCall_v"] = asm["dynCall_v"];
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
8599 } 8599 }
8600 8600
8601 // shouldRunNow refers to calling main(), not run(). 8601 // shouldRunNow refers to calling main(), not run().
8602 var shouldRunNow = true; 8602 var shouldRunNow = true;
8603 if (Module['noInitialRun']) { 8603 if (Module['noInitialRun']) {
8604 shouldRunNow = false; 8604 shouldRunNow = false;
8605 } 8605 }
8606 8606
8607 8607
8608 run([].concat(Module["arguments"])); 8608 run([].concat(Module["arguments"]));
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698