OLD | NEW |
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 --expose-wasm |
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 = Wasm.instantiateModuleFromAsm( __f_8.toString(), {}, {'__f_7': __f
_7}); |
22 __v_5.__f_9(0, 0, 0); | 22 __v_5.__f_9(0, 0, 0); |
23 } | 23 } |
24 __f_5(); | 24 __f_5(); |
OLD | NEW |