diff options
author | Moonchild <moonchild@palemoon.org> | 2020-05-05 23:43:22 +0000 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-05-06 19:15:54 +0200 |
commit | 31f47a2ba435d44ae7d8e0bfe70ac2d7c7993af9 (patch) | |
tree | 99a0e2e09dcb0b54d360bfd37b44d91ad3dda285 /js/src/jit/MIR.h | |
parent | 8b3b85854666ce1cabc25bda77f642e387ea49f6 (diff) | |
download | UXP-31f47a2ba435d44ae7d8e0bfe70ac2d7c7993af9.tar UXP-31f47a2ba435d44ae7d8e0bfe70ac2d7c7993af9.tar.gz UXP-31f47a2ba435d44ae7d8e0bfe70ac2d7c7993af9.tar.lz UXP-31f47a2ba435d44ae7d8e0bfe70ac2d7c7993af9.tar.xz UXP-31f47a2ba435d44ae7d8e0bfe70ac2d7c7993af9.zip |
[js] Record load in MCreateThis alias set.
Diffstat (limited to 'js/src/jit/MIR.h')
-rw-r--r-- | js/src/jit/MIR.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/js/src/jit/MIR.h b/js/src/jit/MIR.h index 81662a9be..a7daea081 100644 --- a/js/src/jit/MIR.h +++ b/js/src/jit/MIR.h @@ -5007,9 +5007,10 @@ class MCreateThis TRIVIAL_NEW_WRAPPERS 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 { - return AliasSet::None(); + return AliasSet::Load(AliasSet::Any); } bool possiblyCalls() const override { return true; |