Changeset 244811 in webkit for trunk/Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp
- Timestamp:
- Apr 30, 2019, 4:37:27 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp
r244764 r244811 1560 1560 1561 1561 // It might be possible to inline. 1562 return codeBlock-> instructionCount();1562 return codeBlock->bytecodeCost(); 1563 1563 } 1564 1564 … … 1905 1905 unsigned ByteCodeParser::getInliningBalance(const CallLinkStatus& callLinkStatus, CodeSpecializationKind specializationKind) 1906 1906 { 1907 unsigned inliningBalance = Options::maximumFunctionForCallInlineCandidate InstructionCount();1907 unsigned inliningBalance = Options::maximumFunctionForCallInlineCandidateBytecodeCost(); 1908 1908 if (specializationKind == CodeForConstruct) 1909 inliningBalance = std::min(inliningBalance, Options::maximumFunctionForConstructInlineCandidate InstructionCount());1909 inliningBalance = std::min(inliningBalance, Options::maximumFunctionForConstructInlineCandidateBytecoodeCost()); 1910 1910 if (callLinkStatus.isClosureCall()) 1911 inliningBalance = std::min(inliningBalance, Options::maximumFunctionForClosureCallInlineCandidate InstructionCount());1911 inliningBalance = std::min(inliningBalance, Options::maximumFunctionForClosureCallInlineCandidateBytecodeCost()); 1912 1912 return inliningBalance; 1913 1913 }
Note:
See TracChangeset
for help on using the changeset viewer.