Index: src/arm/full-codegen-arm.cc |
diff --git a/src/arm/full-codegen-arm.cc b/src/arm/full-codegen-arm.cc |
index b64d9930ba4d219001d7be72cbbd8169fa1c0255..4353d788d99d06f6b9fbf9a87fd331b13677ee94 100644 |
--- a/src/arm/full-codegen-arm.cc |
+++ b/src/arm/full-codegen-arm.cc |
@@ -210,7 +210,9 @@ void FullCodeGenerator::Generate(CompilationInfo* info) { |
// function, receiver address, parameter count. |
// The stub will rewrite receiever 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(); |