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 | |
25 var GlobalArray = global.Array; | 22 var GlobalArray = global.Array; |
26 var InternalArray = exports.InternalArray; | |
27 var InternalPackedArray = exports.InternalPackedArray; | |
28 | 23 |
29 // ------------------------------------------------------------------- | 24 // ------------------------------------------------------------------- |
30 | 25 |
31 // Global list of arrays visited during toString, toLocaleString and | 26 // Global list of arrays visited during toString, toLocaleString and |
32 // join invocations. | 27 // join invocations. |
33 var visited_arrays = new InternalArray(); | 28 var visited_arrays = new InternalArray(); |
34 | 29 |
35 | 30 |
36 // Gets a sorted array of array keys. Useful for operations on sparse | 31 // Gets a sorted array of array keys. Useful for operations on sparse |
37 // arrays. Dupes have not been removed. | 32 // arrays. Dupes have not been removed. |
(...skipping 1566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1604 $arrayPop = ArrayPop; | 1599 $arrayPop = ArrayPop; |
1605 $arrayShift = ArrayShift; | 1600 $arrayShift = ArrayShift; |
1606 $arraySlice = ArraySlice; | 1601 $arraySlice = ArraySlice; |
1607 $arraySplice = ArraySplice; | 1602 $arraySplice = ArraySplice; |
1608 $arrayUnshift = ArrayUnshift; | 1603 $arrayUnshift = ArrayUnshift; |
1609 | 1604 |
1610 $innerArrayForEach = InnerArrayForEach; | 1605 $innerArrayForEach = InnerArrayForEach; |
1611 $innerArrayEvery = InnerArrayEvery; | 1606 $innerArrayEvery = InnerArrayEvery; |
1612 | 1607 |
1613 }); | 1608 }); |
OLD | NEW |