Index: src/heap/spaces.cc |
diff --git a/src/heap/spaces.cc b/src/heap/spaces.cc |
index 2aa0c21eb6d39692ee824b8a3aa5d682f2dc06e7..6cdc65ced0c2c66fb13d458cf62e31647d085803 100644 |
--- a/src/heap/spaces.cc |
+++ b/src/heap/spaces.cc |
@@ -2932,11 +2932,10 @@ void PagedSpace::ReportStatistics() { |
// ----------------------------------------------------------------------------- |
// MapSpace implementation |
-// TODO(mvstanton): this is weird...the compiler can't make a vtable unless |
-// there is at least one non-inlined virtual function. I would prefer to hide |
-// the VerifyObject definition behind VERIFY_HEAP. |
+#ifdef VERIFY_HEAP |
void MapSpace::VerifyObject(HeapObject* object) { CHECK(object->IsMap()); } |
+#endif |
// ----------------------------------------------------------------------------- |