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

Side by Side Diff: test/mjsunit/wasm/embenchen/box2d.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
« no previous file with comments | « test/mjsunit/wasm/asm-wasm-stdlib.js ('k') | test/mjsunit/wasm/embenchen/copy.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 /frame averages: .+ \+- .+, range: .+ to .+ \n/; 5 /frame averages: .+ \+- .+, range: .+ to .+ \n/;
6 var Module = { 6 var Module = {
7 arguments: [1], 7 arguments: [1],
8 print: function(x) {Module.printBuffer += x + '\n';}, 8 print: function(x) {Module.printBuffer += x + '\n';},
9 preRun: [function() {Module.printBuffer = ''}], 9 preRun: [function() {Module.printBuffer = ''}],
10 postRun: [function() { 10 postRun: [function() {
(...skipping 20084 matching lines...) Expand 10 before | Expand all | Expand 10 after
20095 var FUNCTION_TABLE_v = [b6,___cxa_pure_virtual__wrapper,__Z4iterv,b6]; 20095 var FUNCTION_TABLE_v = [b6,___cxa_pure_virtual__wrapper,__Z4iterv,b6];
20096 var FUNCTION_TABLE_viid = [b7,__ZNK11b2EdgeShape11ComputeMassEP10b2MassDataf,_ _ZNK14b2PolygonShape11ComputeMassEP10b2MassDataf,b7]; 20096 var FUNCTION_TABLE_viid = [b7,__ZNK11b2EdgeShape11ComputeMassEP10b2MassDataf,_ _ZNK14b2PolygonShape11ComputeMassEP10b2MassDataf,b7];
20097 var FUNCTION_TABLE_viiiiii = [b8,__ZNK10__cxxabiv117__class_type_info16search_ above_dstEPNS_19__dynamic_cast_infoEPKvS4_ib,__ZNK10__cxxabiv120__si_class_type_ info16search_above_dstEPNS_19__dynamic_cast_infoEPKvS4_ib,b8]; 20097 var FUNCTION_TABLE_viiiiii = [b8,__ZNK10__cxxabiv117__class_type_info16search_ above_dstEPNS_19__dynamic_cast_infoEPKvS4_ib,__ZNK10__cxxabiv120__si_class_type_ info16search_above_dstEPNS_19__dynamic_cast_infoEPKvS4_ib,b8];
20098 var FUNCTION_TABLE_iii = [b9,__ZNK11b2EdgeShape5CloneEP16b2BlockAllocator,__ZN K14b2PolygonShape5CloneEP16b2BlockAllocator,__Z14b2PairLessThanRK6b2PairS1_]; 20098 var FUNCTION_TABLE_iii = [b9,__ZNK11b2EdgeShape5CloneEP16b2BlockAllocator,__ZN K14b2PolygonShape5CloneEP16b2BlockAllocator,__Z14b2PairLessThanRK6b2PairS1_];
20099 var FUNCTION_TABLE_iiiiii = [b10,__ZNK11b2EdgeShape7RayCastEP15b2RayCastOutput RK14b2RayCastInputRK11b2Transformi,__ZNK14b2PolygonShape7RayCastEP15b2RayCastOut putRK14b2RayCastInputRK11b2Transformi,__ZN15b2CircleContact6CreateEP9b2FixtureiS 1_iP16b2BlockAllocator,__ZN25b2PolygonAndCircleContact6CreateEP9b2FixtureiS1_iP1 6b2BlockAllocator,__ZN16b2PolygonContact6CreateEP9b2FixtureiS1_iP16b2BlockAlloca tor,__ZN22b2EdgeAndCircleContact6CreateEP9b2FixtureiS1_iP16b2BlockAllocator,__ZN 23b2EdgeAndPolygonContact6CreateEP9b2FixtureiS1_iP16b2BlockAllocator,__ZN23b2Cha inAndCircleContact6CreateEP9b2FixtureiS1_iP16b2BlockAllocator,__ZN24b2ChainAndPo lygonContact6CreateEP9b2FixtureiS1_iP16b2BlockAllocator,b10,b10,b10,b10,b10,b10] ; 20099 var FUNCTION_TABLE_iiiiii = [b10,__ZNK11b2EdgeShape7RayCastEP15b2RayCastOutput RK14b2RayCastInputRK11b2Transformi,__ZNK14b2PolygonShape7RayCastEP15b2RayCastOut putRK14b2RayCastInputRK11b2Transformi,__ZN15b2CircleContact6CreateEP9b2FixtureiS 1_iP16b2BlockAllocator,__ZN25b2PolygonAndCircleContact6CreateEP9b2FixtureiS1_iP1 6b2BlockAllocator,__ZN16b2PolygonContact6CreateEP9b2FixtureiS1_iP16b2BlockAlloca tor,__ZN22b2EdgeAndCircleContact6CreateEP9b2FixtureiS1_iP16b2BlockAllocator,__ZN 23b2EdgeAndPolygonContact6CreateEP9b2FixtureiS1_iP16b2BlockAllocator,__ZN23b2Cha inAndCircleContact6CreateEP9b2FixtureiS1_iP16b2BlockAllocator,__ZN24b2ChainAndPo lygonContact6CreateEP9b2FixtureiS1_iP16b2BlockAllocator,b10,b10,b10,b10,b10,b10] ;
20100 var FUNCTION_TABLE_viiii = [b11,__ZNK11b2EdgeShape11ComputeAABBEP6b2AABBRK11b2 Transformi,__ZNK14b2PolygonShape11ComputeAABBEP6b2AABBRK11b2Transformi,__ZN22b2E dgeAndCircleContact8EvaluateEP10b2ManifoldRK11b2TransformS4_,__ZN23b2EdgeAndPoly gonContact8EvaluateEP10b2ManifoldRK11b2TransformS4_,__ZN25b2PolygonAndCircleCont act8EvaluateEP10b2ManifoldRK11b2TransformS4_,__ZN16b2PolygonContact8EvaluateEP10 b2ManifoldRK11b2TransformS4_,__ZN23b2ChainAndCircleContact8EvaluateEP10b2Manifol dRK11b2TransformS4_,__ZN24b2ChainAndPolygonContact8EvaluateEP10b2ManifoldRK11b2T ransformS4_,__ZN15b2CircleContact8EvaluateEP10b2ManifoldRK11b2TransformS4_,__ZNK 10__cxxabiv117__class_type_info27has_unambiguous_public_baseEPNS_19__dynamic_cas t_infoEPvi,__ZNK10__cxxabiv120__si_class_type_info27has_unambiguous_public_baseE PNS_19__dynamic_cast_infoEPvi,b11,b11,b11,b11]; 20100 var FUNCTION_TABLE_viiii = [b11,__ZNK11b2EdgeShape11ComputeAABBEP6b2AABBRK11b2 Transformi,__ZNK14b2PolygonShape11ComputeAABBEP6b2AABBRK11b2Transformi,__ZN22b2E dgeAndCircleContact8EvaluateEP10b2ManifoldRK11b2TransformS4_,__ZN23b2EdgeAndPoly gonContact8EvaluateEP10b2ManifoldRK11b2TransformS4_,__ZN25b2PolygonAndCircleCont act8EvaluateEP10b2ManifoldRK11b2TransformS4_,__ZN16b2PolygonContact8EvaluateEP10 b2ManifoldRK11b2TransformS4_,__ZN23b2ChainAndCircleContact8EvaluateEP10b2Manifol dRK11b2TransformS4_,__ZN24b2ChainAndPolygonContact8EvaluateEP10b2ManifoldRK11b2T ransformS4_,__ZN15b2CircleContact8EvaluateEP10b2ManifoldRK11b2TransformS4_,__ZNK 10__cxxabiv117__class_type_info27has_unambiguous_public_baseEPNS_19__dynamic_cas t_infoEPvi,__ZNK10__cxxabiv120__si_class_type_info27has_unambiguous_public_baseE PNS_19__dynamic_cast_infoEPvi,b11,b11,b11,b11];
20101 20101
20102 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_viiiii: dynCall_viiiii, dynCall_v i: dynCall_vi, dynCall_vii: dynCall_vii, dynCall_ii: dynCall_ii, dynCall_viii: d ynCall_viii, dynCall_v: dynCall_v, dynCall_viid: dynCall_viid, dynCall_viiiiii: dynCall_viiiiii, dynCall_iii: dynCall_iii, dynCall_iiiiii: dynCall_iiiiii, dynCa ll_viiii: dynCall_viiii }; 20102 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_viiiii: dynCall_viiiii, dynCall_v i: dynCall_vi, dynCall_vii: dynCall_vii, dynCall_ii: dynCall_ii, dynCall_viii: d ynCall_viii, dynCall_v: dynCall_v, dynCall_viid: dynCall_viid, dynCall_viiiiii: dynCall_viiiiii, dynCall_iii: dynCall_iii, dynCall_iiiiii: dynCall_iiiiii, dynCa ll_viiii: dynCall_viiii };
20103 }).toString(), 20103 }).toString(),
20104 // EMSCRIPTEN_END_ASM 20104 // EMSCRIPTEN_END_ASM
20105 { "abort": abort, "assert": assert, "asmPrintInt": asmPrintInt, "asmPrintFloat": asmPrintFloat, "min": Math_min, "invoke_iiii": invoke_iiii, "invoke_viiiii": in voke_viiiii, "invoke_vi": invoke_vi, "invoke_vii": invoke_vii, "invoke_ii": invo ke_ii, "invoke_viii": invoke_viii, "invoke_v": invoke_v, "invoke_viid": invoke_v iid, "invoke_viiiiii": invoke_viiiiii, "invoke_iii": invoke_iii, "invoke_iiiiii" : invoke_iiiiii, "invoke_viiii": invoke_viiii, "___cxa_throw": ___cxa_throw, "_e mscripten_run_script": _emscripten_run_script, "_cosf": _cosf, "_send": _send, " __ZSt9terminatev": __ZSt9terminatev, "__reallyNegative": __reallyNegative, "___c xa_is_number_type": ___cxa_is_number_type, "___assert_fail": ___assert_fail, "__ _cxa_allocate_exception": ___cxa_allocate_exception, "___cxa_find_matching_catch ": ___cxa_find_matching_catch, "_fflush": _fflush, "_pwrite": _pwrite, "___setEr rNo": ___setErrNo, "_sbrk": _sbrk, "___cxa_begin_catch": ___cxa_begin_catch, "_s inf": _sinf, "_fileno": _fileno, "___resumeException": ___resumeException, "__ZS t18uncaught_exceptionv": __ZSt18uncaught_exceptionv, "_sysconf": _sysconf, "_clo ck": _clock, "_emscripten_memcpy_big": _emscripten_memcpy_big, "_puts": _puts, " _mkport": _mkport, "_floorf": _floorf, "_sqrtf": _sqrtf, "_write": _write, "_ems cripten_set_main_loop": _emscripten_set_main_loop, "___errno_location": ___errno _location, "__ZNSt9exceptionD2Ev": __ZNSt9exceptionD2Ev, "_printf": _printf, "__ _cxa_does_inherit": ___cxa_does_inherit, "__exit": __exit, "_fputc": _fputc, "_a bort": _abort, "_fwrite": _fwrite, "_time": _time, "_fprintf": _fprintf, "_emscr ipten_cancel_main_loop": _emscripten_cancel_main_loop, "__formatString": __forma tString, "_fputs": _fputs, "_exit": _exit, "___cxa_pure_virtual": ___cxa_pure_vi rtual, "STACKTOP": STACKTOP, "STACK_MAX": STACK_MAX, "tempDoublePtr": tempDouble Ptr, "ABORT": ABORT, "NaN": NaN, "Infinity": Infinity, "__ZTISt9exception": __ZT ISt9exception }, buffer); 20105 { "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_viiiii": invoke _viiiii, "invoke_vi": invoke_vi, "invoke_vii": invoke_vii, "invoke_ii": invoke_i i, "invoke_viii": invoke_viii, "invoke_v": invoke_v, "invoke_viid": invoke_viid, "invoke_viiiiii": invoke_viiiiii, "invoke_iii": invoke_iii, "invoke_iiiiii": in voke_iiiiii, "invoke_viiii": invoke_viiii, "___cxa_throw": ___cxa_throw, "_emscr ipten_run_script": _emscripten_run_script, "_cosf": _cosf, "_send": _send, "__ZS t9terminatev": __ZSt9terminatev, "__reallyNegative": __reallyNegative, "___cxa_i s_number_type": ___cxa_is_number_type, "___assert_fail": ___assert_fail, "___cxa _allocate_exception": ___cxa_allocate_exception, "___cxa_find_matching_catch": _ __cxa_find_matching_catch, "_fflush": _fflush, "_pwrite": _pwrite, "___setErrNo" : ___setErrNo, "_sbrk": _sbrk, "___cxa_begin_catch": ___cxa_begin_catch, "_sinf" : _sinf, "_fileno": _fileno, "___resumeException": ___resumeException, "__ZSt18u ncaught_exceptionv": __ZSt18uncaught_exceptionv, "_sysconf": _sysconf, "_clock": _clock, "_emscripten_memcpy_big": _emscripten_memcpy_big, "_puts": _puts, "_mkp ort": _mkport, "_floorf": _floorf, "_sqrtf": _sqrtf, "_write": _write, "_emscrip ten_set_main_loop": _emscripten_set_main_loop, "___errno_location": ___errno_loc ation, "__ZNSt9exceptionD2Ev": __ZNSt9exceptionD2Ev, "_printf": _printf, "___cxa _does_inherit": ___cxa_does_inherit, "__exit": __exit, "_fputc": _fputc, "_abort ": _abort, "_fwrite": _fwrite, "_time": _time, "_fprintf": _fprintf, "_emscripte n_cancel_main_loop": _emscripten_cancel_main_loop, "__formatString": __formatStr ing, "_fputs": _fputs, "_exit": _exit, "___cxa_pure_virtual": ___cxa_pure_virtua l, "STACKTOP": STACKTOP, "STACK_MAX": STACK_MAX, "tempDoublePtr": tempDoublePtr, "ABORT": ABORT, "NaN": NaN, "Infinity": Infinity, "__ZTISt9exception": __ZTISt9 exception }, buffer);
20106 var _strlen = Module["_strlen"] = asm["_strlen"]; 20106 var _strlen = Module["_strlen"] = asm["_strlen"];
20107 var _free = Module["_free"] = asm["_free"]; 20107 var _free = Module["_free"] = asm["_free"];
20108 var _main = Module["_main"] = asm["_main"]; 20108 var _main = Module["_main"] = asm["_main"];
20109 var _memset = Module["_memset"] = asm["_memset"]; 20109 var _memset = Module["_memset"] = asm["_memset"];
20110 var _malloc = Module["_malloc"] = asm["_malloc"]; 20110 var _malloc = Module["_malloc"] = asm["_malloc"];
20111 var _memcpy = Module["_memcpy"] = asm["_memcpy"]; 20111 var _memcpy = Module["_memcpy"] = asm["_memcpy"];
20112 var runPostSets = Module["runPostSets"] = asm["runPostSets"]; 20112 var runPostSets = Module["runPostSets"] = asm["runPostSets"];
20113 var dynCall_iiii = Module["dynCall_iiii"] = asm["dynCall_iiii"]; 20113 var dynCall_iiii = Module["dynCall_iiii"] = asm["dynCall_iiii"];
20114 var dynCall_viiiii = Module["dynCall_viiiii"] = asm["dynCall_viiiii"]; 20114 var dynCall_viiiii = Module["dynCall_viiiii"] = asm["dynCall_viiiii"];
20115 var dynCall_vi = Module["dynCall_vi"] = asm["dynCall_vi"]; 20115 var dynCall_vi = Module["dynCall_vi"] = asm["dynCall_vi"];
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
20316 } 20316 }
20317 20317
20318 // shouldRunNow refers to calling main(), not run(). 20318 // shouldRunNow refers to calling main(), not run().
20319 var shouldRunNow = true; 20319 var shouldRunNow = true;
20320 if (Module['noInitialRun']) { 20320 if (Module['noInitialRun']) {
20321 shouldRunNow = false; 20321 shouldRunNow = false;
20322 } 20322 }
20323 20323
20324 20324
20325 run([].concat(Module["arguments"])); 20325 run([].concat(Module["arguments"]));
OLDNEW
« no previous file with comments | « test/mjsunit/wasm/asm-wasm-stdlib.js ('k') | test/mjsunit/wasm/embenchen/copy.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698