Chromium Code Reviews| Index: src/heap/heap.cc |
| diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
| index 08d44f5bb962d48949acaa6a87577dac6788afab..4e7322f8ff6e6b5ebaf0b2127775258ed9544524 100644 |
| --- a/src/heap/heap.cc |
| +++ b/src/heap/heap.cc |
| @@ -4380,11 +4380,16 @@ bool Heap::IsValidAllocationSpace(AllocationSpace space) { |
| bool Heap::RootIsImmortalImmovable(int root_index) { |
| switch (root_index) { |
| -#define CASE(name) \ |
| - case Heap::k##name##RootIndex: \ |
| +#define IMMORTAL_IMMOVABLE_ROOT(name) case Heap::k##name##RootIndex: |
| + IMMORTAL_IMMOVABLE_ROOT_LIST(IMMORTAL_IMMOVABLE_ROOT); |
|
Michael Starzinger
2015/11/10 09:23:17
nit: Trailing semicolon is not needed.
Benedikt Meurer
2015/11/10 09:30:10
Done.
|
| +#undef IMMORTAL_IMMOVABLE_ROOT |
| +#define INTERNALIZED_STRING(name, value) case Heap::k##name##RootIndex: |
| + INTERNALIZED_STRING_LIST(INTERNALIZED_STRING) |
| +#undef INTERNALIZED_STRING |
| +#define STRING_TYPE(NAME, size, name, Name) case Heap::k##Name##MapRootIndex: |
| + STRING_TYPE_LIST(STRING_TYPE) |
| +#undef STRING_TYPE |
| return true; |
| - IMMORTAL_IMMOVABLE_ROOT_LIST(CASE); |
| -#undef CASE |
| default: |
| return false; |
| } |