Index: src/ia32/codegen-ia32.cc |
diff --git a/src/ia32/codegen-ia32.cc b/src/ia32/codegen-ia32.cc |
index f1d4cac19178272dac1b5760f6b1a8cc20d66ace..03ca2750bd6b2090a59fac467bc217782a2f97b4 100644 |
--- a/src/ia32/codegen-ia32.cc |
+++ b/src/ia32/codegen-ia32.cc |
@@ -4916,9 +4916,10 @@ 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 (scope()->is_function_scope() && |
+ if (!pretenure && |
+ scope()->is_function_scope() && |
function_info->num_literals() == 0 && |
- !pretenure) { |
+ !function_info->strict_mode()) { // Strict mode functions use slow path. |
FastNewClosureStub stub; |
frame()->EmitPush(Immediate(function_info)); |
return frame()->CallStub(&stub, 1); |