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 1735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1746 // Harmony Number constructor additions | 1746 // Harmony Number constructor additions |
1747 InstallFunctions(GlobalNumber, DONT_ENUM, [ | 1747 InstallFunctions(GlobalNumber, DONT_ENUM, [ |
1748 "isFinite", NumberIsFinite, | 1748 "isFinite", NumberIsFinite, |
1749 "isInteger", NumberIsInteger, | 1749 "isInteger", NumberIsInteger, |
1750 "isNaN", NumberIsNaN, | 1750 "isNaN", NumberIsNaN, |
1751 "isSafeInteger", NumberIsSafeInteger, | 1751 "isSafeInteger", NumberIsSafeInteger, |
1752 "parseInt", GlobalParseInt, | 1752 "parseInt", GlobalParseInt, |
1753 "parseFloat", GlobalParseFloat | 1753 "parseFloat", GlobalParseFloat |
1754 ]); | 1754 ]); |
1755 | 1755 |
1756 %SetInlineBuiltinFlag(NumberIsNaN); | 1756 %SetForceInlineFlag(NumberIsNaN); |
1757 | 1757 |
1758 | 1758 |
1759 // ---------------------------------------------------------------------------- | 1759 // ---------------------------------------------------------------------------- |
1760 // Function | 1760 // Function |
1761 | 1761 |
1762 function NativeCodeFunctionSourceString(func) { | 1762 function NativeCodeFunctionSourceString(func) { |
1763 var name = %FunctionGetName(func); | 1763 var name = %FunctionGetName(func); |
1764 if (name) { | 1764 if (name) { |
1765 // Mimic what KJS does. | 1765 // Mimic what KJS does. |
1766 return 'function ' + name + '() { [native code] }'; | 1766 return 'function ' + name + '() { [native code] }'; |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1962 $objectLookupSetter = ObjectLookupSetter; | 1962 $objectLookupSetter = ObjectLookupSetter; |
1963 $objectToString = ObjectToString; | 1963 $objectToString = ObjectToString; |
1964 $overrideFunction = OverrideFunction; | 1964 $overrideFunction = OverrideFunction; |
1965 $ownPropertyKeys = OwnPropertyKeys; | 1965 $ownPropertyKeys = OwnPropertyKeys; |
1966 $setFunctionName = SetFunctionName; | 1966 $setFunctionName = SetFunctionName; |
1967 $setUpLockedPrototype = SetUpLockedPrototype; | 1967 $setUpLockedPrototype = SetUpLockedPrototype; |
1968 $toCompletePropertyDescriptor = ToCompletePropertyDescriptor; | 1968 $toCompletePropertyDescriptor = ToCompletePropertyDescriptor; |
1969 $toNameArray = ToNameArray; | 1969 $toNameArray = ToNameArray; |
1970 | 1970 |
1971 }) | 1971 }) |
OLD | NEW |