Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index 456fc34fc8cf8601d5902937d3451cc8a0205a58..bc46cc2cff46d51d2ebaed81bce29d7476d25560 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -4920,20 +4920,6 @@ bool Heap::RootIsImmortalImmovable(int root_index) { |
} |
-bool Heap::GetRootListIndex(Handle<HeapObject> object, |
- Heap::RootListIndex* index_return) { |
- Object* ptr = *object; |
-#define IMMORTAL_IMMOVABLE_ROOT(Name) \ |
- if (ptr == roots_[Heap::k##Name##RootIndex]) { \ |
- *index_return = k##Name##RootIndex; \ |
- return true; \ |
- } |
- IMMORTAL_IMMOVABLE_ROOT_LIST(IMMORTAL_IMMOVABLE_ROOT) |
-#undef IMMORTAL_IMMOVABLE_ROOT |
- return false; |
-} |
- |
- |
#ifdef VERIFY_HEAP |
void Heap::Verify() { |
CHECK(HasBeenSetUp()); |