Ignore:
Timestamp:
Jun 8, 2012, 1:02:57 PM (13 years ago)
Author:
[email protected]
Message:

PredictedType should be called SpeculatedType
https://bugs.webkit.org/show_bug.cgi?id=88477

Unreviewed, fix a renaming goof from http://trac.webkit.org/changeset/119660.
I accidentally renamed ByteCodeParser::getPrediction to
ByteCodeParser::getSpeculation. That was not the intent. This changes it
back.

  • dfg/DFGByteCodeParser.cpp:

(JSC::DFG::ByteCodeParser::addCall):
(JSC::DFG::ByteCodeParser::getPredictionWithoutOSRExit):
(JSC::DFG::ByteCodeParser::getPrediction):
(JSC::DFG::ByteCodeParser::handleCall):
(JSC::DFG::ByteCodeParser::parseBlock):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp

    r119779 r119858  
    732732        if (interpreter->getOpcodeID(putInstruction->u.opcode) == op_call_put_result) {
    733733            m_currentProfilingIndex = m_currentIndex + OPCODE_LENGTH(op_call);
    734             prediction = getSpeculation();
     734            prediction = getPrediction();
    735735        }
    736736       
     
    751751    }
    752752   
    753     SpeculatedType getSpeculationWithoutOSRExit(NodeIndex nodeIndex, unsigned bytecodeIndex)
     753    SpeculatedType getPredictionWithoutOSRExit(NodeIndex nodeIndex, unsigned bytecodeIndex)
    754754    {
    755755        UNUSED_PARAM(nodeIndex);
     
    763763    }
    764764
    765     SpeculatedType getSpeculation(NodeIndex nodeIndex, unsigned bytecodeIndex)
    766     {
    767         SpeculatedType prediction = getSpeculationWithoutOSRExit(nodeIndex, bytecodeIndex);
     765    SpeculatedType getPrediction(NodeIndex nodeIndex, unsigned bytecodeIndex)
     766    {
     767        SpeculatedType prediction = getPredictionWithoutOSRExit(nodeIndex, bytecodeIndex);
    768768       
    769769        if (prediction == SpecNone) {
     
    776776    }
    777777   
    778     SpeculatedType getSpeculationWithoutOSRExit()
    779     {
    780         return getSpeculationWithoutOSRExit(m_graph.size(), m_currentProfilingIndex);
    781     }
    782    
    783     SpeculatedType getSpeculation()
    784     {
    785         return getSpeculation(m_graph.size(), m_currentProfilingIndex);
     778    SpeculatedType getPredictionWithoutOSRExit()
     779    {
     780        return getPredictionWithoutOSRExit(m_graph.size(), m_currentProfilingIndex);
     781    }
     782   
     783    SpeculatedType getPrediction()
     784    {
     785        return getPrediction(m_graph.size(), m_currentProfilingIndex);
    786786    }
    787787
     
    11561156            usesResult = true;
    11571157            m_currentProfilingIndex = nextOffset;
    1158             prediction = getSpeculation();
     1158            prediction = getPrediction();
    11591159            nextOffset += OPCODE_LENGTH(op_call_put_result);
    11601160        }
     
    20422042
    20432043        case op_get_by_val: {
    2044             SpeculatedType prediction = getSpeculation();
     2044            SpeculatedType prediction = getPrediction();
    20452045           
    20462046            NodeIndex base = get(currentInstruction[2].u.operand);
     
    20672067            Instruction* getInstruction = currentInstruction + OPCODE_LENGTH(op_method_check);
    20682068           
    2069             SpeculatedType prediction = getSpeculation();
     2069            SpeculatedType prediction = getPrediction();
    20702070           
    20712071            ASSERT(interpreter->getOpcodeID(getInstruction->u.opcode) == op_get_by_id);
     
    21032103        }
    21042104        case op_get_scoped_var: {
    2105             SpeculatedType prediction = getSpeculation();
     2105            SpeculatedType prediction = getPrediction();
    21062106            int dst = currentInstruction[1].u.operand;
    21072107            int slot = currentInstruction[2].u.operand;
     
    21212121        }
    21222122        case op_get_by_id: {
    2123             SpeculatedType prediction = getSpeculationWithoutOSRExit();
     2123            SpeculatedType prediction = getPredictionWithoutOSRExit();
    21242124           
    21252125            NodeIndex base = get(currentInstruction[2].u.operand);
     
    22382238
    22392239        case op_get_global_var: {
    2240             SpeculatedType prediction = getSpeculation();
     2240            SpeculatedType prediction = getPrediction();
    22412241           
    22422242            NodeIndex getGlobalVar = addToGraph(
     
    24882488            if (interpreter->getOpcodeID(putInstruction->u.opcode) == op_call_put_result) {
    24892489                m_currentProfilingIndex = m_currentIndex + OPCODE_LENGTH(op_call_varargs);
    2490                 prediction = getSpeculation();
     2490                prediction = getPrediction();
    24912491            }
    24922492           
     
    25232523
    25242524        case op_resolve: {
    2525             SpeculatedType prediction = getSpeculation();
     2525            SpeculatedType prediction = getPrediction();
    25262526           
    25272527            unsigned identifier = m_inlineStackTop->m_identifierRemap[currentInstruction[2].u.operand];
     
    25342534
    25352535        case op_resolve_base: {
    2536             SpeculatedType prediction = getSpeculation();
     2536            SpeculatedType prediction = getPrediction();
    25372537           
    25382538            unsigned identifier = m_inlineStackTop->m_identifierRemap[currentInstruction[2].u.operand];
     
    25452545           
    25462546        case op_resolve_global: {
    2547             SpeculatedType prediction = getSpeculation();
     2547            SpeculatedType prediction = getPrediction();
    25482548           
    25492549            NodeIndex resolve = addToGraph(ResolveGlobal, OpInfo(m_graph.m_resolveGlobalData.size()), OpInfo(prediction));
     
    26152615            set(currentInstruction[1].u.operand,
    26162616                addToGraph(
    2617                     GetMyArgumentByValSafe, OpInfo(0), OpInfo(getSpeculation()),
     2617                    GetMyArgumentByValSafe, OpInfo(0), OpInfo(getPrediction()),
    26182618                    get(currentInstruction[3].u.operand)));
    26192619            NEXT_OPCODE(op_get_argument_by_val);
Note: See TracChangeset for help on using the changeset viewer.