mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 866706 - Ensure that MMonitorTypes boxes its inputs, r=dvander.
This commit is contained in:
parent
8442da7368
commit
a9cc390039
@ -7124,7 +7124,7 @@ class MTypeBarrier
|
||||
// Like MTypeBarrier, guard that the value is in the given type set. This is
|
||||
// used before property writes to ensure the value being written is represented
|
||||
// in the property types for the object.
|
||||
class MMonitorTypes : public MUnaryInstruction
|
||||
class MMonitorTypes : public MUnaryInstruction, public BoxInputsPolicy
|
||||
{
|
||||
const types::StackTypeSet *typeSet_;
|
||||
|
||||
@ -7142,6 +7142,11 @@ class MMonitorTypes : public MUnaryInstruction
|
||||
static MMonitorTypes *New(MDefinition *def, const types::StackTypeSet *types) {
|
||||
return new MMonitorTypes(def, types);
|
||||
}
|
||||
|
||||
TypePolicy *typePolicy() {
|
||||
return this;
|
||||
}
|
||||
|
||||
MDefinition *input() const {
|
||||
return getOperand(0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user