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 // |
| 5 // Flags: --gc-global --stress-runs=8 |
4 | 6 |
5 // Flags: --allow-natives-syntax | 7 function __f_3(x, expected) { |
6 | 8 var __v_3 = []; |
7 function foo() { | 9 __v_3.length = x; |
8 return [] | 0 && values[0] || false; | 10 __f_3(true, 1); |
9 } | 11 } |
10 | 12 |
11 %OptimizeFunctionOnNextCall(foo); | |
12 try { | 13 try { |
13 foo(); | 14 __f_3(2147483648, 2147483648); |
14 } catch (e) {} | 15 } catch (e) {} |
OLD | NEW |