OLD | NEW |
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 Loading... |
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 | |
42 var GlobalArray = global.Array; | 39 var GlobalArray = global.Array; |
43 var GlobalBoolean = global.Boolean; | 40 var GlobalBoolean = global.Boolean; |
44 var GlobalFunction = global.Function; | 41 var GlobalFunction = global.Function; |
45 var GlobalNumber = global.Number; | 42 var GlobalNumber = global.Number; |
46 var GlobalObject = global.Object; | 43 var GlobalObject = global.Object; |
47 var InternalArray = shared.InternalArray; | |
48 | 44 |
49 // ---------------------------------------------------------------------------- | 45 // ---------------------------------------------------------------------------- |
50 | 46 |
51 // ES6 - 9.2.11 SetFunctionName | 47 // ES6 - 9.2.11 SetFunctionName |
52 function SetFunctionName(f, name, prefix) { | 48 function SetFunctionName(f, name, prefix) { |
53 if (IS_SYMBOL(name)) { | 49 if (IS_SYMBOL(name)) { |
54 name = "[" + %SymbolDescription(name) + "]"; | 50 name = "[" + %SymbolDescription(name) + "]"; |
55 } | 51 } |
56 if (IS_UNDEFINED(prefix)) { | 52 if (IS_UNDEFINED(prefix)) { |
57 %FunctionSetName(f, name); | 53 %FunctionSetName(f, name); |
(...skipping 1904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1962 $objectLookupSetter = ObjectLookupSetter; | 1958 $objectLookupSetter = ObjectLookupSetter; |
1963 $objectToString = ObjectToString; | 1959 $objectToString = ObjectToString; |
1964 $overrideFunction = OverrideFunction; | 1960 $overrideFunction = OverrideFunction; |
1965 $ownPropertyKeys = OwnPropertyKeys; | 1961 $ownPropertyKeys = OwnPropertyKeys; |
1966 $setFunctionName = SetFunctionName; | 1962 $setFunctionName = SetFunctionName; |
1967 $setUpLockedPrototype = SetUpLockedPrototype; | 1963 $setUpLockedPrototype = SetUpLockedPrototype; |
1968 $toCompletePropertyDescriptor = ToCompletePropertyDescriptor; | 1964 $toCompletePropertyDescriptor = ToCompletePropertyDescriptor; |
1969 $toNameArray = ToNameArray; | 1965 $toNameArray = ToNameArray; |
1970 | 1966 |
1971 }) | 1967 }) |
OLD | NEW |