Changeset 168178 in webkit for trunk/Source/JavaScriptCore/dfg/DFGCapabilities.cpp
- Timestamp:
- May 2, 2014, 11:52:10 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGCapabilities.cpp
r164835 r168178 31 31 #include "CodeBlock.h" 32 32 #include "DFGCommon.h" 33 #include "DFGFunctionWhitelist.h" 33 34 #include "Interpreter.h" 34 35 #include "JSCInlines.h" … … 41 42 return Options::useDFGJIT() 42 43 && MacroAssembler::supportsFloatingPoint() 43 && Options::bytecodeRangeToDFGCompile().isInRange(codeBlock->instructionCount()); 44 && Options::bytecodeRangeToDFGCompile().isInRange(codeBlock->instructionCount()) 45 && FunctionWhitelist::ensureGlobalWhitelist().contains(codeBlock); 44 46 } 45 47 … … 67 69 bool mightInlineFunctionForCall(CodeBlock* codeBlock) 68 70 { 69 return isSupported(codeBlock) 70 && codeBlock->instructionCount() <= Options::maximumFunctionForCallInlineCandidateInstructionCount() 71 return codeBlock->instructionCount() <= Options::maximumFunctionForCallInlineCandidateInstructionCount() 71 72 && !codeBlock->ownerExecutable()->needsActivation() 72 73 && codeBlock->ownerExecutable()->isInliningCandidate(); … … 74 75 bool mightInlineFunctionForClosureCall(CodeBlock* codeBlock) 75 76 { 76 return isSupported(codeBlock) 77 && codeBlock->instructionCount() <= Options::maximumFunctionForClosureCallInlineCandidateInstructionCount() 77 return codeBlock->instructionCount() <= Options::maximumFunctionForClosureCallInlineCandidateInstructionCount() 78 78 && !codeBlock->ownerExecutable()->needsActivation() 79 79 && codeBlock->ownerExecutable()->isInliningCandidate(); … … 81 81 bool mightInlineFunctionForConstruct(CodeBlock* codeBlock) 82 82 { 83 return isSupported(codeBlock) 84 && codeBlock->instructionCount() <= Options::maximumFunctionForConstructInlineCandidateInstructionCount() 83 return codeBlock->instructionCount() <= Options::maximumFunctionForConstructInlineCandidateInstructionCount() 85 84 && !codeBlock->ownerExecutable()->needsActivation() 86 85 && codeBlock->ownerExecutable()->isInliningCandidate();
Note:
See TracChangeset
for help on using the changeset viewer.