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 f(a1, a2) {
8  var v7 = a2[0];
9  var v8 = a1[0];
10  a2[0] = 0.3;
11}
12v6 = new Array(1);
13v6[0] = "tagged";
14f(v6, [1]);
15v5 = new Array(1);
16v5[0] = 0.1;
17f(v5, v5);
18v5 = new Array(10);
19f(v5, v5);
20%OptimizeFunctionOnNextCall(f);
21f(v5, v5);
22v5[0];
23