| 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 |
| 259 private: | 263 private: |
| 260 class GCStats : public ValueObject { | 264 class GCStats : public ValueObject { |
| 261 public: | 265 public: |
| 262 GCStats() {} | 266 GCStats() {} |
| 263 intptr_t num_; | 267 intptr_t num_; |
| 264 Heap::Space space_; | 268 Heap::Space space_; |
| 265 Heap::GCReason reason_; | 269 Heap::GCReason reason_; |
| 266 | 270 |
| 267 class Data : public ValueObject { | 271 class Data : public ValueObject { |
| 268 public: | 272 public: |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 // Note: During this scope, the code pages are non-executable. | 400 // Note: During this scope, the code pages are non-executable. |
| 397 class WritableVMIsolateScope : StackResource { | 401 class WritableVMIsolateScope : StackResource { |
| 398 public: | 402 public: |
| 399 explicit WritableVMIsolateScope(Thread* thread); | 403 explicit WritableVMIsolateScope(Thread* thread); |
| 400 ~WritableVMIsolateScope(); | 404 ~WritableVMIsolateScope(); |
| 401 }; | 405 }; |
| 402 | 406 |
| 403 } // namespace dart | 407 } // namespace dart |
| 404 | 408 |
| 405 #endif // RUNTIME_VM_HEAP_H_ | 409 #endif // RUNTIME_VM_HEAP_H_ |
| OLD | NEW |