| Index: src/profiler/heap-snapshot-generator-inl.h
|
| diff --git a/src/profiler/heap-snapshot-generator-inl.h b/src/profiler/heap-snapshot-generator-inl.h
|
| index 169ab569e82dc86ef8a4fe1009d9806e682ae370..eeb212a7a3ee32548d0984660cc02b9943d782fb 100644
|
| --- a/src/profiler/heap-snapshot-generator-inl.h
|
| +++ b/src/profiler/heap-snapshot-generator-inl.h
|
| @@ -38,13 +38,17 @@ int HeapEntry::set_children_index(int index) {
|
| return next_index;
|
| }
|
|
|
| -
|
| -HeapGraphEdge** HeapEntry::children_arr() {
|
| +std::deque<HeapGraphEdge*>::iterator HeapEntry::children_begin() {
|
| DCHECK(children_index_ >= 0);
|
| - SLOW_DCHECK(children_index_ < snapshot_->children().length() ||
|
| - (children_index_ == snapshot_->children().length() &&
|
| + SLOW_DCHECK(
|
| + children_index_ < static_cast<int>(snapshot_->children().size()) ||
|
| + (children_index_ == static_cast<int>(snapshot_->children().size()) &&
|
| children_count_ == 0));
|
| - return &snapshot_->children().first() + children_index_;
|
| + return snapshot_->children().begin() + children_index_;
|
| +}
|
| +
|
| +std::deque<HeapGraphEdge*>::iterator HeapEntry::children_end() {
|
| + return children_begin() + children_count_;
|
| }
|
|
|
|
|
|
|