OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 var $arrayConcat; | 5 var $arrayConcat; |
6 var $arrayJoin; | 6 var $arrayJoin; |
7 var $arrayPush; | 7 var $arrayPush; |
8 var $arrayPop; | 8 var $arrayPop; |
9 var $arrayShift; | 9 var $arrayShift; |
10 var $arraySlice; | 10 var $arraySlice; |
11 var $arraySplice; | 11 var $arraySplice; |
12 var $arrayUnshift; | 12 var $arrayUnshift; |
13 var $innerArrayForEach; | 13 var $innerArrayForEach; |
14 var $innerArrayEvery; | 14 var $innerArrayEvery; |
15 | 15 |
16 (function(global, shared, exports) { | 16 (function(global, shared, exports) { |
17 | 17 |
18 "use strict"; | 18 "use strict"; |
19 | 19 |
20 %CheckIsBootstrapping(); | 20 %CheckIsBootstrapping(); |
21 | 21 |
| 22 // ------------------------------------------------------------------- |
| 23 // Imports |
| 24 |
22 var GlobalArray = global.Array; | 25 var GlobalArray = global.Array; |
| 26 var InternalArray = exports.InternalArray; |
| 27 var InternalPackedArray = exports.InternalPackedArray; |
23 | 28 |
24 // ------------------------------------------------------------------- | 29 // ------------------------------------------------------------------- |
25 | 30 |
26 // Global list of arrays visited during toString, toLocaleString and | 31 // Global list of arrays visited during toString, toLocaleString and |
27 // join invocations. | 32 // join invocations. |
28 var visited_arrays = new InternalArray(); | 33 var visited_arrays = new InternalArray(); |
29 | 34 |
30 | 35 |
31 // Gets a sorted array of array keys. Useful for operations on sparse | 36 // Gets a sorted array of array keys. Useful for operations on sparse |
32 // arrays. Dupes have not been removed. | 37 // arrays. Dupes have not been removed. |
(...skipping 1566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1599 $arrayPop = ArrayPop; | 1604 $arrayPop = ArrayPop; |
1600 $arrayShift = ArrayShift; | 1605 $arrayShift = ArrayShift; |
1601 $arraySlice = ArraySlice; | 1606 $arraySlice = ArraySlice; |
1602 $arraySplice = ArraySplice; | 1607 $arraySplice = ArraySplice; |
1603 $arrayUnshift = ArrayUnshift; | 1608 $arrayUnshift = ArrayUnshift; |
1604 | 1609 |
1605 $innerArrayForEach = InnerArrayForEach; | 1610 $innerArrayForEach = InnerArrayForEach; |
1606 $innerArrayEvery = InnerArrayEvery; | 1611 $innerArrayEvery = InnerArrayEvery; |
1607 | 1612 |
1608 }); | 1613 }); |
OLD | NEW |