OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_HEAP_SNAPSHOT_GENERATOR_INL_H_ | 5 #ifndef V8_HEAP_SNAPSHOT_GENERATOR_INL_H_ |
6 #define V8_HEAP_SNAPSHOT_GENERATOR_INL_H_ | 6 #define V8_HEAP_SNAPSHOT_GENERATOR_INL_H_ |
7 | 7 |
8 #include "heap-snapshot-generator.h" | 8 #include "src/heap-snapshot-generator.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
11 namespace internal { | 11 namespace internal { |
12 | 12 |
13 | 13 |
14 HeapEntry* HeapGraphEdge::from() const { | 14 HeapEntry* HeapGraphEdge::from() const { |
15 return &snapshot()->entries()[from_index_]; | 15 return &snapshot()->entries()[from_index_]; |
16 } | 16 } |
17 | 17 |
18 | 18 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 int V8HeapExplorer::GetGcSubrootOrder(HeapObject* subroot) { | 58 int V8HeapExplorer::GetGcSubrootOrder(HeapObject* subroot) { |
59 return static_cast<int>( | 59 return static_cast<int>( |
60 (reinterpret_cast<char*>(subroot) - | 60 (reinterpret_cast<char*>(subroot) - |
61 reinterpret_cast<char*>(kFirstGcSubrootObject)) / | 61 reinterpret_cast<char*>(kFirstGcSubrootObject)) / |
62 HeapObjectsMap::kObjectIdStep); | 62 HeapObjectsMap::kObjectIdStep); |
63 } | 63 } |
64 | 64 |
65 } } // namespace v8::internal | 65 } } // namespace v8::internal |
66 | 66 |
67 #endif // V8_HEAP_SNAPSHOT_GENERATOR_INL_H_ | 67 #endif // V8_HEAP_SNAPSHOT_GENERATOR_INL_H_ |
OLD | NEW |