Index: src/heap-snapshot-generator.cc |
diff --git a/src/heap-snapshot-generator.cc b/src/heap-snapshot-generator.cc |
index 5d10e3b66dbdf520b67ec26248ca6e8ac7109a03..cccb07bb346350cb1413850c6d68d33af1e311ef 100644 |
--- a/src/heap-snapshot-generator.cc |
+++ b/src/heap-snapshot-generator.cc |
@@ -1047,6 +1047,8 @@ void V8HeapExplorer::ExtractReferences(HeapObject* obj) { |
ExtractCodeCacheReferences(entry, CodeCache::cast(obj)); |
} else if (obj->IsCode()) { |
ExtractCodeReferences(entry, Code::cast(obj)); |
+ } else if (obj->IsBox()) { |
+ ExtractBoxReferences(entry, Box::cast(obj)); |
} else if (obj->IsCell()) { |
ExtractCellReferences(entry, Cell::cast(obj)); |
} else if (obj->IsPropertyCell()) { |
@@ -1412,6 +1414,11 @@ void V8HeapExplorer::ExtractCodeReferences(int entry, Code* code) { |
} |
+void V8HeapExplorer::ExtractBoxReferences(int entry, Box* box) { |
+ SetInternalReference(box, entry, "value", box->value(), Box::kValueOffset); |
+} |
+ |
+ |
void V8HeapExplorer::ExtractCellReferences(int entry, Cell* cell) { |
SetInternalReference(cell, entry, "value", cell->value(), Cell::kValueOffset); |
} |