Index: src/heap-inl.h |
diff --git a/src/heap-inl.h b/src/heap-inl.h |
index 916a6a293c695a2c02ce370733231320a2b0139b..36448764ab1c402b4384c3e90b58fbec3c625792 100644 |
--- a/src/heap-inl.h |
+++ b/src/heap-inl.h |
@@ -320,8 +320,8 @@ bool Heap::InNewSpace(Object* object) { |
} |
-bool Heap::InNewSpace(Address addr) { |
- return new_space_.Contains(addr); |
+bool Heap::InNewSpace(Address address) { |
+ return new_space_.Contains(address); |
} |
@@ -335,6 +335,16 @@ bool Heap::InToSpace(Object* object) { |
} |
+bool Heap::InOldPointerSpace(Address address) { |
+ return old_pointer_space_->Contains(address); |
+} |
+ |
+ |
+bool Heap::InOldPointerSpace(Object* object) { |
+ return InOldPointerSpace(reinterpret_cast<Address>(object)); |
+} |
+ |
+ |
bool Heap::OldGenerationAllocationLimitReached() { |
if (!incremental_marking()->IsStopped()) return false; |
return OldGenerationSpaceAvailable() < 0; |