summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2020-01-11 13:09:17 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-01-11 13:09:17 +0100
commit60dc9eaa95b96abbe881063b62304a58eadd6b8e (patch)
treec520f2cf8ef2342028f431e927288527f6561c12
parent06dbb7b7dda25b8dc98a92c5a4b21f99911b4ae4 (diff)
downloadUXP-60dc9eaa95b96abbe881063b62304a58eadd6b8e.tar
UXP-60dc9eaa95b96abbe881063b62304a58eadd6b8e.tar.gz
UXP-60dc9eaa95b96abbe881063b62304a58eadd6b8e.tar.lz
UXP-60dc9eaa95b96abbe881063b62304a58eadd6b8e.tar.xz
UXP-60dc9eaa95b96abbe881063b62304a58eadd6b8e.zip
Simplify some alias sets in IonMonkey.
-rw-r--r--js/src/jit/AliasAnalysisShared.cpp4
-rw-r--r--js/src/jit/MIR.h9
2 files changed, 2 insertions, 11 deletions
diff --git a/js/src/jit/AliasAnalysisShared.cpp b/js/src/jit/AliasAnalysisShared.cpp
index 0f0d4a66a..400626b33 100644
--- a/js/src/jit/AliasAnalysisShared.cpp
+++ b/js/src/jit/AliasAnalysisShared.cpp
@@ -86,8 +86,6 @@ GetObject(const MDefinition* ins)
case MDefinition::Op_SetInitializedLength:
case MDefinition::Op_ArrayLength:
case MDefinition::Op_SetArrayLength:
- case MDefinition::Op_StoreElementHole:
- case MDefinition::Op_FallibleStoreElement:
case MDefinition::Op_TypedObjectDescr:
case MDefinition::Op_Slots:
case MDefinition::Op_Elements:
@@ -143,6 +141,8 @@ GetObject(const MDefinition* ins)
case MDefinition::Op_WasmStoreGlobalVar:
case MDefinition::Op_ArrayJoin:
case MDefinition::Op_ArraySlice:
+ case MDefinition::Op_StoreElementHole:
+ case MDefinition::Op_FallibleStoreElement:
return nullptr;
default:
#ifdef DEBUG
diff --git a/js/src/jit/MIR.h b/js/src/jit/MIR.h
index e7186ed30..0c1e77f80 100644
--- a/js/src/jit/MIR.h
+++ b/js/src/jit/MIR.h
@@ -9490,12 +9490,6 @@ class MStoreElementHole
TRIVIAL_NEW_WRAPPERS
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)
};
@@ -9526,9 +9520,6 @@ class MFallibleStoreElement
TRIVIAL_NEW_WRAPPERS
NAMED_OPERANDS((0, object), (1, elements), (2, index), (3, value))
- AliasSet getAliasSet() const override {
- return AliasSet::Store(AliasSet::ObjectFields | AliasSet::Element);
- }
bool strict() const {
return strict_;
}