Index: src/compiler/code-generator.cc |
diff --git a/src/compiler/code-generator.cc b/src/compiler/code-generator.cc |
index 4c20fc56ba7db93218543902da71954345908cc1..aa3d1eb1a25c3a273a629e8ef7a95cd8fc997c4c 100644 |
--- a/src/compiler/code-generator.cc |
+++ b/src/compiler/code-generator.cc |
@@ -41,7 +41,7 @@ CodeGenerator::CodeGenerator(Frame* frame, Linkage* linkage, |
labels_(zone()->NewArray<Label>(code->InstructionBlockCount())), |
current_block_(RpoNumber::Invalid()), |
current_source_position_(SourcePosition::Unknown()), |
- masm_(info->isolate(), nullptr, 0, CodeObjectRequired::kYes), |
+ masm_(info->isolate(), nullptr, 0, CodeObjectRequired::kNo), |
resolver_(this), |
safepoints_(code->zone()), |
handlers_(code->zone()), |
@@ -203,8 +203,9 @@ Handle<Code> CodeGenerator::GenerateCode() { |
safepoints()->Emit(masm(), frame()->GetTotalFrameSlotCount()); |
- Handle<Code> result = |
- v8::internal::CodeGenerator::MakeCodeEpilogue(masm(), nullptr, info); |
+ // Turbofan does not use the self reference. |
+ Handle<Code> result = v8::internal::CodeGenerator::MakeCodeEpilogue( |
+ masm(), nullptr, info, Handle<Object>()); |
result->set_is_turbofanned(true); |
result->set_stack_slots(frame()->GetTotalFrameSlotCount()); |
result->set_safepoint_table_offset(safepoints()->GetCodeOffset()); |