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

Side by Side Diff: src/array.js

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