blob: 2a69a3996a2ea074948db4ecd70348b441989383 [file] [log] [blame]
Andrew Topef837fa2017-10-04 22:44:25 -07001// 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
7function f(foo) {
8 var g;
9 true ? (g = 0.1) : g |= null;
10 if (null != g) {}
11};
12
Andrew Top63c7ad42019-11-25 16:10:13 -080013%PrepareFunctionForOptimization(f);
Andrew Topef837fa2017-10-04 22:44:25 -070014f(1.4);
15f(1.4);
16%OptimizeFunctionOnNextCall(f);
17f(1.4);