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 // Returns number of slots stored in the slots buffer. | |
Hannes Payer (out of office)
2015/03/03 09:48:53
store buffer
Igor Sheludko
2015/03/04 14:54:20
Done.
| |
110 int SizeForTesting(); | |
111 | |
112 // Removes all the slots in [start_address, end_address) range from the store | |
113 // buffer. | |
114 void RemoveSlots(Address start_address, Address end_address); | |
115 | |
108 private: | 116 private: |
109 Heap* heap_; | 117 Heap* heap_; |
110 | 118 |
111 // The store buffer is divided up into a new buffer that is constantly being | 119 // The store buffer is divided up into a new buffer that is constantly being |
112 // filled by mutator activity and an old buffer that is filled with the data | 120 // filled by mutator activity and an old buffer that is filled with the data |
113 // from the new buffer after compression. | 121 // from the new buffer after compression. |
114 Address* start_; | 122 Address* start_; |
115 Address* limit_; | 123 Address* limit_; |
116 | 124 |
117 Address* old_start_; | 125 Address* old_start_; |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
215 } | 223 } |
216 | 224 |
217 private: | 225 private: |
218 StoreBuffer* store_buffer_; | 226 StoreBuffer* store_buffer_; |
219 bool stored_state_; | 227 bool stored_state_; |
220 }; | 228 }; |
221 } | 229 } |
222 } // namespace v8::internal | 230 } // namespace v8::internal |
223 | 231 |
224 #endif // V8_STORE_BUFFER_H_ | 232 #endif // V8_STORE_BUFFER_H_ |
OLD | NEW |