Index: src/heap-snapshot-generator.h |
diff --git a/src/heap-snapshot-generator.h b/src/heap-snapshot-generator.h |
index 59d324e499cf8daeabc404a6f05f501a28397d0e..d93362f63bc1a6d61fa90792b660a1e0b9432a2a 100644 |
--- a/src/heap-snapshot-generator.h |
+++ b/src/heap-snapshot-generator.h |
@@ -57,15 +57,14 @@ class HeapGraphEdge BASE_EMBEDDED { |
Type type() const { return static_cast<Type>(type_); } |
int index() const { |
- ASSERT(type_ == kElement || type_ == kHidden); |
+ ASSERT(type_ == kElement || type_ == kHidden || type_ == kWeak); |
return index_; |
} |
const char* name() const { |
ASSERT(type_ == kContextVariable |
|| type_ == kProperty |
|| type_ == kInternal |
- || type_ == kShortcut |
- || type_ == kWeak); |
+ || type_ == kShortcut); |
return name_; |
} |
INLINE(HeapEntry* from() const); |
@@ -449,7 +448,7 @@ class V8HeapExplorer : public HeapEntriesAllocator { |
Object* child); |
void SetWeakReference(HeapObject* parent_obj, |
int parent, |
- const char* reference_name, |
+ int index, |
Object* child_obj, |
int field_offset); |
void SetPropertyReference(HeapObject* parent_obj, |