Index: src/profile-generator.cc |
diff --git a/src/profile-generator.cc b/src/profile-generator.cc |
index f50d85cfdad8bc15ddb2754a698cc503bf64bb8c..d9259c8c25ee294d828ea6134d8eeb5fc3a049f0 100644 |
--- a/src/profile-generator.cc |
+++ b/src/profile-generator.cc |
@@ -3094,13 +3094,13 @@ bool HeapSnapshotGenerator::GenerateSnapshot() { |
Heap::kMakeHeapIterableMask, |
"HeapSnapshotGenerator::GenerateSnapshot"); |
-#ifdef DEBUG |
+#ifdef VERIFY_HEAP |
Heap* debug_heap = Isolate::Current()->heap(); |
- ASSERT(!debug_heap->old_data_space()->was_swept_conservatively()); |
- ASSERT(!debug_heap->old_pointer_space()->was_swept_conservatively()); |
- ASSERT(!debug_heap->code_space()->was_swept_conservatively()); |
- ASSERT(!debug_heap->cell_space()->was_swept_conservatively()); |
- ASSERT(!debug_heap->map_space()->was_swept_conservatively()); |
+ CHECK(!debug_heap->old_data_space()->was_swept_conservatively()); |
+ CHECK(!debug_heap->old_pointer_space()->was_swept_conservatively()); |
+ CHECK(!debug_heap->code_space()->was_swept_conservatively()); |
+ CHECK(!debug_heap->cell_space()->was_swept_conservatively()); |
+ CHECK(!debug_heap->map_space()->was_swept_conservatively()); |
#endif |
// The following code uses heap iterators, so we want the heap to be |