Ignore:
Timestamp:
Feb 12, 2013, 5:25:27 PM (13 years ago)
Author:
[email protected]
Message:

Renamed SpecObjectMask to SpecObject.

Rubber stamped by Mark Hahnenberg.

"SpecObjectMask" is a weird name considering that a bunch of the other speculated
types are also masks, but don't have "Mask" in the name.

  • bytecode/SpeculatedType.h:

(JSC):
(JSC::isObjectSpeculation):
(JSC::isObjectOrOtherSpeculation):

  • dfg/DFGAbstractState.cpp:

(JSC::DFG::AbstractState::execute):

  • dfg/DFGPredictionPropagationPhase.cpp:

(JSC::DFG::PredictionPropagationPhase::propagate):

  • dfg/DFGSpeculativeJIT.cpp:

(JSC::DFG::SpeculativeJIT::compilePeepHoleObjectEquality):

  • dfg/DFGSpeculativeJIT32_64.cpp:

(JSC::DFG::SpeculativeJIT::compileObjectEquality):
(JSC::DFG::SpeculativeJIT::compileObjectToObjectOrOtherEquality):
(JSC::DFG::SpeculativeJIT::compilePeepHoleObjectToObjectOrOtherEquality):

  • dfg/DFGSpeculativeJIT64.cpp:

(JSC::DFG::SpeculativeJIT::compileObjectEquality):
(JSC::DFG::SpeculativeJIT::compileObjectToObjectOrOtherEquality):
(JSC::DFG::SpeculativeJIT::compilePeepHoleObjectToObjectOrOtherEquality):

File:
1 edited

Legend:

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

    r142544 r142695  
    593593            SpeculatedType prediction = node->child1()->prediction();
    594594            if (prediction) {
    595                 if (prediction & ~SpecObjectMask) {
    596                     prediction &= SpecObjectMask;
     595                if (prediction & ~SpecObject) {
     596                    prediction &= SpecObject;
    597597                    prediction = mergeSpeculations(prediction, SpecObjectOther);
    598598                }
     
    689689                if (isObjectSpeculation(child)) {
    690690                    // I'd love to fold this case into the case below, but I can't, because
    691                     // removing SpecObjectMask from something that only has an object
     691                    // removing SpecObject from something that only has an object
    692692                    // prediction and nothing else means we have an ill-formed SpeculatedType
    693693                    // (strong predict-none). This should be killed once we remove all traces
    694694                    // of static (aka weak) predictions.
    695695                    changed |= mergePrediction(SpecString);
    696                 } else if (child & SpecObjectMask) {
     696                } else if (child & SpecObject) {
    697697                    // Objects get turned into strings. So if the input has hints of objectness,
    698698                    // the output will have hinsts of stringiness.
    699699                    changed |= mergePrediction(
    700                         mergeSpeculations(child & ~SpecObjectMask, SpecString));
     700                        mergeSpeculations(child & ~SpecObject, SpecString));
    701701                } else
    702702                    changed |= mergePrediction(child);
Note: See TracChangeset for help on using the changeset viewer.