Index: src/arm/codegen-arm.cc |
diff --git a/src/arm/codegen-arm.cc b/src/arm/codegen-arm.cc |
index e7cd04d0615da4b9ee2c78cb0057b77889f9bba4..e30de0d51fa0b37255ae0ac947aa55488cc94ffa 100644 |
--- a/src/arm/codegen-arm.cc |
+++ b/src/arm/codegen-arm.cc |
@@ -3112,10 +3112,9 @@ void CodeGenerator::InstantiateFunction( |
bool pretenure) { |
// Use the fast case closure allocation code that allocates in new |
// space for nested functions that don't need literals cloning. |
- if (!pretenure && |
- scope()->is_function_scope() && |
+ if (scope()->is_function_scope() && |
function_info->num_literals() == 0 && |
- !function_info->strict_mode()) { // Strict mode functions use slow path. |
+ !pretenure) { |
FastNewClosureStub stub; |
frame_->EmitPush(Operand(function_info)); |
frame_->SpillAll(); |