• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// 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: --allow-natives-syntax
6
7function dummy(x) { };
8
9function g() {
10  return g.arguments;
11}
12
13function f(limit) {
14  var i = 0;
15  var o = {};
16  for (; i < limit; i++) {
17    o.y = +o.y;
18    g();
19  }
20}
21
22f(1);
23f(1);
24%OptimizeFunctionOnNextCall(f);
25dummy(f(1));
26dummy(f(2));
27