Index: src/heap/spaces-inl.h |
diff --git a/src/heap/spaces-inl.h b/src/heap/spaces-inl.h |
index 76011768faf3d8e7f5337f4241f1742b5c0bc9e5..136dc3b1a3ffc0e0d52c3a264c872c017441fa69 100644 |
--- a/src/heap/spaces-inl.h |
+++ b/src/heap/spaces-inl.h |
@@ -133,12 +133,7 @@ |
} |
if (!obj->IsFiller()) { |
- if (obj->IsCode()) { |
- DCHECK_EQ(space_, space_->heap()->code_space()); |
- DCHECK_CODEOBJECT_SIZE(obj_size, space_); |
- } else { |
- DCHECK_OBJECT_SIZE(obj_size); |
- } |
+ DCHECK_OBJECT_SIZE(obj_size); |
return obj; |
} |
} |