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; | |
6 var $arrayPush; | |
7 var $arrayPop; | |
8 var $arrayShift; | |
9 var $arraySlice; | |
10 var $arraySplice; | |
11 var $arrayUnshift; | |
12 | |
13 (function(global, utils) { | 5 (function(global, utils) { |
14 | 6 |
15 "use strict"; | 7 "use strict"; |
16 | 8 |
17 %CheckIsBootstrapping(); | 9 %CheckIsBootstrapping(); |
18 | 10 |
19 // ------------------------------------------------------------------- | 11 // ------------------------------------------------------------------- |
20 // Imports | 12 // Imports |
21 | 13 |
22 var Delete; | 14 var Delete; |
(...skipping 1665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1688 "push", getFunction("push", ArrayPush), | 1680 "push", getFunction("push", ArrayPush), |
1689 "shift", getFunction("shift", ArrayShift) | 1681 "shift", getFunction("shift", ArrayShift) |
1690 ]); | 1682 ]); |
1691 | 1683 |
1692 // ------------------------------------------------------------------- | 1684 // ------------------------------------------------------------------- |
1693 // Exports | 1685 // Exports |
1694 | 1686 |
1695 utils.Export(function(to) { | 1687 utils.Export(function(to) { |
1696 to.ArrayIndexOf = ArrayIndexOf; | 1688 to.ArrayIndexOf = ArrayIndexOf; |
1697 to.ArrayJoin = ArrayJoin; | 1689 to.ArrayJoin = ArrayJoin; |
| 1690 to.ArrayPush = ArrayPush; |
1698 to.ArrayToString = ArrayToString; | 1691 to.ArrayToString = ArrayToString; |
1699 to.InnerArrayEvery = InnerArrayEvery; | 1692 to.InnerArrayEvery = InnerArrayEvery; |
1700 to.InnerArrayFilter = InnerArrayFilter; | 1693 to.InnerArrayFilter = InnerArrayFilter; |
1701 to.InnerArrayForEach = InnerArrayForEach; | 1694 to.InnerArrayForEach = InnerArrayForEach; |
1702 to.InnerArrayIndexOf = InnerArrayIndexOf; | 1695 to.InnerArrayIndexOf = InnerArrayIndexOf; |
1703 to.InnerArrayJoin = InnerArrayJoin; | 1696 to.InnerArrayJoin = InnerArrayJoin; |
1704 to.InnerArrayLastIndexOf = InnerArrayLastIndexOf; | 1697 to.InnerArrayLastIndexOf = InnerArrayLastIndexOf; |
1705 to.InnerArrayMap = InnerArrayMap; | 1698 to.InnerArrayMap = InnerArrayMap; |
1706 to.InnerArrayReduce = InnerArrayReduce; | 1699 to.InnerArrayReduce = InnerArrayReduce; |
1707 to.InnerArrayReduceRight = InnerArrayReduceRight; | 1700 to.InnerArrayReduceRight = InnerArrayReduceRight; |
1708 to.InnerArraySome = InnerArraySome; | 1701 to.InnerArraySome = InnerArraySome; |
1709 to.InnerArraySort = InnerArraySort; | 1702 to.InnerArraySort = InnerArraySort; |
1710 to.InnerArrayToLocaleString = InnerArrayToLocaleString; | 1703 to.InnerArrayToLocaleString = InnerArrayToLocaleString; |
1711 to.PackedArrayReverse = PackedArrayReverse; | 1704 to.PackedArrayReverse = PackedArrayReverse; |
1712 }); | 1705 }); |
1713 | 1706 |
1714 $arrayConcat = ArrayConcatJS; | 1707 %InstallToContext([ |
1715 $arrayPush = ArrayPush; | 1708 "array_concat", ArrayConcatJS, |
1716 $arrayPop = ArrayPop; | 1709 "array_pop", ArrayPop, |
1717 $arrayShift = ArrayShift; | 1710 "array_push", ArrayPush, |
1718 $arraySlice = ArraySlice; | 1711 "array_shift", ArrayShift, |
1719 $arraySplice = ArraySplice; | 1712 "array_splice", ArraySplice, |
1720 $arrayUnshift = ArrayUnshift; | 1713 "array_slice", ArraySlice, |
| 1714 "array_unshift", ArrayUnshift, |
| 1715 ]); |
1721 | 1716 |
1722 }); | 1717 }); |
OLD | NEW |