OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 5849 matching lines...) Loading... |
5860 } | 5860 } |
5861 | 5861 |
5862 | 5862 |
5863 int HeapGraphNode::GetSelfSize() const { | 5863 int HeapGraphNode::GetSelfSize() const { |
5864 i::Isolate* isolate = i::Isolate::Current(); | 5864 i::Isolate* isolate = i::Isolate::Current(); |
5865 IsDeadCheck(isolate, "v8::HeapGraphNode::GetSelfSize"); | 5865 IsDeadCheck(isolate, "v8::HeapGraphNode::GetSelfSize"); |
5866 return ToInternal(this)->self_size(); | 5866 return ToInternal(this)->self_size(); |
5867 } | 5867 } |
5868 | 5868 |
5869 | 5869 |
5870 int HeapGraphNode::GetRetainedSize(bool exact) const { | 5870 int HeapGraphNode::GetRetainedSize() const { |
5871 i::Isolate* isolate = i::Isolate::Current(); | 5871 i::Isolate* isolate = i::Isolate::Current(); |
5872 IsDeadCheck(isolate, "v8::HeapSnapshot::GetRetainedSize"); | 5872 IsDeadCheck(isolate, "v8::HeapSnapshot::GetRetainedSize"); |
5873 return ToInternal(this)->RetainedSize(exact); | 5873 return ToInternal(this)->retained_size(); |
5874 } | 5874 } |
5875 | 5875 |
5876 | 5876 |
5877 int HeapGraphNode::GetChildrenCount() const { | 5877 int HeapGraphNode::GetChildrenCount() const { |
5878 i::Isolate* isolate = i::Isolate::Current(); | 5878 i::Isolate* isolate = i::Isolate::Current(); |
5879 IsDeadCheck(isolate, "v8::HeapSnapshot::GetChildrenCount"); | 5879 IsDeadCheck(isolate, "v8::HeapSnapshot::GetChildrenCount"); |
5880 return ToInternal(this)->children().length(); | 5880 return ToInternal(this)->children().length(); |
5881 } | 5881 } |
5882 | 5882 |
5883 | 5883 |
(...skipping 304 matching lines...) Loading... |
6188 | 6188 |
6189 | 6189 |
6190 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { | 6190 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { |
6191 HandleScopeImplementer* scope_implementer = | 6191 HandleScopeImplementer* scope_implementer = |
6192 reinterpret_cast<HandleScopeImplementer*>(storage); | 6192 reinterpret_cast<HandleScopeImplementer*>(storage); |
6193 scope_implementer->IterateThis(v); | 6193 scope_implementer->IterateThis(v); |
6194 return storage + ArchiveSpacePerThread(); | 6194 return storage + ArchiveSpacePerThread(); |
6195 } | 6195 } |
6196 | 6196 |
6197 } } // namespace v8::internal | 6197 } } // namespace v8::internal |
OLD | NEW |