diff options
author | Jan de Mooij <jdemooij@mozilla.com> | 2020-04-08 08:29:03 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-04-08 08:53:39 +0200 |
commit | e28170c980ecb00be11a9430ef22df6ee13e78a2 (patch) | |
tree | d5955ea29ba6afb29b0237a1c4373d191f1b196a | |
parent | 0507f298e9a5124634fb16c91b404d08356639b3 (diff) | |
download | UXP-RELBASE_20200408.tar UXP-RELBASE_20200408.tar.gz UXP-RELBASE_20200408.tar.lz UXP-RELBASE_20200408.tar.xz UXP-RELBASE_20200408.zip |
[js] Handle functions with rest parameters in isObservableArgumentSlot.RELBASE_20200408
-rw-r--r-- | js/src/jit/CompileInfo.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/jit/CompileInfo.h b/js/src/jit/CompileInfo.h index 44848890c..f7f8c70bb 100644 --- a/js/src/jit/CompileInfo.h +++ b/js/src/jit/CompileInfo.h @@ -487,7 +487,7 @@ class CompileInfo // Function.arguments can be used to access all arguments in non-strict // scripts, so we can't optimize out any arguments. - if ((hasArguments() || !script()->strict()) && + if ((mayReadFrameArgsDirectly_ || !script()->strict()) && firstArgSlot() <= slot && slot - firstArgSlot() < nargs()) { return true; |