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

Side by Side Diff: test/mjsunit/wasm/asm-wasm-deopt.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.js ('k') | test/mjsunit/wasm/asm-wasm-heap.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 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Flags: --expose-wasm 5 // Flags: --expose-wasm
6 // Flags: --allow-natives-syntax 6 // Flags: --allow-natives-syntax
7 7
8 (function TestDeoptimizeArgMismatch() { 8 (function TestDeoptimizeArgMismatch() {
9 function deopt() { 9 function deopt() {
10 %DeoptimizeFunction(test); 10 %DeoptimizeFunction(test);
11 } 11 }
12 function Module(global, env, buffer) { 12 function Module(global, env, buffer) {
13 "use asm"; 13 "use asm";
14 var deopt = env.deopt; 14 var deopt = env.deopt;
15 function _main(i4, i5) { 15 function _main(i4, i5) {
16 i4 = i4 | 0; 16 i4 = i4 | 0;
17 i5 = i5 | 0; 17 i5 = i5 | 0;
18 deopt(); 18 deopt();
19 return i5 | 0; 19 return i5 | 0;
20 } 20 }
21 return {'_main': _main} 21 return {'_main': _main}
22 } 22 }
23 function test() { 23 function test() {
24 var wasm = Wasm.instantiateModuleFromAsm( 24 var wasm = Wasm.instantiateModuleFromAsm(
25 Module.toString(), {'deopt': deopt}); 25 Module.toString(), null, {'deopt': deopt});
26 wasm._main(0, 0, 0); 26 wasm._main(0, 0, 0);
27 } 27 }
28 test(); 28 test();
29 })(); 29 })();
OLDNEW
« no previous file with comments | « test/mjsunit/wasm/asm-wasm.js ('k') | test/mjsunit/wasm/asm-wasm-heap.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698