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