Bug 1343723 - ResumePoint not needed for MNewLexicalEnvironmentObject. r=jandem

MozReview-Commit-ID: KNEhTjtKRiJ
This commit is contained in:
Ted Campbell 2017-05-23 21:00:56 -04:00
parent f4b7ac79bd
commit 7fe93c1f53
2 changed files with 10 additions and 2 deletions

View File

@ -12063,7 +12063,7 @@ IonBuilder::jsop_pushlexicalenv(uint32_t index)
current->add(ins);
current->setEnvironmentChain(ins);
return resumeAfter(ins);
return Ok();
}
AbortReasonOr<Ok>
@ -12077,7 +12077,7 @@ IonBuilder::jsop_copylexicalenv(bool copySlots)
current->add(ins);
current->setEnvironmentChain(ins);
return resumeAfter(ins);
return Ok();
}
AbortReasonOr<Ok>

View File

@ -11640,6 +11640,9 @@ class MNewLexicalEnvironmentObject
bool appendRoots(MRootList& roots) const override {
return roots.append(scope_);
}
AliasSet getAliasSet() const override {
return AliasSet::None();
}
};
// Allocate a new LexicalEnvironmentObject from existing one
@ -11667,6 +11670,11 @@ class MCopyLexicalEnvironmentObject
bool possiblyCalls() const override {
return true;
}
AliasSet getAliasSet() const override {
return AliasSet::Load(AliasSet::ObjectFields |
AliasSet::FixedSlot |
AliasSet::DynamicSlot);
}
};
// Store to vp[slot] (slots that are not inline in an object).