Index: src/compiler/graph-visualizer.cc |
diff --git a/src/compiler/graph-visualizer.cc b/src/compiler/graph-visualizer.cc |
index 7610e60a9119f50a25f9bc03b38826e3fb26e4b4..bf3d8edea418d654344baf9c85d479eb78badb37 100644 |
--- a/src/compiler/graph-visualizer.cc |
+++ b/src/compiler/graph-visualizer.cc |
@@ -492,7 +492,7 @@ void GraphC1Visualizer::PrintIntProperty(const char* name, int value) { |
void GraphC1Visualizer::PrintCompilation(const CompilationInfo* info) { |
Tag tag(this, "compilation"); |
if (info->IsOptimizing()) { |
- Handle<String> name = info->function()->debug_name(); |
+ Handle<String> name = info->literal()->debug_name(); |
PrintStringProperty("name", name->ToCString().get()); |
PrintIndent(); |
os_ << "method \"" << name->ToCString().get() << ":" |