| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 bool PrepareForIteration(); | 98 bool PrepareForIteration(); |
| 99 | 99 |
| 100 #ifdef DEBUG | 100 #ifdef DEBUG |
| 101 void Clean(); | 101 void Clean(); |
| 102 // Slow, for asserts only. | 102 // Slow, for asserts only. |
| 103 bool CellIsInStoreBuffer(Address cell); | 103 bool CellIsInStoreBuffer(Address cell); |
| 104 #endif | 104 #endif |
| 105 | 105 |
| 106 void Filter(int flag); | 106 void Filter(int flag); |
| 107 | 107 |
| 108 | |
| 109 // Removes all the slots in [start_address, end_address) range from the store | |
| 110 // buffer. | |
| 111 void RemoveSlots(Address start_address, Address end_address); | |
| 112 | |
| 113 private: | 108 private: |
| 114 Heap* heap_; | 109 Heap* heap_; |
| 115 | 110 |
| 116 // The store buffer is divided up into a new buffer that is constantly being | 111 // The store buffer is divided up into a new buffer that is constantly being |
| 117 // filled by mutator activity and an old buffer that is filled with the data | 112 // filled by mutator activity and an old buffer that is filled with the data |
| 118 // from the new buffer after compression. | 113 // from the new buffer after compression. |
| 119 Address* start_; | 114 Address* start_; |
| 120 Address* limit_; | 115 Address* limit_; |
| 121 | 116 |
| 122 Address* old_start_; | 117 Address* old_start_; |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 } | 215 } |
| 221 | 216 |
| 222 private: | 217 private: |
| 223 StoreBuffer* store_buffer_; | 218 StoreBuffer* store_buffer_; |
| 224 bool stored_state_; | 219 bool stored_state_; |
| 225 }; | 220 }; |
| 226 } | 221 } |
| 227 } // namespace v8::internal | 222 } // namespace v8::internal |
| 228 | 223 |
| 229 #endif // V8_STORE_BUFFER_H_ | 224 #endif // V8_STORE_BUFFER_H_ |
| OLD | NEW |