OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 slot_address += kPointerSize; | 383 slot_address += kPointerSize; |
384 } | 384 } |
385 } | 385 } |
386 } | 386 } |
387 } | 387 } |
388 #endif | 388 #endif |
389 | 389 |
390 | 390 |
391 void StoreBuffer::Verify() { | 391 void StoreBuffer::Verify() { |
392 #ifdef DEBUG | 392 #ifdef DEBUG |
393 VerifyPointers(heap_->old_pointer_space(), | 393 if (FLAG_enable_slow_asserts || FLAG_verify_heap) { |
394 &StoreBuffer::FindPointersToNewSpaceInRegion); | 394 VerifyPointers(heap_->old_pointer_space(), |
395 VerifyPointers(heap_->map_space(), | 395 &StoreBuffer::FindPointersToNewSpaceInRegion); |
396 &StoreBuffer::FindPointersToNewSpaceInMapsRegion); | 396 VerifyPointers(heap_->map_space(), |
397 VerifyPointers(heap_->lo_space()); | 397 &StoreBuffer::FindPointersToNewSpaceInMapsRegion); |
| 398 VerifyPointers(heap_->lo_space()); |
| 399 } |
398 #endif | 400 #endif |
399 } | 401 } |
400 | 402 |
401 | 403 |
402 void StoreBuffer::GCEpilogue() { | 404 void StoreBuffer::GCEpilogue() { |
403 during_gc_ = false; | 405 during_gc_ = false; |
404 Verify(); | 406 Verify(); |
405 } | 407 } |
406 | 408 |
407 | 409 |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
685 } | 687 } |
686 | 688 |
687 | 689 |
688 void StoreBuffer::CheckForFullBuffer() { | 690 void StoreBuffer::CheckForFullBuffer() { |
689 if (old_limit_ - old_top_ < kStoreBufferSize * 2) { | 691 if (old_limit_ - old_top_ < kStoreBufferSize * 2) { |
690 HandleFullness(); | 692 HandleFullness(); |
691 } | 693 } |
692 } | 694 } |
693 | 695 |
694 } } // namespace v8::internal | 696 } } // namespace v8::internal |
OLD | NEW |