Index: src/heap-snapshot-generator-inl.h |
diff --git a/src/heap-snapshot-generator-inl.h b/src/heap-snapshot-generator-inl.h |
index 43002d2d2b170346dd124093783bd65c64682b5a..e16d309969d77299b80835a0efee3e75a483a11f 100644 |
--- a/src/heap-snapshot-generator-inl.h |
+++ b/src/heap-snapshot-generator-inl.h |
@@ -59,7 +59,8 @@ int HeapEntry::set_children_index(int index) { |
HeapGraphEdge** HeapEntry::children_arr() { |
ASSERT(children_index_ >= 0); |
- return &snapshot_->children()[children_index_]; |
+ SLOW_ASSERT(children_index_ <= snapshot_->children().length()); |
alph
2013/12/18 13:46:59
SLOW_ASSERT(children_index_ < snapshot_->children(
yurys
2013/12/18 15:07:15
Done.
|
+ return &snapshot_->children().first() + children_index_; |
} |