Index: src/ia32/codegen-ia32.cc |
diff --git a/src/ia32/codegen-ia32.cc b/src/ia32/codegen-ia32.cc |
index 03ca2750bd6b2090a59fac467bc217782a2f97b4..f1d4cac19178272dac1b5760f6b1a8cc20d66ace 100644 |
--- a/src/ia32/codegen-ia32.cc |
+++ b/src/ia32/codegen-ia32.cc |
@@ -4916,10 +4916,9 @@ Result CodeGenerator::InstantiateFunction( |
// 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(Immediate(function_info)); |
return frame()->CallStub(&stub, 1); |