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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 | 244 |
245 Isolate* isolate() const { return isolate_; } | 245 Isolate* isolate() const { return isolate_; } |
246 | 246 |
247 Monitor* barrier() const { return barrier_; } | 247 Monitor* barrier() const { return barrier_; } |
248 Monitor* barrier_done() const { return barrier_done_; } | 248 Monitor* barrier_done() const { return barrier_done_; } |
249 | 249 |
250 void SetupImagePage(void* pointer, uword size, bool is_executable) { | 250 void SetupImagePage(void* pointer, uword size, bool is_executable) { |
251 old_space_.SetupImagePage(pointer, size, is_executable); | 251 old_space_.SetupImagePage(pointer, size, is_executable); |
252 } | 252 } |
253 | 253 |
254 intptr_t CalculateTLABSize(); | |
255 void FillRemainingTLAB(Thread* thread); | |
256 void AbandonRemainingTLAB(Thread* thread); | |
257 | |
258 private: | 254 private: |
259 class GCStats : public ValueObject { | 255 class GCStats : public ValueObject { |
260 public: | 256 public: |
261 GCStats() {} | 257 GCStats() {} |
262 intptr_t num_; | 258 intptr_t num_; |
263 Heap::Space space_; | 259 Heap::Space space_; |
264 Heap::GCReason reason_; | 260 Heap::GCReason reason_; |
265 | 261 |
266 class Data : public ValueObject { | 262 class Data : public ValueObject { |
267 public: | 263 public: |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 // Note: During this scope, the code pages are non-executable. | 403 // Note: During this scope, the code pages are non-executable. |
408 class WritableVMIsolateScope : StackResource { | 404 class WritableVMIsolateScope : StackResource { |
409 public: | 405 public: |
410 explicit WritableVMIsolateScope(Thread* thread); | 406 explicit WritableVMIsolateScope(Thread* thread); |
411 ~WritableVMIsolateScope(); | 407 ~WritableVMIsolateScope(); |
412 }; | 408 }; |
413 | 409 |
414 } // namespace dart | 410 } // namespace dart |
415 | 411 |
416 #endif // RUNTIME_VM_HEAP_H_ | 412 #endif // RUNTIME_VM_HEAP_H_ |
OLD | NEW |