Index: src/mips/assembler-mips.cc |
diff --git a/src/mips/assembler-mips.cc b/src/mips/assembler-mips.cc |
index e36b97f180aee4fffa01ff677084a77441ca7d50..1b666ec6c073055cd5c988c92172e0506ad85314 100644 |
--- a/src/mips/assembler-mips.cc |
+++ b/src/mips/assembler-mips.cc |
@@ -237,10 +237,14 @@ 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 |
+ ALLOW_HANDLE_DEREF(isolate, "using and embedding raw address"); |
rm_ = no_reg; |
// Verify all Objects referred by code are NOT in new space. |
Object* obj = *handle; |
- ASSERT(!HEAP->InNewSpace(obj)); |
+ ASSERT(!isolate->heap()->InNewSpace(obj)); |
if (obj->IsHeapObject()) { |
imm32_ = reinterpret_cast<intptr_t>(handle.location()); |
rmode_ = RelocInfo::EMBEDDED_OBJECT; |