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

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

Powered by Google App Engine
This is Rietveld 408576698