| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 | 100 |
| 101 void Filter(int flag); | 101 void Filter(int flag); |
| 102 | 102 |
| 103 // Eliminates all stale store buffer entries from the store buffer, i.e., | 103 // Eliminates all stale store buffer entries from the store buffer, i.e., |
| 104 // slots that are not part of live objects anymore. This method must be | 104 // slots that are not part of live objects anymore. This method must be |
| 105 // called after marking, when the whole transitive closure is known and | 105 // called after marking, when the whole transitive closure is known and |
| 106 // must be called before sweeping when mark bits are still intact. | 106 // must be called before sweeping when mark bits are still intact. |
| 107 void ClearInvalidStoreBufferEntries(); | 107 void ClearInvalidStoreBufferEntries(); |
| 108 void VerifyValidStoreBufferEntries(); | 108 void VerifyValidStoreBufferEntries(); |
| 109 | 109 |
| 110 // Removes all the slots in [start_address, end_address) range from the store |
| 111 // buffer. |
| 112 void RemoveSlots(Address start_address, Address end_address); |
| 113 |
| 110 private: | 114 private: |
| 111 Heap* heap_; | 115 Heap* heap_; |
| 112 | 116 |
| 113 // The store buffer is divided up into a new buffer that is constantly being | 117 // The store buffer is divided up into a new buffer that is constantly being |
| 114 // filled by mutator activity and an old buffer that is filled with the data | 118 // filled by mutator activity and an old buffer that is filled with the data |
| 115 // from the new buffer after compression. | 119 // from the new buffer after compression. |
| 116 Address* start_; | 120 Address* start_; |
| 117 Address* limit_; | 121 Address* limit_; |
| 118 | 122 |
| 119 Address* old_start_; | 123 Address* old_start_; |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 } | 214 } |
| 211 | 215 |
| 212 private: | 216 private: |
| 213 StoreBuffer* store_buffer_; | 217 StoreBuffer* store_buffer_; |
| 214 bool stored_state_; | 218 bool stored_state_; |
| 215 }; | 219 }; |
| 216 } | 220 } |
| 217 } // namespace v8::internal | 221 } // namespace v8::internal |
| 218 | 222 |
| 219 #endif // V8_STORE_BUFFER_H_ | 223 #endif // V8_STORE_BUFFER_H_ |
| OLD | NEW |