Index: src/arm/assembler-arm.cc |
diff --git a/src/arm/assembler-arm.cc b/src/arm/assembler-arm.cc |
index d1eb6137f0bcad578749e496a59ce56d60cd5e83..154e69be7fccc17eb9a144ebad540e87164a9a0d 100644 |
--- a/src/arm/assembler-arm.cc |
+++ b/src/arm/assembler-arm.cc |
@@ -275,6 +275,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 { |