blob: 0315c436344b08abd8ecc25d915c9fb9f93f66c5 [file] [log] [blame]
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001// Copyright 2015 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: --harmony-do-expressions --allow-natives-syntax
6
7function func1() {
8 for (var i = 0; i < 64; ++i) func2();
9}
10
11%OptimizeFunctionOnNextCall(func1);
12func1();
13
14function func2() {
15 var v = do {};
16}