| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index f4c21acd8952197384422f7a64c657e94de86991..26fcf11716c7c596ebda84ab13d1d20baace2c53 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -1383,8 +1383,9 @@ void HeapObject::VerifySmiField(int offset) {
|
|
|
|
|
| Heap* HeapObject::GetHeap() const {
|
| - Heap* heap =
|
| - MemoryChunk::FromAddress(reinterpret_cast<const byte*>(this))->heap();
|
| + Heap* heap = MemoryChunk::FromAddress(
|
| + reinterpret_cast<Address>(const_cast<HeapObject*>(this)))
|
| + ->heap();
|
| SLOW_DCHECK(heap != NULL);
|
| return heap;
|
| }
|
|
|