Index: src/compiler/pipeline.cc |
diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc |
index f5f1880d2bcfe8cdf2a27548af097eb5b290a237..3e97ebe42965ea8921b373fe5b023994b355125c 100644 |
--- a/src/compiler/pipeline.cc |
+++ b/src/compiler/pipeline.cc |
@@ -302,7 +302,7 @@ class PipelineData { |
DCHECK(register_allocation_data_ == nullptr); |
register_allocation_data_ = new (register_allocation_zone()) |
RegisterAllocationData(config, register_allocation_zone(), frame(), |
- sequence(), debug_name_.get()); |
+ sequence(), debug_name()); |
} |
void BeginPhaseKind(const char* phase_kind_name) { |
@@ -317,6 +317,8 @@ class PipelineData { |
} |
} |
+ const char* debug_name() const { return debug_name_.get(); } |
+ |
private: |
Isolate* const isolate_; |
CompilationInfo* const info_; |
@@ -1760,28 +1762,27 @@ bool PipelineImpl::ScheduleAndSelectInstructions(Linkage* linkage, |
} |
bool verify_stub_graph = data->verify_graph(); |
- if (verify_stub_graph || (FLAG_turbo_verify_machine_graph != nullptr && |
- (!strcmp(FLAG_turbo_verify_machine_graph, "*") || |
- !strcmp(FLAG_turbo_verify_machine_graph, |
- data->info()->GetDebugName().get())))) { |
+ if (verify_stub_graph || |
+ (FLAG_turbo_verify_machine_graph != nullptr && |
+ (!strcmp(FLAG_turbo_verify_machine_graph, "*") || |
+ !strcmp(FLAG_turbo_verify_machine_graph, data->debug_name())))) { |
if (FLAG_trace_csa_verify) { |
AllowHandleDereference allow_deref; |
CompilationInfo* info = data->info(); |
CodeTracer::Scope tracing_scope(info->isolate()->GetCodeTracer()); |
OFStream os(tracing_scope.file()); |
os << "--------------------------------------------------\n" |
- << "--- Verifying " << info->GetDebugName().get() |
- << " generated by TurboFan\n" |
+ << "--- Verifying " << data->debug_name() << " generated by TurboFan\n" |
<< "--------------------------------------------------\n" |
<< *data->schedule() |
<< "--------------------------------------------------\n" |
- << "--- End of " << info->GetDebugName().get() |
- << " generated by TurboFan\n" |
+ << "--- End of " << data->debug_name() << " generated by TurboFan\n" |
<< "--------------------------------------------------\n"; |
} |
Zone temp_zone(data->isolate()->allocator(), ZONE_NAME); |
MachineGraphVerifier::Run(data->graph(), data->schedule(), linkage, |
- data->info()->IsStub(), &temp_zone); |
+ data->info()->IsStub(), data->debug_name(), |
+ &temp_zone); |
} |
data->InitializeInstructionSequence(call_descriptor); |