Chromium Code Reviews| Index: src/heap-snapshot-generator.cc |
| diff --git a/src/heap-snapshot-generator.cc b/src/heap-snapshot-generator.cc |
| index d22239f381353af4bbc74ea78aeb123280dfe48b..e937e14675bcbfbc638d3333b47cae32938aa962 100644 |
| --- a/src/heap-snapshot-generator.cc |
| +++ b/src/heap-snapshot-generator.cc |
| @@ -2416,8 +2416,8 @@ HeapSnapshot* HeapSnapshotJSONSerializer::CreateFakeSnapshot() { |
| "Actual snapshot size is %" V8_PTR_PREFIX "u MB.", |
| SnapshotSizeConstants<kPointerSize>::kMaxSerializableSnapshotRawSize / MB, |
| (snapshot_->RawSnapshotSize() + MB - 1) / MB); |
| - HeapEntry* message = result->AddEntry(HeapEntry::kString, text, 0, 4); |
| - result->root()->SetIndexedReference(HeapGraphEdge::kElement, 1, message); |
|
yurys
2013/04/18 07:05:41
Can you add a test for this?
alph
2013/04/18 09:09:08
To trigger this code execution I have to create a
|
| + HeapEntry* message = result->AddEntry(HeapEntry::kObject, text, 0, 4); |
| + result->root()->SetNamedReference(HeapGraphEdge::kShortcut, "", message); |
| result->FillChildren(); |
| return result; |
| } |