mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-26 00:57:30 +09:00
[js] Record load in MCreateThis alias set.
This commit is contained in:
parent
27ea0aaf55
commit
4f72c20f83
2 changed files with 4 additions and 2 deletions
|
|
@ -134,6 +134,7 @@ GetObject(const MDefinition* ins)
|
||||||
case MDefinition::Op_SetArgumentsObjectArg:
|
case MDefinition::Op_SetArgumentsObjectArg:
|
||||||
case MDefinition::Op_GetFrameArgument:
|
case MDefinition::Op_GetFrameArgument:
|
||||||
case MDefinition::Op_SetFrameArgument:
|
case MDefinition::Op_SetFrameArgument:
|
||||||
|
case MDefinition::Op_CreateThis:
|
||||||
case MDefinition::Op_CompareExchangeTypedArrayElement:
|
case MDefinition::Op_CompareExchangeTypedArrayElement:
|
||||||
case MDefinition::Op_AtomicExchangeTypedArrayElement:
|
case MDefinition::Op_AtomicExchangeTypedArrayElement:
|
||||||
case MDefinition::Op_AtomicTypedArrayElementBinop:
|
case MDefinition::Op_AtomicTypedArrayElementBinop:
|
||||||
|
|
|
||||||
|
|
@ -5007,9 +5007,10 @@ class MCreateThis
|
||||||
TRIVIAL_NEW_WRAPPERS
|
TRIVIAL_NEW_WRAPPERS
|
||||||
NAMED_OPERANDS((0, getCallee), (1, getNewTarget))
|
NAMED_OPERANDS((0, getCallee), (1, getNewTarget))
|
||||||
|
|
||||||
// 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 {
|
AliasSet getAliasSet() const override {
|
||||||
return AliasSet::None();
|
return AliasSet::Load(AliasSet::Any);
|
||||||
}
|
}
|
||||||
bool possiblyCalls() const override {
|
bool possiblyCalls() const override {
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue