Security fixes toward 105 version.

Security fixes toward 105 version.
This commit is contained in:
win7-7 2022-10-13 23:52:00 +03:00 committed by wuggy
commit 50813a86e5
2 changed files with 5 additions and 2 deletions

View file

@ -3717,6 +3717,8 @@ IonBuilder::replaceTypeSet(MDefinition* subject, TemporaryTypeSet* type, MTest*
if (type->unknown())
return true;
MOZ_ASSERT(!type->hasType(TypeSet::MagicArgType()));
// Don't emit MFilterTypeSet if it doesn't improve the typeset.
if (subject->resultTypeSet()) {
if (subject->resultTypeSet()->equals(type))

View file

@ -3756,9 +3756,10 @@ class MCreateThisWithTemplate
return initialHeap_;
}
// Although creation of |this| modifies global state, it is safely repeatable.
// Performs a property read from |newTarget| if |newTarget| is a JSFunction
// with an own |.prototype| property.
AliasSet getAliasSet() const override {
return AliasSet::None();
return AliasSet::Load(AliasSet::Any);
}
MOZ_MUST_USE bool writeRecoverData(CompactBufferWriter& writer) const override;