| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_STORE_BUFFER_INL_H_ | 5 #ifndef V8_STORE_BUFFER_INL_H_ |
| 6 #define V8_STORE_BUFFER_INL_H_ | 6 #define V8_STORE_BUFFER_INL_H_ |
| 7 | 7 |
| 8 #include "src/heap/store-buffer.h" | 8 #include "src/heap/store-buffer.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 old_top_ = top; | 42 old_top_ = top; |
| 43 old_buffer_is_sorted_ = false; | 43 old_buffer_is_sorted_ = false; |
| 44 old_buffer_is_filtered_ = false; | 44 old_buffer_is_filtered_ = false; |
| 45 if (top >= old_limit_) { | 45 if (top >= old_limit_) { |
| 46 DCHECK(callback_ != NULL); | 46 DCHECK(callback_ != NULL); |
| 47 (*callback_)(heap_, MemoryChunk::FromAnyPointerAddress(heap_, addr), | 47 (*callback_)(heap_, MemoryChunk::FromAnyPointerAddress(heap_, addr), |
| 48 kStoreBufferFullEvent); | 48 kStoreBufferFullEvent); |
| 49 } | 49 } |
| 50 } | 50 } |
| 51 } | 51 } |
| 52 | |
| 53 | |
| 54 void StoreBuffer::ClearDeadObject(HeapObject* object) { | |
| 55 Address& map_field = Memory::Address_at(object->address()); | |
| 56 if (heap_->map_space()->Contains(map_field)) { | |
| 57 map_field = NULL; | |
| 58 } | |
| 59 } | |
| 60 } | 52 } |
| 61 } // namespace v8::internal | 53 } // namespace v8::internal |
| 62 | 54 |
| 63 #endif // V8_STORE_BUFFER_INL_H_ | 55 #endif // V8_STORE_BUFFER_INL_H_ |
| OLD | NEW |