Changeset 252015 in webkit for trunk/Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp
- Timestamp:
- Nov 4, 2019, 2:20:37 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp
r251826 r252015 2117 2117 CodeBlock* baselineCodeBlock = m_ftlState.graph.baselineCodeBlockFor(m_node->origin.semantic); 2118 2118 BytecodeIndex bytecodeIndex = m_node->origin.semantic.bytecodeIndex(); 2119 ArithProfile* arithProfile = baselineCodeBlock->arithProfileForBytecodeIndex(bytecodeIndex);2119 BinaryArithProfile* arithProfile = baselineCodeBlock->binaryArithProfileForBytecodeIndex(bytecodeIndex); 2120 2120 auto repatchingFunction = operationValueAddOptimize; 2121 2121 auto nonRepatchingFunction = operationValueAdd; … … 2138 2138 CodeBlock* baselineCodeBlock = m_ftlState.graph.baselineCodeBlockFor(m_node->origin.semantic); 2139 2139 BytecodeIndex bytecodeIndex = m_node->origin.semantic.bytecodeIndex(); 2140 ArithProfile* arithProfile = baselineCodeBlock->arithProfileForBytecodeIndex(bytecodeIndex);2140 BinaryArithProfile* arithProfile = baselineCodeBlock->binaryArithProfileForBytecodeIndex(bytecodeIndex); 2141 2141 auto repatchingFunction = operationValueSubOptimize; 2142 2142 auto nonRepatchingFunction = operationValueSub; … … 2159 2159 CodeBlock* baselineCodeBlock = m_ftlState.graph.baselineCodeBlockFor(m_node->origin.semantic); 2160 2160 BytecodeIndex bytecodeIndex = m_node->origin.semantic.bytecodeIndex(); 2161 ArithProfile* arithProfile = baselineCodeBlock->arithProfileForBytecodeIndex(bytecodeIndex);2161 BinaryArithProfile* arithProfile = baselineCodeBlock->binaryArithProfileForBytecodeIndex(bytecodeIndex); 2162 2162 auto repatchingFunction = operationValueMulOptimize; 2163 2163 auto nonRepatchingFunction = operationValueMul; … … 2167 2167 template <typename Generator, typename Func1, typename Func2, 2168 2168 typename = std::enable_if_t<std::is_function<typename std::remove_pointer<Func1>::type>::value && std::is_function<typename std::remove_pointer<Func2>::type>::value>> 2169 void compileUnaryMathIC( ArithProfile* arithProfile, Func1 repatchingFunction, Func2 nonRepatchingFunction)2169 void compileUnaryMathIC(UnaryArithProfile* arithProfile, Func1 repatchingFunction, Func2 nonRepatchingFunction) 2170 2170 { 2171 2171 Node* node = m_node; … … 2253 2253 template <typename Generator, typename Func1, typename Func2, 2254 2254 typename = std::enable_if_t<std::is_function<typename std::remove_pointer<Func1>::type>::value && std::is_function<typename std::remove_pointer<Func2>::type>::value>> 2255 void compileBinaryMathIC( ArithProfile* arithProfile, Func1 repatchingFunction, Func2 nonRepatchingFunction)2255 void compileBinaryMathIC(BinaryArithProfile* arithProfile, Func1 repatchingFunction, Func2 nonRepatchingFunction) 2256 2256 { 2257 2257 Node* node = m_node; … … 2422 2422 CodeBlock* baselineCodeBlock = m_ftlState.graph.baselineCodeBlockFor(m_node->origin.semantic); 2423 2423 BytecodeIndex bytecodeIndex = m_node->origin.semantic.bytecodeIndex(); 2424 ArithProfile* arithProfile = baselineCodeBlock->arithProfileForBytecodeIndex(bytecodeIndex);2424 BinaryArithProfile* arithProfile = baselineCodeBlock->binaryArithProfileForBytecodeIndex(bytecodeIndex); 2425 2425 auto repatchingFunction = operationValueSubOptimize; 2426 2426 auto nonRepatchingFunction = operationValueSub; … … 3100 3100 CodeBlock* baselineCodeBlock = m_ftlState.graph.baselineCodeBlockFor(m_node->origin.semantic); 3101 3101 BytecodeIndex bytecodeIndex = m_node->origin.semantic.bytecodeIndex(); 3102 ArithProfile* arithProfile = baselineCodeBlock->arithProfileForBytecodeIndex(bytecodeIndex);3102 UnaryArithProfile* arithProfile = baselineCodeBlock->unaryArithProfileForBytecodeIndex(bytecodeIndex); 3103 3103 auto repatchingFunction = operationArithNegateOptimize; 3104 3104 auto nonRepatchingFunction = operationArithNegate;
Note:
See TracChangeset
for help on using the changeset viewer.