Index: src/mips/assembler-mips.cc |
diff --git a/src/mips/assembler-mips.cc b/src/mips/assembler-mips.cc |
index 402dfc8e13e19c3fedb646df53f012685a8bd052..381de5d0e84e0e0586408446ad07a9ff41d02fb7 100644 |
--- a/src/mips/assembler-mips.cc |
+++ b/src/mips/assembler-mips.cc |
@@ -225,6 +225,7 @@ |
// Verify all Objects referred by code are NOT in new space. |
Object* obj = *handle; |
if (obj->IsHeapObject()) { |
+ DCHECK(!HeapObject::cast(obj)->GetHeap()->InNewSpace(obj)); |
imm32_ = reinterpret_cast<intptr_t>(handle.location()); |
rmode_ = RelocInfo::EMBEDDED_OBJECT; |
} else { |