| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 4854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4865 ToInternal(this)->title()))); | 4865 ToInternal(this)->title()))); |
| 4866 } | 4866 } |
| 4867 | 4867 |
| 4868 | 4868 |
| 4869 const HeapGraphNode* HeapSnapshot::GetRoot() const { | 4869 const HeapGraphNode* HeapSnapshot::GetRoot() const { |
| 4870 IsDeadCheck("v8::HeapSnapshot::GetHead"); | 4870 IsDeadCheck("v8::HeapSnapshot::GetHead"); |
| 4871 return reinterpret_cast<const HeapGraphNode*>(ToInternal(this)->root()); | 4871 return reinterpret_cast<const HeapGraphNode*>(ToInternal(this)->root()); |
| 4872 } | 4872 } |
| 4873 | 4873 |
| 4874 | 4874 |
| 4875 const HeapGraphNode* HeapSnapshot::GetNodeById(uint64_t id) const { |
| 4876 IsDeadCheck("v8::HeapSnapshot::GetNodeById"); |
| 4877 return reinterpret_cast<const HeapGraphNode*>( |
| 4878 ToInternal(this)->GetEntryById(id)); |
| 4879 } |
| 4880 |
| 4881 |
| 4875 const HeapSnapshotsDiff* HeapSnapshot::CompareWith( | 4882 const HeapSnapshotsDiff* HeapSnapshot::CompareWith( |
| 4876 const HeapSnapshot* snapshot) const { | 4883 const HeapSnapshot* snapshot) const { |
| 4877 IsDeadCheck("v8::HeapSnapshot::CompareWith"); | 4884 IsDeadCheck("v8::HeapSnapshot::CompareWith"); |
| 4878 return reinterpret_cast<const HeapSnapshotsDiff*>( | 4885 return reinterpret_cast<const HeapSnapshotsDiff*>( |
| 4879 ToInternal(this)->CompareWith(ToInternal(snapshot))); | 4886 ToInternal(this)->CompareWith(ToInternal(snapshot))); |
| 4880 } | 4887 } |
| 4881 | 4888 |
| 4882 | 4889 |
| 4883 void HeapSnapshot::Serialize(OutputStream* stream, | 4890 void HeapSnapshot::Serialize(OutputStream* stream, |
| 4884 HeapSnapshot::SerializationFormat format) const { | 4891 HeapSnapshot::SerializationFormat format) const { |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5014 | 5021 |
| 5015 | 5022 |
| 5016 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { | 5023 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { |
| 5017 HandleScopeImplementer* thread_local = | 5024 HandleScopeImplementer* thread_local = |
| 5018 reinterpret_cast<HandleScopeImplementer*>(storage); | 5025 reinterpret_cast<HandleScopeImplementer*>(storage); |
| 5019 thread_local->IterateThis(v); | 5026 thread_local->IterateThis(v); |
| 5020 return storage + ArchiveSpacePerThread(); | 5027 return storage + ArchiveSpacePerThread(); |
| 5021 } | 5028 } |
| 5022 | 5029 |
| 5023 } } // namespace v8::internal | 5030 } } // namespace v8::internal |
| OLD | NEW |