Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(387)

Unified Diff: src/heap/heap.h

Issue 1095513003: Move GetRootListIndex into Heap. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/code-generator.cc ('k') | src/heap/heap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/heap.h
diff --git a/src/heap/heap.h b/src/heap/heap.h
index 4a5052310efaddd209c8c9bc0ce65cbf9defda74..f106bbfe0abfe1842950b071106737c8e338edf6 100644
--- a/src/heap/heap.h
+++ b/src/heap/heap.h
@@ -1166,6 +1166,10 @@ class Heap {
kSmiRootsStart = kStringTableRootIndex + 1
};
+ // Get the root list index for {object} if such a root list index exists.
+ bool GetRootListIndex(Handle<HeapObject> object,
+ Heap::RootListIndex* index_return);
+
Object* root(RootListIndex index) { return roots_[index]; }
STATIC_ASSERT(kUndefinedValueRootIndex ==
« no previous file with comments | « src/compiler/code-generator.cc ('k') | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698