Index: src/objects-inl.h |
=================================================================== |
--- src/objects-inl.h (revision 5045) |
+++ src/objects-inl.h (working copy) |
@@ -2060,24 +2060,7 @@ |
ptr[index] = value; |
} |
-inline Scavenger Map::scavenger() { |
- Scavenger callback = reinterpret_cast<Scavenger>( |
- READ_INTPTR_FIELD(this, kIterateBodyCallbackOffset)); |
- ASSERT(callback == Heap::GetScavenger(instance_type(), |
- instance_size())); |
- |
- return callback; |
-} |
- |
-inline void Map::set_scavenger(Scavenger callback) { |
- ASSERT(!reinterpret_cast<Object*>( |
- reinterpret_cast<intptr_t>(callback))->IsHeapObject()); |
- WRITE_INTPTR_FIELD(this, |
- kIterateBodyCallbackOffset, |
- reinterpret_cast<intptr_t>(callback)); |
-} |
- |
int Map::instance_size() { |
return READ_BYTE_FIELD(this, kInstanceSizeOffset) << kPointerSizeLog2; |
} |