blob: 88d5388e6ee16e0ab832df39bce81c22a2b049f1 [file] [log] [blame]
Emily Bernierd0a1eb72015-03-24 16:35:39 -04001// 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 --no-fold-constants
6
7function foo(x, y) {
8 return Math.floor(x / y);
9}
10
11function bar(x, y) {
12 return foo(x + 1, y + 1);
13}
14
15function baz() {
16 bar(64, 2);
17}
18
19baz();
20baz();
21%OptimizeFunctionOnNextCall(baz);
22baz();