$OpenBSD$ index fd0d47b..f2257e6 100644 --- js/src/jit/CompileInfo.h.orig Fri Feb 20 15:40:37 2015 +++ js/src/jit/CompileInfo.h Fri Feb 20 15:40:37 2015 @@ -305,6 +305,15 @@ class CompileInfo return executionMode_ == ParallelExecution; } + bool canOptimizeOutSlot(uint32_t i) const { + if (script()->strict()) + return true; + + // Function.arguments can be used to access all arguments in + // non-strict scripts, so we can't optimize out any arguments. + return !(firstArgSlot() <= i && i - firstArgSlot() < nargs()); + } + private: unsigned nimplicit_; unsigned nargs_;