Index: src/mips/assembler-mips.cc |
diff --git a/src/mips/assembler-mips.cc b/src/mips/assembler-mips.cc |
index 0bb00b4c503f837acddb5e61e56a82d16443c561..345b642454b1b5c09669743eca17a9b5876cac8e 100644 |
--- a/src/mips/assembler-mips.cc |
+++ b/src/mips/assembler-mips.cc |
@@ -238,15 +238,12 @@ void RelocInfo::PatchCodeWithCall(Address target, int guard_bytes) { |
// See assembler-mips-inl.h for inlined constructors. |
Operand::Operand(Handle<Object> handle) { |
-#ifdef DEBUG |
- Isolate* isolate = Isolate::Current(); |
-#endif |
AllowDeferredHandleDereference using_raw_address; |
rm_ = no_reg; |
// Verify all Objects referred by code are NOT in new space. |
Object* obj = *handle; |
- ASSERT(!isolate->heap()->InNewSpace(obj)); |
if (obj->IsHeapObject()) { |
+ ASSERT(!HeapObject::cast(obj)->GetHeap()->InNewSpace(obj)); |
imm32_ = reinterpret_cast<intptr_t>(handle.location()); |
rmode_ = RelocInfo::EMBEDDED_OBJECT; |
} else { |