Bug 1079068: Move mightBeMagicType in MIR.cpp; r=h4writer

This commit is contained in:
Benjamin Bouvier 2014-10-08 16:29:14 +02:00
parent cd20b667c6
commit 4eaab26278
2 changed files with 13 additions and 9 deletions

View File

@ -224,6 +224,18 @@ MDefinition::foldsTo(TempAllocator &alloc)
return this;
}
bool
MDefinition::mightBeMagicType() const
{
if (IsMagicType(type()))
return true;
if (MIRType_Value != type())
return false;
return !resultTypeSet() || resultTypeSet()->hasType(types::Type::MagicArgType());
}
MDefinition *
MInstruction::foldsToStoredValue(TempAllocator &alloc, MDefinition *loaded)
{

View File

@ -596,15 +596,7 @@ class MDefinition : public MNode
return !resultTypeSet() || resultTypeSet()->mightBeMIRType(type);
}
bool mightBeMagicType() const {
if (IsMagicType(type()))
return true;
if (MIRType_Value != type())
return false;
return !resultTypeSet() || resultTypeSet()->hasType(types::Type::MagicArgType());
}
bool mightBeMagicType() const;
// Float32 specialization operations (see big comment in IonAnalysis before the Float32
// specialization algorithm).