Index: src/x64/lithium-codegen-x64.cc |
diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc |
index dbbbaa7ebddc03b00ef700fe096aec74aff46e8e..a811808f4653c323790429bdb505835c5c5c2412 100644 |
--- a/src/x64/lithium-codegen-x64.cc |
+++ b/src/x64/lithium-codegen-x64.cc |
@@ -3427,7 +3427,8 @@ void LCodeGen::DoFunctionLiteral(LFunctionLiteral* instr) { |
// space for nested functions that don't need literals cloning. |
Handle<SharedFunctionInfo> shared_info = instr->shared_info(); |
bool pretenure = instr->hydrogen()->pretenure(); |
- if (shared_info->num_literals() == 0 && !pretenure) { |
+ if (!pretenure && shared_info->num_literals() == 0 && |
+ !shared_info->strict_mode()) { |
FastNewClosureStub stub; |
__ Push(shared_info); |
CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); |