Index: src/codegen.cc |
diff --git a/src/codegen.cc b/src/codegen.cc |
index a57cbb3a5e666e5ded344b98d6f691f109ea5c79..692fa64bb69d34e2fe2f1ff6c815c2a5b7852b1e 100644 |
--- a/src/codegen.cc |
+++ b/src/codegen.cc |
@@ -124,18 +124,9 @@ Handle<Code> CodeGenerator::MakeCodeEpilogue(MacroAssembler* masm, |
CompilationInfo* info) { |
Isolate* isolate = info->isolate(); |
- Code::Flags flags; |
- if (info->IsStub() && info->code_stub()) { |
- DCHECK_EQ(info->output_code_kind(), info->code_stub()->GetCodeKind()); |
- flags = Code::ComputeFlags( |
- info->output_code_kind(), info->code_stub()->GetICState(), |
- info->code_stub()->GetExtraICState(), info->code_stub()->GetStubType()); |
- } else { |
- flags = Code::ComputeFlags(info->output_code_kind()); |
- } |
- |
// Allocate and install the code. |
CodeDesc desc; |
+ Code::Flags flags = info->code_flags(); |
bool is_crankshafted = |
Code::ExtractKindFromFlags(flags) == Code::OPTIMIZED_FUNCTION || |
info->IsStub(); |