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

Side by Side Diff: src/v8natives.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 | « src/uri.js ('k') | test/cctest/test-heap.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 $delete; 5 var $delete;
6 var $functionSourceString; 6 var $functionSourceString;
7 var $getIterator; 7 var $getIterator;
8 var $getMethod; 8 var $getMethod;
9 var $globalEval; 9 var $globalEval;
10 var $installConstants; 10 var $installConstants;
(...skipping 18 matching lines...) Expand all
29 var $ownPropertyKeys; 29 var $ownPropertyKeys;
30 var $setFunctionName; 30 var $setFunctionName;
31 var $setUpLockedPrototype; 31 var $setUpLockedPrototype;
32 var $toCompletePropertyDescriptor; 32 var $toCompletePropertyDescriptor;
33 var $toNameArray; 33 var $toNameArray;
34 34
35 (function(global, shared, exports) { 35 (function(global, shared, exports) {
36 36
37 %CheckIsBootstrapping(); 37 %CheckIsBootstrapping();
38 38
39 // ----------------------------------------------------------------------------
40 // Imports
41
39 var GlobalArray = global.Array; 42 var GlobalArray = global.Array;
40 var GlobalBoolean = global.Boolean; 43 var GlobalBoolean = global.Boolean;
41 var GlobalFunction = global.Function; 44 var GlobalFunction = global.Function;
42 var GlobalNumber = global.Number; 45 var GlobalNumber = global.Number;
43 var GlobalObject = global.Object; 46 var GlobalObject = global.Object;
47 var InternalArray = shared.InternalArray;
44 48
45 // ---------------------------------------------------------------------------- 49 // ----------------------------------------------------------------------------
46 50
47 // ES6 - 9.2.11 SetFunctionName 51 // ES6 - 9.2.11 SetFunctionName
48 function SetFunctionName(f, name, prefix) { 52 function SetFunctionName(f, name, prefix) {
49 if (IS_SYMBOL(name)) { 53 if (IS_SYMBOL(name)) {
50 name = "[" + %SymbolDescription(name) + "]"; 54 name = "[" + %SymbolDescription(name) + "]";
51 } 55 }
52 if (IS_UNDEFINED(prefix)) { 56 if (IS_UNDEFINED(prefix)) {
53 %FunctionSetName(f, name); 57 %FunctionSetName(f, name);
(...skipping 1904 matching lines...) Expand 10 before | Expand all | Expand 10 after
1958 $objectLookupSetter = ObjectLookupSetter; 1962 $objectLookupSetter = ObjectLookupSetter;
1959 $objectToString = ObjectToString; 1963 $objectToString = ObjectToString;
1960 $overrideFunction = OverrideFunction; 1964 $overrideFunction = OverrideFunction;
1961 $ownPropertyKeys = OwnPropertyKeys; 1965 $ownPropertyKeys = OwnPropertyKeys;
1962 $setFunctionName = SetFunctionName; 1966 $setFunctionName = SetFunctionName;
1963 $setUpLockedPrototype = SetUpLockedPrototype; 1967 $setUpLockedPrototype = SetUpLockedPrototype;
1964 $toCompletePropertyDescriptor = ToCompletePropertyDescriptor; 1968 $toCompletePropertyDescriptor = ToCompletePropertyDescriptor;
1965 $toNameArray = ToNameArray; 1969 $toNameArray = ToNameArray;
1966 1970
1967 }) 1971 })
OLDNEW
« no previous file with comments | « src/uri.js ('k') | test/cctest/test-heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698