OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 old_top_ = reinterpret_cast<Address*>(top); | 104 old_top_ = reinterpret_cast<Address*>(top); |
105 } | 105 } |
106 | 106 |
107 bool old_buffer_is_sorted() { return old_buffer_is_sorted_; } | 107 bool old_buffer_is_sorted() { return old_buffer_is_sorted_; } |
108 bool old_buffer_is_filtered() { return old_buffer_is_filtered_; } | 108 bool old_buffer_is_filtered() { return old_buffer_is_filtered_; } |
109 | 109 |
110 // Goes through the store buffer removing pointers to things that have | 110 // Goes through the store buffer removing pointers to things that have |
111 // been promoted. Rebuilds the store buffer completely if it overflowed. | 111 // been promoted. Rebuilds the store buffer completely if it overflowed. |
112 void SortUniq(); | 112 void SortUniq(); |
113 | 113 |
| 114 bool SpaceAvailable(intptr_t space_needed); |
114 void EnsureSpace(intptr_t space_needed); | 115 void EnsureSpace(intptr_t space_needed); |
115 void Verify(); | 116 void Verify(); |
116 | 117 |
117 bool PrepareForIteration(); | 118 bool PrepareForIteration(); |
118 | 119 |
119 #ifdef DEBUG | 120 #ifdef DEBUG |
120 void Clean(); | 121 void Clean(); |
121 // Slow, for asserts only. | 122 // Slow, for asserts only. |
122 bool CellIsInStoreBuffer(Address cell); | 123 bool CellIsInStoreBuffer(Address cell); |
123 #endif | 124 #endif |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 } | 247 } |
247 | 248 |
248 private: | 249 private: |
249 StoreBuffer* store_buffer_; | 250 StoreBuffer* store_buffer_; |
250 bool stored_state_; | 251 bool stored_state_; |
251 }; | 252 }; |
252 | 253 |
253 } } // namespace v8::internal | 254 } } // namespace v8::internal |
254 | 255 |
255 #endif // V8_STORE_BUFFER_H_ | 256 #endif // V8_STORE_BUFFER_H_ |
OLD | NEW |