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
parent 1fef757b
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment