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; |
(...skipping 1561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1572 | 1572 |
1573 // The internal Array prototype doesn't need to be fancy, since it's never | 1573 // The internal Array prototype doesn't need to be fancy, since it's never |
1574 // exposed to user code. | 1574 // exposed to user code. |
1575 // Adding only the functions that are actually used. | 1575 // Adding only the functions that are actually used. |
1576 SetUpLockedPrototype(InternalArray, GlobalArray(), [ | 1576 SetUpLockedPrototype(InternalArray, GlobalArray(), [ |
1577 "concat", getFunction("concat", ArrayConcatJS), | 1577 "concat", getFunction("concat", ArrayConcatJS), |
1578 "indexOf", getFunction("indexOf", ArrayIndexOf), | 1578 "indexOf", getFunction("indexOf", ArrayIndexOf), |
1579 "join", getFunction("join", ArrayJoin), | 1579 "join", getFunction("join", ArrayJoin), |
1580 "pop", getFunction("pop", ArrayPop), | 1580 "pop", getFunction("pop", ArrayPop), |
1581 "push", getFunction("push", ArrayPush), | 1581 "push", getFunction("push", ArrayPush), |
| 1582 "shift", getFunction("shift", ArrayShift), |
1582 "splice", getFunction("splice", ArraySplice) | 1583 "splice", getFunction("splice", ArraySplice) |
1583 ]); | 1584 ]); |
1584 | 1585 |
1585 SetUpLockedPrototype(InternalPackedArray, GlobalArray(), [ | 1586 SetUpLockedPrototype(InternalPackedArray, GlobalArray(), [ |
1586 "join", getFunction("join", ArrayJoin), | 1587 "join", getFunction("join", ArrayJoin), |
1587 "pop", getFunction("pop", ArrayPop), | 1588 "pop", getFunction("pop", ArrayPop), |
1588 "push", getFunction("push", ArrayPush) | 1589 "push", getFunction("push", ArrayPush), |
| 1590 "shift", getFunction("shift", ArrayShift) |
1589 ]); | 1591 ]); |
1590 | 1592 |
1591 $arrayConcat = ArrayConcatJS; | 1593 $arrayConcat = ArrayConcatJS; |
1592 $arrayJoin = ArrayJoin; | 1594 $arrayJoin = ArrayJoin; |
1593 $arrayPush = ArrayPush; | 1595 $arrayPush = ArrayPush; |
1594 $arrayPop = ArrayPop; | 1596 $arrayPop = ArrayPop; |
1595 $arrayShift = ArrayShift; | 1597 $arrayShift = ArrayShift; |
1596 $arraySlice = ArraySlice; | 1598 $arraySlice = ArraySlice; |
1597 $arraySplice = ArraySplice; | 1599 $arraySplice = ArraySplice; |
1598 $arrayUnshift = ArrayUnshift; | 1600 $arrayUnshift = ArrayUnshift; |
1599 | 1601 |
1600 })(); | 1602 })(); |
OLD | NEW |