summaryrefslogtreecommitdiffstats
path: root/js/src/jit/MIR.h
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-05-05 23:43:22 +0000
committerMoonchild <moonchild@palemoon.org>2020-05-05 23:43:22 +0000
commitf5c2775a69cff7e1aea6b9258760fd4acc36837f (patch)
tree7396f1ee55a80a67ac1e3e69c0616e18b796cec0 /js/src/jit/MIR.h
parentb378ddaace9e745e9b4a856eb06679e5e8fa07f5 (diff)
downloadUXP-f5c2775a69cff7e1aea6b9258760fd4acc36837f.tar
UXP-f5c2775a69cff7e1aea6b9258760fd4acc36837f.tar.gz
UXP-f5c2775a69cff7e1aea6b9258760fd4acc36837f.tar.lz
UXP-f5c2775a69cff7e1aea6b9258760fd4acc36837f.tar.xz
UXP-f5c2775a69cff7e1aea6b9258760fd4acc36837f.zip
[js] Record load in MCreateThis alias set.
Diffstat (limited to 'js/src/jit/MIR.h')
-rw-r--r--js/src/jit/MIR.h5
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;