Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 9bc6b9b6a5174b5dd65a9549d6f69092d0365f36..3bffe241f6e8624daad0aa70a19210477b39020d 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -5359,14 +5359,13 @@ void ExternalTwoByteString::ExternalTwoByteStringIterateBody() { |
reinterpret_cast<Resource**>(FIELD_ADDR(this, kResourceOffset))); |
} |
-#define SLOT_ADDR(obj, offset) \ |
- reinterpret_cast<Object**>((obj)->address() + offset) |
template<int start_offset, int end_offset, int size> |
void FixedBodyDescriptor<start_offset, end_offset, size>::IterateBody( |
HeapObject* obj, |
ObjectVisitor* v) { |
- v->VisitPointers(SLOT_ADDR(obj, start_offset), SLOT_ADDR(obj, end_offset)); |
+ v->VisitPointers(HeapObject::RawField(obj, start_offset), |
+ HeapObject::RawField(obj, end_offset)); |
} |
@@ -5374,10 +5373,10 @@ template<int start_offset> |
void FlexibleBodyDescriptor<start_offset>::IterateBody(HeapObject* obj, |
int object_size, |
ObjectVisitor* v) { |
- v->VisitPointers(SLOT_ADDR(obj, start_offset), SLOT_ADDR(obj, object_size)); |
+ v->VisitPointers(HeapObject::RawField(obj, start_offset), |
+ HeapObject::RawField(obj, object_size)); |
} |
-#undef SLOT_ADDR |
#undef TYPE_CHECKER |
#undef CAST_ACCESSOR |