Chromium Code Reviews| Index: src/api.cc |
| diff --git a/src/api.cc b/src/api.cc |
| index dfde26565b1393bfa4de6f36b7844e3698c29586..fe822fa826c50d164a4dd862f91c2c6f0be18ef5 100644 |
| --- a/src/api.cc |
| +++ b/src/api.cc |
| @@ -6971,7 +6971,9 @@ SnapshotObjectId HeapGraphNode::GetId() const { |
| int HeapGraphNode::GetSelfSize() const { |
| - return ToInternal(this)->self_size(); |
| + size_t size = ToInternal(this)->self_size(); |
|
loislo
2014/02/14 13:26:02
please introduce GetShallowSize with size_t return
alph
2014/02/17 16:57:52
Done.
|
| + CHECK(size <= static_cast<size_t>(internal::kMaxInt)); |
| + return static_cast<int>(size); |
| } |