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

Side by Side Diff: src/array.js

Issue 1127983003: Use function wrapper argument to expose internal arrays to native scripts. (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 | src/bootstrapper.cc » ('j') | src/bootstrapper.cc » ('J')
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;
11 var $arraySplice; 11 var $arraySplice;
12 var $arrayUnshift; 12 var $arrayUnshift;
13 13
14 (function(global, shared, exports) { 14 (function(global, shared, exports) {
15 15
16 "use strict"; 16 "use strict";
17 17
18 %CheckIsBootstrapping(); 18 %CheckIsBootstrapping();
19 19
20 // -------------------------------------------------------------------
21 // Imports
22
20 var GlobalArray = global.Array; 23 var GlobalArray = global.Array;
24 var InternalArray = exports.InternalArray;
25 var InternalPackedArray = exports.InternalPackedArray;
21 26
22 // ------------------------------------------------------------------- 27 // -------------------------------------------------------------------
23 28
24 // Global list of arrays visited during toString, toLocaleString and 29 // Global list of arrays visited during toString, toLocaleString and
25 // join invocations. 30 // join invocations.
26 var visited_arrays = new InternalArray(); 31 var visited_arrays = new InternalArray();
27 32
28 33
29 // Gets a sorted array of array keys. Useful for operations on sparse 34 // Gets a sorted array of array keys. Useful for operations on sparse
30 // arrays. Dupes have not been removed. 35 // arrays. Dupes have not been removed.
(...skipping 1558 matching lines...) Expand 10 before | Expand all | Expand 10 after
1589 $arrayConcat = ArrayConcatJS; 1594 $arrayConcat = ArrayConcatJS;
1590 $arrayJoin = ArrayJoin; 1595 $arrayJoin = ArrayJoin;
1591 $arrayPush = ArrayPush; 1596 $arrayPush = ArrayPush;
1592 $arrayPop = ArrayPop; 1597 $arrayPop = ArrayPop;
1593 $arrayShift = ArrayShift; 1598 $arrayShift = ArrayShift;
1594 $arraySlice = ArraySlice; 1599 $arraySlice = ArraySlice;
1595 $arraySplice = ArraySplice; 1600 $arraySplice = ArraySplice;
1596 $arrayUnshift = ArrayUnshift; 1601 $arrayUnshift = ArrayUnshift;
1597 1602
1598 }) 1603 })
OLDNEW
« no previous file with comments | « no previous file | src/bootstrapper.cc » ('j') | src/bootstrapper.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698