OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #ifndef RUNTIME_VM_HEAP_H_ | 5 #ifndef RUNTIME_VM_HEAP_H_ |
6 #define RUNTIME_VM_HEAP_H_ | 6 #define RUNTIME_VM_HEAP_H_ |
7 | 7 |
8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
9 #include "vm/allocation.h" | 9 #include "vm/allocation.h" |
10 #include "vm/flags.h" | 10 #include "vm/flags.h" |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 | 249 |
250 Isolate* isolate() const { return isolate_; } | 250 Isolate* isolate() const { return isolate_; } |
251 | 251 |
252 Monitor* barrier() const { return barrier_; } | 252 Monitor* barrier() const { return barrier_; } |
253 Monitor* barrier_done() const { return barrier_done_; } | 253 Monitor* barrier_done() const { return barrier_done_; } |
254 | 254 |
255 void SetupImagePage(void* pointer, uword size, bool is_executable) { | 255 void SetupImagePage(void* pointer, uword size, bool is_executable) { |
256 old_space_.SetupImagePage(pointer, size, is_executable); | 256 old_space_.SetupImagePage(pointer, size, is_executable); |
257 } | 257 } |
258 | 258 |
259 intptr_t CalculateTLABSize(); | |
260 void FillRemainingTLAB(Thread* thread); | |
261 void AbandonRemainingTLAB(Thread* thread); | |
262 | |
263 private: | 259 private: |
264 class GCStats : public ValueObject { | 260 class GCStats : public ValueObject { |
265 public: | 261 public: |
266 GCStats() {} | 262 GCStats() {} |
267 intptr_t num_; | 263 intptr_t num_; |
268 Heap::Space space_; | 264 Heap::Space space_; |
269 Heap::GCReason reason_; | 265 Heap::GCReason reason_; |
270 | 266 |
271 class Data : public ValueObject { | 267 class Data : public ValueObject { |
272 public: | 268 public: |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 // Note: During this scope, the code pages are non-executable. | 396 // Note: During this scope, the code pages are non-executable. |
401 class WritableVMIsolateScope : StackResource { | 397 class WritableVMIsolateScope : StackResource { |
402 public: | 398 public: |
403 explicit WritableVMIsolateScope(Thread* thread); | 399 explicit WritableVMIsolateScope(Thread* thread); |
404 ~WritableVMIsolateScope(); | 400 ~WritableVMIsolateScope(); |
405 }; | 401 }; |
406 | 402 |
407 } // namespace dart | 403 } // namespace dart |
408 | 404 |
409 #endif // RUNTIME_VM_HEAP_H_ | 405 #endif // RUNTIME_VM_HEAP_H_ |
OLD | NEW |