mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 06:15:43 +00:00
Bug 1079068: Move mightBeMagicType in MIR.cpp; r=h4writer
This commit is contained in:
parent
cd20b667c6
commit
4eaab26278
@ -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)
|
||||
{
|
||||
|
@ -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).
|
||||
|
Loading…
Reference in New Issue
Block a user