Ignore:
Timestamp:
Nov 4, 2019, 3:47:07 PM (6 years ago)
Author:
Truitt Savell
Message:

Unreviewed, rolling out r252015.

Broke the Windows build

Reverted changeset:

"Split ArithProfile into a Unary and a Binary version"
https://bugs.webkit.org/show_bug.cgi?id=202832
https://trac.webkit.org/changeset/252015

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp

    r252015 r252021  
    21172117        CodeBlock* baselineCodeBlock = m_ftlState.graph.baselineCodeBlockFor(m_node->origin.semantic);
    21182118        BytecodeIndex bytecodeIndex = m_node->origin.semantic.bytecodeIndex();
    2119         BinaryArithProfile* arithProfile = baselineCodeBlock->binaryArithProfileForBytecodeIndex(bytecodeIndex);
     2119        ArithProfile* arithProfile = baselineCodeBlock->arithProfileForBytecodeIndex(bytecodeIndex);
    21202120        auto repatchingFunction = operationValueAddOptimize;
    21212121        auto nonRepatchingFunction = operationValueAdd;
     
    21382138        CodeBlock* baselineCodeBlock = m_ftlState.graph.baselineCodeBlockFor(m_node->origin.semantic);
    21392139        BytecodeIndex bytecodeIndex = m_node->origin.semantic.bytecodeIndex();
    2140         BinaryArithProfile* arithProfile = baselineCodeBlock->binaryArithProfileForBytecodeIndex(bytecodeIndex);
     2140        ArithProfile* arithProfile = baselineCodeBlock->arithProfileForBytecodeIndex(bytecodeIndex);
    21412141        auto repatchingFunction = operationValueSubOptimize;
    21422142        auto nonRepatchingFunction = operationValueSub;
     
    21592159        CodeBlock* baselineCodeBlock = m_ftlState.graph.baselineCodeBlockFor(m_node->origin.semantic);
    21602160        BytecodeIndex bytecodeIndex = m_node->origin.semantic.bytecodeIndex();
    2161         BinaryArithProfile* arithProfile = baselineCodeBlock->binaryArithProfileForBytecodeIndex(bytecodeIndex);
     2161        ArithProfile* arithProfile = baselineCodeBlock->arithProfileForBytecodeIndex(bytecodeIndex);
    21622162        auto repatchingFunction = operationValueMulOptimize;
    21632163        auto nonRepatchingFunction = operationValueMul;
     
    21672167    template <typename Generator, typename Func1, typename Func2,
    21682168        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(UnaryArithProfile* arithProfile, Func1 repatchingFunction, Func2 nonRepatchingFunction)
     2169    void compileUnaryMathIC(ArithProfile* arithProfile, Func1 repatchingFunction, Func2 nonRepatchingFunction)
    21702170    {
    21712171        Node* node = m_node;
     
    22532253    template <typename Generator, typename Func1, typename Func2,
    22542254        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(BinaryArithProfile* arithProfile, Func1 repatchingFunction, Func2 nonRepatchingFunction)
     2255    void compileBinaryMathIC(ArithProfile* arithProfile, Func1 repatchingFunction, Func2 nonRepatchingFunction)
    22562256    {
    22572257        Node* node = m_node;
     
    24222422            CodeBlock* baselineCodeBlock = m_ftlState.graph.baselineCodeBlockFor(m_node->origin.semantic);
    24232423            BytecodeIndex bytecodeIndex = m_node->origin.semantic.bytecodeIndex();
    2424             BinaryArithProfile* arithProfile = baselineCodeBlock->binaryArithProfileForBytecodeIndex(bytecodeIndex);
     2424            ArithProfile* arithProfile = baselineCodeBlock->arithProfileForBytecodeIndex(bytecodeIndex);
    24252425            auto repatchingFunction = operationValueSubOptimize;
    24262426            auto nonRepatchingFunction = operationValueSub;
     
    31003100        CodeBlock* baselineCodeBlock = m_ftlState.graph.baselineCodeBlockFor(m_node->origin.semantic);
    31013101        BytecodeIndex bytecodeIndex = m_node->origin.semantic.bytecodeIndex();
    3102         UnaryArithProfile* arithProfile = baselineCodeBlock->unaryArithProfileForBytecodeIndex(bytecodeIndex);
     3102        ArithProfile* arithProfile = baselineCodeBlock->arithProfileForBytecodeIndex(bytecodeIndex);
    31033103        auto repatchingFunction = operationArithNegateOptimize;
    31043104        auto nonRepatchingFunction = operationArithNegate;
Note: See TracChangeset for help on using the changeset viewer.