Skip to content

Commit

Permalink
Bug 1607443 - Fix some alias sets. r=tcampbell, a=lizzard
Browse files Browse the repository at this point in the history
Differential Revision: https://phabricator.services.mozilla.com/D58956

--HG--
extra : source : d6e40de88f3defdc12ef27e64ca73e120b1f10e2
extra : intermediate-source : 8260da04c9b13f7c0e9cc6984a75e689b5fcb8c8
  • Loading branch information
jandem committed Jan 1, 1970
1 parent 6f80932 commit 6cd4c17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
4 changes: 2 additions & 2 deletions js/src/jit/AliasAnalysis.cpp
Expand Up @@ -120,8 +120,6 @@ static inline const MDefinition* GetObject(const MDefinition* ins) {
case MDefinition::Opcode::SetInitializedLength:
case MDefinition::Opcode::ArrayLength:
case MDefinition::Opcode::SetArrayLength:
case MDefinition::Opcode::StoreElementHole:
case MDefinition::Opcode::FallibleStoreElement:
case MDefinition::Opcode::TypedObjectDescr:
case MDefinition::Opcode::Slots:
case MDefinition::Opcode::Elements:
Expand Down Expand Up @@ -182,6 +180,8 @@ static inline const MDefinition* GetObject(const MDefinition* ins) {
case MDefinition::Opcode::WasmStoreRef:
case MDefinition::Opcode::ArrayJoin:
case MDefinition::Opcode::ArraySlice:
case MDefinition::Opcode::StoreElementHole:
case MDefinition::Opcode::FallibleStoreElement:
return nullptr;
default:
#ifdef DEBUG
Expand Down
9 changes: 0 additions & 9 deletions js/src/jit/MIR.h
Expand Up @@ -7792,12 +7792,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)
};

Expand All @@ -7824,9 +7818,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 needsHoleCheck() const { return needsHoleCheck_; }

ALLOW_CLONE(MFallibleStoreElement)
Expand Down

0 comments on commit 6cd4c17

Please sign in to comment.