| Index: runtime/vm/object.h
|
| diff --git a/runtime/vm/object.h b/runtime/vm/object.h
|
| index ebd93aeff9dd9da41e11b55e14ad319471552cb3..8fffdb4d3396e6c0cec6ee97746e264aec1d0317 100644
|
| --- a/runtime/vm/object.h
|
| +++ b/runtime/vm/object.h
|
| @@ -314,15 +314,11 @@ class Object {
|
|
|
| bool IsNew() const { return raw()->IsNewObject(); }
|
| bool IsOld() const { return raw()->IsOldObject(); }
|
| - bool InVMHeap() const {
|
| #if defined(DEBUG)
|
| - if (raw()->IsVMHeapObject()) {
|
| - Heap* vm_isolate_heap = Dart::vm_isolate()->heap();
|
| - ASSERT(vm_isolate_heap->Contains(RawObject::ToAddr(raw())));
|
| - }
|
| -#endif
|
| - return raw()->IsVMHeapObject();
|
| - }
|
| + bool InVMHeap() const;
|
| +#else
|
| + bool InVMHeap() const { return raw()->IsVMHeapObject(); }
|
| +#endif // DEBUG
|
|
|
| // Print the object on stdout for debugging.
|
| void Print() const;
|
|
|