Index: src/x64/lithium-codegen-x64.cc |
diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc |
index d48b871769b4558c9e078f12fac4b2e120a9e497..befeec23c6ceaf12a28382ec4fc88d99931d359f 100644 |
--- a/src/x64/lithium-codegen-x64.cc |
+++ b/src/x64/lithium-codegen-x64.cc |
@@ -3496,7 +3496,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); |