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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 // We only want to have at most one concurrent processing tas running. | 195 // We only want to have at most one concurrent processing tas running. |
196 bool task_running_; | 196 bool task_running_; |
197 | 197 |
198 // Points to the current buffer in use. | 198 // Points to the current buffer in use. |
199 int current_; | 199 int current_; |
200 | 200 |
201 base::VirtualMemory* virtual_memory_; | 201 base::VirtualMemory* virtual_memory_; |
202 | 202 |
203 // Callbacks are more efficient than reading out the gc state for every | 203 // Callbacks are more efficient than reading out the gc state for every |
204 // store buffer operation. | 204 // store buffer operation. |
205 std::function<void(StoreBuffer*, Address)> insertion_callback; | 205 void (*insertion_callback)(StoreBuffer*, Address); |
206 std::function<void(StoreBuffer*, Address, Address)> deletion_callback; | 206 void (*deletion_callback)(StoreBuffer*, Address, Address); |
207 }; | 207 }; |
208 | 208 |
209 } // namespace internal | 209 } // namespace internal |
210 } // namespace v8 | 210 } // namespace v8 |
211 | 211 |
212 #endif // V8_STORE_BUFFER_H_ | 212 #endif // V8_STORE_BUFFER_H_ |
OLD | NEW |