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

Side by Side Diff: test/mjsunit/regress/regress-599719.js

Issue 2264913002: [wasm] asm.js - Remove Wasm.instantiateModuleFromAsm, use asm.js directly. (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/regress/regress-599717.js ('k') | test/mjsunit/regress/regress-599825.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: --allow-natives-syntax --expose-wasm 5 // Flags: --allow-natives-syntax --validate-asm
6 6
7 function __f_7() { 7 function __f_7() {
8 %DeoptimizeFunction(__f_5); 8 %DeoptimizeFunction(__f_5);
9 } 9 }
10 function __f_8(global, env) { 10 function __f_8(global, env) {
11 "use asm"; 11 "use asm";
12 var __f_7 = env.__f_7; 12 var __f_7 = env.__f_7;
13 function __f_9(i4, i5) { 13 function __f_9(i4, i5) {
14 i4 = i4 | 0; 14 i4 = i4 | 0;
15 i5 = i5 | 0; 15 i5 = i5 | 0;
16 __f_7(); 16 __f_7();
17 } 17 }
18 return {'__f_9': __f_9} 18 return {'__f_9': __f_9}
19 } 19 }
20 function __f_5() { 20 function __f_5() {
21 var __v_5 = Wasm.instantiateModuleFromAsm( __f_8.toString(), {}, {'__f_7': __f _7}); 21 var __v_5 = __f_8({}, {'__f_7': __f_7});
22 assertTrue(%IsAsmWasmCode(__f_8));
22 __v_5.__f_9(0, 0, 0); 23 __v_5.__f_9(0, 0, 0);
23 } 24 }
24 __f_5(); 25 __f_5();
OLDNEW
« no previous file with comments | « test/mjsunit/regress/regress-599717.js ('k') | test/mjsunit/regress/regress-599825.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698