Index: src/arm/codegen-arm.cc |
diff --git a/src/arm/codegen-arm.cc b/src/arm/codegen-arm.cc |
index 2a69d28de96dbd0b4ca8fe030c2e81e500ec1c12..8855cb3792881a8872bd47632f608e5a078ef6f6 100644 |
--- a/src/arm/codegen-arm.cc |
+++ b/src/arm/codegen-arm.cc |
@@ -3114,9 +3114,9 @@ void CodeGenerator::InstantiateFunction( |
// space for nested functions that don't need literals cloning. |
if (!pretenure && |
scope()->is_function_scope() && |
- function_info->num_literals() == 0 && |
- !function_info->strict_mode()) { // Strict mode functions use slow path. |
- FastNewClosureStub stub; |
+ function_info->num_literals() == 0) { |
+ FastNewClosureStub stub( |
+ function_info->strict_mode() ? kStrictMode : kNonStrictMode); |
frame_->EmitPush(Operand(function_info)); |
frame_->SpillAll(); |
frame_->CallStub(&stub, 1); |