Index: src/profile-generator.cc |
diff --git a/src/profile-generator.cc b/src/profile-generator.cc |
index 837faa0c84cdcc938354c15892ae63d71a46c07e..b1b163b50ecdf2d59173eef568c84878fb50becf 100644 |
--- a/src/profile-generator.cc |
+++ b/src/profile-generator.cc |
@@ -571,7 +571,12 @@ void CodeMap::MoveCode(Address from, Address to) { |
void CodeMap::CodeTreePrinter::Call( |
const Address& key, const CodeMap::CodeEntryInfo& value) { |
- OS::Print("%p %5d %s\n", key, value.size, value.entry->name()); |
+ // For shared function entries, 'size' field is used to store their IDs. |
+ if (value.entry == kSharedFunctionCodeEntry) { |
+ OS::Print("%p SharedFunctionInfo %d\n", key, value.size); |
+ } else { |
+ OS::Print("%p %5d %s\n", key, value.size, value.entry->name()); |
+ } |
} |