blob: 4c202b3a9b22a1e4802788136f69c39174ae0d51 [file] [log] [blame]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001// 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
6
7function f(scale) {
8 var arr = {a: 1.1};
9
10 for (var i = 0; i < 2; i++) {
11 arr[2 * scale] = 0;
12 }
13}
14
15f({});
16f({});
17%OptimizeFunctionOnNextCall(f);
18f(1004);