Revision: 9609 Author: [email protected] Date: Thu Oct 13 05:44:52 2011 Log: Put store buffer verification behind a flag.
[email protected] Review URL: http://codereview.chromium.org/8261008 http://code.google.com/p/v8/source/detail?r=9609 Modified: /branches/bleeding_edge/src/store-buffer.cc ======================================= --- /branches/bleeding_edge/src/store-buffer.cc Mon Sep 19 11:36:47 2011 +++ /branches/bleeding_edge/src/store-buffer.cc Thu Oct 13 05:44:52 2011 @@ -390,11 +390,13 @@ void StoreBuffer::Verify() { #ifdef DEBUG - VerifyPointers(heap_->old_pointer_space(), - &StoreBuffer::FindPointersToNewSpaceInRegion); - VerifyPointers(heap_->map_space(), - &StoreBuffer::FindPointersToNewSpaceInMapsRegion); - VerifyPointers(heap_->lo_space()); + if (FLAG_enable_slow_asserts || FLAG_verify_heap) { + VerifyPointers(heap_->old_pointer_space(), + &StoreBuffer::FindPointersToNewSpaceInRegion); + VerifyPointers(heap_->map_space(), + &StoreBuffer::FindPointersToNewSpaceInMapsRegion); + VerifyPointers(heap_->lo_space()); + } #endif } -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
