Index: src/x64/full-codegen-x64.cc |
diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc |
index 8b148624d86b8792207fac3e3125d273299a1e8f..272d408529202e87c86b7453bed40d87499020f2 100644 |
--- a/src/x64/full-codegen-x64.cc |
+++ b/src/x64/full-codegen-x64.cc |
@@ -198,7 +198,9 @@ void FullCodeGenerator::Generate(CompilationInfo* info) { |
// function, receiver address, parameter count. |
// The stub will rewrite receiver and parameter count if the previous |
// stack frame was an arguments adapter frame. |
- ArgumentsAccessStub stub(ArgumentsAccessStub::NEW_OBJECT); |
+ ArgumentsAccessStub stub(is_strict() |
+ ? ArgumentsAccessStub::NEW_STRICT |
+ : ArgumentsAccessStub::NEW_NON_STRICT); |
__ CallStub(&stub); |
Variable* arguments_shadow = scope()->arguments_shadow(); |