Fixed VERIFY_HEAP without DEBUG.

Review URL: https://codereview.chromium.org/11155007

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12731 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
svenpanne@chromium.org 2012-10-15 12:36:58 +00:00
parent 1fef757b4e
commit 57116621eb

View File

@ -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