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

Side by Side Diff: src/v8natives.js

Issue 1140743004: Generalize builtins inlining flag to allow forced inlining of any function (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix comment 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/third_party/fdlibm/fdlibm.js ('k') | test/cctest/compiler/function-tester.h » ('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 1735 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 })
OLDNEW
« no previous file with comments | « src/third_party/fdlibm/fdlibm.js ('k') | test/cctest/compiler/function-tester.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698