Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: src/array.js

Issue 1117713002: Add shift to InternalArray and InternalPackedArray (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 })();
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698