| 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 // visit_pointer_region callback. | 160 // visit_pointer_region callback. |
| 161 // If either visit_pointer_region or callback can cause an allocation | 161 // If either visit_pointer_region or callback can cause an allocation |
| 162 // in old space and changes in allocation watermark then | 162 // in old space and changes in allocation watermark then |
| 163 // can_preallocate_during_iteration should be set to true. | 163 // can_preallocate_during_iteration should be set to true. |
| 164 void IteratePointersOnPage( | 164 void IteratePointersOnPage( |
| 165 PagedSpace* space, | 165 PagedSpace* space, |
| 166 Page* page, | 166 Page* page, |
| 167 RegionCallback region_callback, | 167 RegionCallback region_callback, |
| 168 ObjectSlotCallback slot_callback); | 168 ObjectSlotCallback slot_callback); |
| 169 | 169 |
| 170 void FindPointersToNewSpaceInMaps( | |
| 171 Address start, | |
| 172 Address end, | |
| 173 ObjectSlotCallback slot_callback, | |
| 174 bool clear_maps); | |
| 175 | |
| 176 void FindPointersToNewSpaceInMapsRegion( | |
| 177 Address start, | |
| 178 Address end, | |
| 179 ObjectSlotCallback slot_callback, | |
| 180 bool clear_maps); | |
| 181 | |
| 182 void IteratePointersInStoreBuffer(ObjectSlotCallback slot_callback, | 170 void IteratePointersInStoreBuffer(ObjectSlotCallback slot_callback, |
| 183 bool clear_maps); | 171 bool clear_maps); |
| 184 | 172 |
| 185 #ifdef VERIFY_HEAP | 173 #ifdef VERIFY_HEAP |
| 186 void VerifyPointers(LargeObjectSpace* space); | 174 void VerifyPointers(LargeObjectSpace* space); |
| 187 #endif | 175 #endif |
| 188 | 176 |
| 189 friend class StoreBufferRebuildScope; | 177 friend class StoreBufferRebuildScope; |
| 190 friend class DontMoveStoreBufferEntriesScope; | 178 friend class DontMoveStoreBufferEntriesScope; |
| 191 }; | 179 }; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 } | 217 } |
| 230 | 218 |
| 231 private: | 219 private: |
| 232 StoreBuffer* store_buffer_; | 220 StoreBuffer* store_buffer_; |
| 233 bool stored_state_; | 221 bool stored_state_; |
| 234 }; | 222 }; |
| 235 | 223 |
| 236 } } // namespace v8::internal | 224 } } // namespace v8::internal |
| 237 | 225 |
| 238 #endif // V8_STORE_BUFFER_H_ | 226 #endif // V8_STORE_BUFFER_H_ |
| OLD | NEW |