28 #ifndef V8_HEAP_SNAPSHOT_GENERATOR_INL_H_
29 #define V8_HEAP_SNAPSHOT_GENERATOR_INL_H_
37 HeapEntry* HeapGraphEdge::from()
const {
38 return &snapshot()->entries()[from_index_];
42 HeapSnapshot* HeapGraphEdge::snapshot()
const {
43 return to_entry_->snapshot();
47 int HeapEntry::index()
const {
48 return static_cast<int>(
this - &snapshot_->entries().first());
52 int HeapEntry::set_children_index(
int index) {
53 children_index_ = index;
54 int next_index = index + children_count_;
60 HeapGraphEdge** HeapEntry::children_arr() {
61 ASSERT(children_index_ >= 0);
62 SLOW_ASSERT(children_index_ < snapshot_->children().length() ||
63 (children_index_ == snapshot_->children().length() &&
64 children_count_ == 0));
65 return &snapshot_->children().first() + children_index_;
74 HeapObject* V8HeapExplorer::GetNthGcSubrootObject(
int delta) {
76 reinterpret_cast<char*
>(kFirstGcSubrootObject) +
81 int V8HeapExplorer::GetGcSubrootOrder(HeapObject* subroot) {
82 return static_cast<int>(
83 (
reinterpret_cast<char*
>(subroot) -
84 reinterpret_cast<char*>(kFirstGcSubrootObject)) /
90 #endif // V8_HEAP_SNAPSHOT_GENERATOR_INL_H_
#define SLOW_ASSERT(condition)
static const SnapshotObjectId kGcRootsFirstSubrootId
static SnapshotObjectId GetNthGcSubrootId(int delta)
#define ASSERT(condition)
static const int kObjectIdStep
uint32_t SnapshotObjectId