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..dbc0dc6e74b7afe8863aa2048fa478cf8cbd7cfd 100644 |
--- a/src/arm/full-codegen-arm.cc |
+++ b/src/arm/full-codegen-arm.cc |
@@ -1086,9 +1086,8 @@ void FullCodeGenerator::EmitNewClosure(Handle<SharedFunctionInfo> info, |
!FLAG_prepare_always_opt && |
!pretenure && |
scope()->is_function_scope() && |
- info->num_literals() == 0 && |
- !info->strict_mode()) { // Strict mode functions use slow path. |
- FastNewClosureStub stub; |
+ info->num_literals() == 0) { |
+ FastNewClosureStub stub(info->strict_mode() ? kStrictMode : kNonStrictMode); |
__ mov(r0, Operand(info)); |
__ push(r0); |
__ CallStub(&stub); |