Index: src/heap/mark-compact.h |
diff --git a/src/heap/mark-compact.h b/src/heap/mark-compact.h |
index b91ebe7e6475a06806fc31fa02c2149e0643a20c..9952b7953dfb154e73e81eccfb4e260a04a3e98b 100644 |
--- a/src/heap/mark-compact.h |
+++ b/src/heap/mark-compact.h |
@@ -36,13 +36,10 @@ class RootMarkingVisitor; |
class ObjectMarking : public AllStatic { |
public: |
- INLINE(static MarkBit MarkBitFrom(Address addr)) { |
- MemoryChunk* p = MemoryChunk::FromAddress(addr); |
- return p->markbits()->MarkBitFromIndex(p->AddressToMarkbitIndex(addr)); |
- } |
- |
- INLINE(static MarkBit MarkBitFrom(HeapObject* obj)) { |
- return MarkBitFrom(reinterpret_cast<Address>(obj)); |
+ V8_INLINE static MarkBit MarkBitFrom(HeapObject* obj) { |
+ const Address address = obj->address(); |
+ MemoryChunk* p = MemoryChunk::FromAddress(address); |
+ return p->markbits()->MarkBitFromIndex(p->AddressToMarkbitIndex(address)); |
} |
static Marking::ObjectColor Color(HeapObject* obj) { |