Index: src/x64/lithium-codegen-x64.cc |
diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc |
index 1f3b7797978cf8e0c6b43b8ed10f63b3318c2866..ce60d23670cc2c0aa1ec3c8051cb1880a2888df7 100644 |
--- a/src/x64/lithium-codegen-x64.cc |
+++ b/src/x64/lithium-codegen-x64.cc |
@@ -3496,9 +3496,9 @@ 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 (!pretenure && shared_info->num_literals() == 0 && |
- !shared_info->strict_mode()) { |
- FastNewClosureStub stub; |
+ if (!pretenure && shared_info->num_literals() == 0) { |
+ FastNewClosureStub stub( |
+ shared_info->strict_mode() ? kStrictMode : kNonStrictMode); |
__ Push(shared_info); |
CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); |
} else { |