Ben Murdoch | da12d29 | 2016-06-02 14:46:10 +0100 | [diff] [blame] | 1 | // 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 | |
| 7 | function __f_2(b, value) { |
| 8 | b[1] = value; |
| 9 | } |
| 10 | function __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(); |