mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-16 22:04:36 +00:00
Bug 1207210 - Fix MTypeBarrier::alwaysBails to handle ObjectOrNull inputs correctly. r=h4writer
This commit is contained in:
parent
9fe6d747e1
commit
3def9c33a7
@ -12427,6 +12427,12 @@ class MTypeBarrier
|
||||
return false;
|
||||
if (input()->type() == MIRType_Value)
|
||||
return false;
|
||||
if (input()->type() == MIRType_ObjectOrNull) {
|
||||
// The ObjectOrNull optimization is only performed when the
|
||||
// barrier's type is MIRType_Null.
|
||||
MOZ_ASSERT(type == MIRType_Null);
|
||||
return false;
|
||||
}
|
||||
return input()->type() != type;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user