Index: src/profile-generator.cc |
diff --git a/src/profile-generator.cc b/src/profile-generator.cc |
index 82696a91a13f76aec17043bc22ca89833cd16a2e..0cf96ba4e0587bfddd181e121d0a0521bb8b4bcc 100644 |
--- a/src/profile-generator.cc |
+++ b/src/profile-generator.cc |
@@ -1865,9 +1865,11 @@ void V8HeapExplorer::ExtractReferences(HeapObject* obj) { |
SetInternalReference(obj, entry, |
"constructor", map->constructor(), |
Map::kConstructorOffset); |
- SetInternalReference(obj, entry, |
- "descriptors", map->instance_descriptors(), |
- Map::kInstanceDescriptorsOffset); |
+ if (!map->instance_descriptors()->IsEmpty()) { |
+ SetInternalReference(obj, entry, |
+ "descriptors", map->instance_descriptors(), |
+ Map::kInstanceDescriptorsOrBitField3Offset); |
+ } |
SetInternalReference(obj, entry, |
"code_cache", map->code_cache(), |
Map::kCodeCacheOffset); |