Index: src/crankshaft/hydrogen.cc |
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc |
index 6b2924cd68d645e1b01e5261cde77802e7a3666f..a7958e1d60a1c4e1b7b8afce200dde32fc7f928c 100644 |
--- a/src/crankshaft/hydrogen.cc |
+++ b/src/crankshaft/hydrogen.cc |
@@ -13366,12 +13366,14 @@ std::ostream& operator<<(std::ostream& os, const HEnvironment& env) { |
void HTracer::TraceCompilation(CompilationInfo* info) { |
Tag tag(this, "compilation"); |
std::string name; |
- Object* source_name = info->script()->name(); |
- if (source_name->IsString()) { |
- String* str = String::cast(source_name); |
- if (str->length() > 0) { |
- name.append(str->ToCString().get()); |
- name.append(":"); |
+ if (info->parse_info()) { |
+ Object* source_name = info->script()->name(); |
+ if (source_name->IsString()) { |
+ String* str = String::cast(source_name); |
+ if (str->length() > 0) { |
+ name.append(str->ToCString().get()); |
+ name.append(":"); |
+ } |
} |
} |
base::SmartArrayPointer<char> method_name = info->GetDebugName(); |