Index: src/compiler/code-generator.cc |
diff --git a/src/compiler/code-generator.cc b/src/compiler/code-generator.cc |
index 95b311d21c0e17661461face4a6e3af13aa1e0af..1a4566d60994dbba96e72fcde285c215d5f2120e 100644 |
--- a/src/compiler/code-generator.cc |
+++ b/src/compiler/code-generator.cc |
@@ -125,13 +125,8 @@ Handle<Code> CodeGenerator::GenerateCode() { |
safepoints()->Emit(masm(), frame()->GetSpillSlotCount()); |
- // TODO(titzer): what are the right code flags here? |
- Code::Kind kind = Code::STUB; |
- if (linkage()->GetIncomingDescriptor()->IsJSFunctionCall()) { |
- kind = Code::OPTIMIZED_FUNCTION; |
- } |
Handle<Code> result = v8::internal::CodeGenerator::MakeCodeEpilogue( |
- masm(), Code::ComputeFlags(kind), info); |
+ masm(), info->flags(), info); |
result->set_is_turbofanned(true); |
result->set_stack_slots(frame()->GetSpillSlotCount()); |
result->set_safepoint_table_offset(safepoints()->GetCodeOffset()); |