blob: 7bf8e83d1e57f6698a8913d11a29c46f11e6b129 [file] [log] [blame]
Ben Murdochda12d292016-06-02 14:46:10 +01001// Copyright 2016 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: --no-inline-new
6
7function __f_2(b, value) {
8 b[1] = value;
9}
10function __f_9() {
11 var arr = [1.5, 0, 0];
12 // Call with a double, so the expected element type is double.
13 __f_2(1.5);
14 // Call with an object, which triggers transition from FAST_double
15 // to Object for the elements type.
16 __f_2(arr);
17}
18__f_9();