Simplify some alias sets in IonMonkey.
This commit is contained in:
parent
2db4a5e34c
commit
7016005a52
|
@ -86,8 +86,6 @@ GetObject(const MDefinition* ins)
|
||||||
case MDefinition::Op_SetInitializedLength:
|
case MDefinition::Op_SetInitializedLength:
|
||||||
case MDefinition::Op_ArrayLength:
|
case MDefinition::Op_ArrayLength:
|
||||||
case MDefinition::Op_SetArrayLength:
|
case MDefinition::Op_SetArrayLength:
|
||||||
case MDefinition::Op_StoreElementHole:
|
|
||||||
case MDefinition::Op_FallibleStoreElement:
|
|
||||||
case MDefinition::Op_TypedObjectDescr:
|
case MDefinition::Op_TypedObjectDescr:
|
||||||
case MDefinition::Op_Slots:
|
case MDefinition::Op_Slots:
|
||||||
case MDefinition::Op_Elements:
|
case MDefinition::Op_Elements:
|
||||||
|
@ -143,6 +141,8 @@ GetObject(const MDefinition* ins)
|
||||||
case MDefinition::Op_WasmStoreGlobalVar:
|
case MDefinition::Op_WasmStoreGlobalVar:
|
||||||
case MDefinition::Op_ArrayJoin:
|
case MDefinition::Op_ArrayJoin:
|
||||||
case MDefinition::Op_ArraySlice:
|
case MDefinition::Op_ArraySlice:
|
||||||
|
case MDefinition::Op_StoreElementHole:
|
||||||
|
case MDefinition::Op_FallibleStoreElement:
|
||||||
return nullptr;
|
return nullptr;
|
||||||
default:
|
default:
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
|
|
|
@ -9460,12 +9460,6 @@ class MStoreElementHole
|
||||||
TRIVIAL_NEW_WRAPPERS
|
TRIVIAL_NEW_WRAPPERS
|
||||||
NAMED_OPERANDS((0, object), (1, elements), (2, index), (3, value))
|
NAMED_OPERANDS((0, object), (1, elements), (2, index), (3, value))
|
||||||
|
|
||||||
AliasSet getAliasSet() const override {
|
|
||||||
// StoreElementHole can update the initialized length, the array length
|
|
||||||
// or reallocate obj->elements.
|
|
||||||
return AliasSet::Store(AliasSet::ObjectFields | AliasSet::Element);
|
|
||||||
}
|
|
||||||
|
|
||||||
ALLOW_CLONE(MStoreElementHole)
|
ALLOW_CLONE(MStoreElementHole)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -9496,9 +9490,6 @@ class MFallibleStoreElement
|
||||||
TRIVIAL_NEW_WRAPPERS
|
TRIVIAL_NEW_WRAPPERS
|
||||||
NAMED_OPERANDS((0, object), (1, elements), (2, index), (3, value))
|
NAMED_OPERANDS((0, object), (1, elements), (2, index), (3, value))
|
||||||
|
|
||||||
AliasSet getAliasSet() const override {
|
|
||||||
return AliasSet::Store(AliasSet::ObjectFields | AliasSet::Element);
|
|
||||||
}
|
|
||||||
bool strict() const {
|
bool strict() const {
|
||||||
return strict_;
|
return strict_;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user