OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Flags: --allow-natives-syntax | |
6 | 5 |
7 // Make sure printing different element kinds doesn't crash. | 6 // Make sure printing different element kinds doesn't crash. |
8 | 7 |
9 var array; | 8 var array; |
10 var obj = {}; | 9 var obj = {}; |
11 | 10 |
12 array = []; | 11 array = []; |
13 %DebugPrint(array); | 12 %DebugPrint(array); |
14 | 13 |
15 // FAST_SMI_ELEMENTS | 14 // FAST_SMI_ELEMENTS |
(...skipping 22 matching lines...) Expand all Loading... |
38 %DebugPrint(array); | 37 %DebugPrint(array); |
39 | 38 |
40 // FAST_HOLEY_DOUBLE_ELEMENTS | 39 // FAST_HOLEY_DOUBLE_ELEMENTS |
41 array[100] = 1.2; | 40 array[100] = 1.2; |
42 array[101] = 1.2; | 41 array[101] = 1.2; |
43 %DebugPrint(array); | 42 %DebugPrint(array); |
44 | 43 |
45 // DICTIONARY_ELEMENTS | 44 // DICTIONARY_ELEMENTS |
46 %NormalizeElements(array); | 45 %NormalizeElements(array); |
47 %DebugPrint(array); | 46 %DebugPrint(array); |
OLD | NEW |