Andrew Top | ef837fa | 2017-10-04 22:44:25 -0700 | [diff] [blame] | 1 | // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | // Flags: --allow-natives-syntax |
| 6 | |
| 7 | function f(foo) { |
| 8 | var g; |
| 9 | true ? (g = 0.1) : g |= null; |
| 10 | if (null != g) {} |
| 11 | }; |
| 12 | |
Andrew Top | 63c7ad4 | 2019-11-25 16:10:13 -0800 | [diff] [blame] | 13 | %PrepareFunctionForOptimization(f); |
Andrew Top | ef837fa | 2017-10-04 22:44:25 -0700 | [diff] [blame] | 14 | f(1.4); |
| 15 | f(1.4); |
| 16 | %OptimizeFunctionOnNextCall(f); |
| 17 | f(1.4); |