blob: d5c411d0f11a1b81139c4eaefdecfb169c3b007b [file] [log] [blame]
Ben Murdochda12d292016-06-02 14:46:10 +01001// 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
3// found in the LICENSE file.
4
5// Flags: --allow-natives-syntax
6
7function h(a) {
8 if (!a) return false;
9 print();
10}
11
12function g(a) { return a.length; }
13g('0');
14g('1');
15
16function f() {
17 h(g([]));
18}
19
20f();
21%OptimizeFunctionOnNextCall(f);
22f();