Index: src/ia32/codegen-ia32.cc |
diff --git a/src/ia32/codegen-ia32.cc b/src/ia32/codegen-ia32.cc |
index fcb06d2f590001d7a6ea179bae743fdb22ec3790..f7c4808ba982e697b2b743d03e245f574b3dd422 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); |