Index: src/mips64/assembler-mips64.cc |
diff --git a/src/mips64/assembler-mips64.cc b/src/mips64/assembler-mips64.cc |
index 1eb312f8ca8ad2bdb07806a014239dd74fe18216..bd4e3e225fbee830479f418fe50b641d9c1b9e6e 100644 |
--- a/src/mips64/assembler-mips64.cc |
+++ b/src/mips64/assembler-mips64.cc |
@@ -204,6 +204,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)); |
imm64_ = reinterpret_cast<intptr_t>(handle.location()); |
rmode_ = RelocInfo::EMBEDDED_OBJECT; |
} else { |