Index: src/x87/assembler-x87-inl.h |
diff --git a/src/x87/assembler-x87-inl.h b/src/x87/assembler-x87-inl.h |
index 779feeb90749464fd9e97acf7af4d8e5845c9855..bbf712b933d95d499fc197c1604cb84f860c459b 100644 |
--- a/src/x87/assembler-x87-inl.h |
+++ b/src/x87/assembler-x87-inl.h |
@@ -138,8 +138,6 @@ void RelocInfo::set_target_object(Object* target, |
if (write_barrier_mode == UPDATE_WRITE_BARRIER && |
host() != NULL && |
target->IsHeapObject()) { |
- host()->GetHeap()->incremental_marking()->RecordWriteIntoCode( |
- host(), this, HeapObject::cast(target)); |
host()->GetHeap()->RecordWriteIntoCode(host(), this, target); |
} |
} |
@@ -343,7 +341,6 @@ Immediate::Immediate(Handle<Object> handle) { |
// Verify all Objects referred by code are NOT in new space. |
Object* obj = *handle; |
if (obj->IsHeapObject()) { |
- DCHECK(!HeapObject::cast(obj)->GetHeap()->InNewSpace(obj)); |
x_ = reinterpret_cast<intptr_t>(handle.location()); |
rmode_ = RelocInfo::EMBEDDED_OBJECT; |
} else { |
@@ -382,7 +379,6 @@ void Assembler::emit(Handle<Object> handle) { |
AllowDeferredHandleDereference heap_object_check; |
// Verify all Objects referred by code are NOT in new space. |
Object* obj = *handle; |
- DCHECK(!isolate()->heap()->InNewSpace(obj)); |
if (obj->IsHeapObject()) { |
emit(reinterpret_cast<intptr_t>(handle.location()), |
RelocInfo::EMBEDDED_OBJECT); |