| 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_H_ | 5 #ifndef V8_STORE_BUFFER_H_ |
| 6 #define V8_STORE_BUFFER_H_ | 6 #define V8_STORE_BUFFER_H_ |
| 7 | 7 |
| 8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/base/logging.h" | 9 #include "src/base/logging.h" |
| 10 #include "src/base/platform/platform.h" | 10 #include "src/base/platform/platform.h" |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 void IteratePointersOnPage(PagedSpace* space, Page* page, | 155 void IteratePointersOnPage(PagedSpace* space, Page* page, |
| 156 RegionCallback region_callback, | 156 RegionCallback region_callback, |
| 157 ObjectSlotCallback slot_callback); | 157 ObjectSlotCallback slot_callback); |
| 158 | 158 |
| 159 void IteratePointersInStoreBuffer(ObjectSlotCallback slot_callback); | 159 void IteratePointersInStoreBuffer(ObjectSlotCallback slot_callback); |
| 160 | 160 |
| 161 #ifdef VERIFY_HEAP | 161 #ifdef VERIFY_HEAP |
| 162 void VerifyPointers(LargeObjectSpace* space); | 162 void VerifyPointers(LargeObjectSpace* space); |
| 163 #endif | 163 #endif |
| 164 | 164 |
| 165 friend class DontMoveStoreBufferEntriesScope; |
| 166 friend class FindPointersToNewSpaceVisitor; |
| 165 friend class StoreBufferRebuildScope; | 167 friend class StoreBufferRebuildScope; |
| 166 friend class DontMoveStoreBufferEntriesScope; | |
| 167 }; | 168 }; |
| 168 | 169 |
| 169 | 170 |
| 170 class StoreBufferRebuilder { | 171 class StoreBufferRebuilder { |
| 171 public: | 172 public: |
| 172 explicit StoreBufferRebuilder(StoreBuffer* store_buffer) | 173 explicit StoreBufferRebuilder(StoreBuffer* store_buffer) |
| 173 : store_buffer_(store_buffer) {} | 174 : store_buffer_(store_buffer) {} |
| 174 | 175 |
| 175 void Callback(MemoryChunk* page, StoreBufferEvent event); | 176 void Callback(MemoryChunk* page, StoreBufferEvent event); |
| 176 | 177 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 } | 225 } |
| 225 | 226 |
| 226 private: | 227 private: |
| 227 StoreBuffer* store_buffer_; | 228 StoreBuffer* store_buffer_; |
| 228 bool stored_state_; | 229 bool stored_state_; |
| 229 }; | 230 }; |
| 230 } // namespace internal | 231 } // namespace internal |
| 231 } // namespace v8 | 232 } // namespace v8 |
| 232 | 233 |
| 233 #endif // V8_STORE_BUFFER_H_ | 234 #endif // V8_STORE_BUFFER_H_ |
| OLD | NEW |