Chromium Code Reviews| Index: src/heap/heap.cc |
| diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
| index 38e4971f4aa55933194c8a4053f3b07a9185d438..94c8937d4592c6a1cc93377c18b609daa2e478dc 100644 |
| --- a/src/heap/heap.cc |
| +++ b/src/heap/heap.cc |
| @@ -4551,6 +4551,19 @@ bool Heap::InSpace(Address addr, AllocationSpace space) { |
| } |
| +bool Heap::RootIsImmortalImmovable(int root_index) { |
| + switch (root_index) { |
| +#define CASE(name) \ |
| + case Heap::k##name##RootIndex: \ |
| + return true; |
| + IMMORTAL_IMMOVABLE_ROOT_LIST(CASE); |
| +#undef CASE |
| + default: |
| + return false; |
| + } |
| +} |
| + |
| + |
| #ifdef VERIFY_HEAP |
| void Heap::Verify() { |
| CHECK(HasBeenSetUp()); |