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 VM_HEAP_H_ | 5 #ifndef VM_HEAP_H_ |
6 #define VM_HEAP_H_ | 6 #define 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 | 239 |
240 // The heap map contains the sizes and class ids for the objects in each page. | 240 // The heap map contains the sizes and class ids for the objects in each page. |
241 void PrintHeapMapToJSONStream(Isolate* isolate, JSONStream* stream) { | 241 void PrintHeapMapToJSONStream(Isolate* isolate, JSONStream* stream) { |
242 return old_space_.PrintHeapMapToJSONStream(isolate, stream); | 242 return old_space_.PrintHeapMapToJSONStream(isolate, stream); |
243 } | 243 } |
244 | 244 |
245 Isolate* isolate() const { return isolate_; } | 245 Isolate* isolate() const { return isolate_; } |
246 | 246 |
247 bool ShouldPretenure(intptr_t class_id) const; | 247 bool ShouldPretenure(intptr_t class_id) const; |
248 | 248 |
249 void SetupInstructionsSnapshotPage(void* pointer, uword size) { | 249 void SetupExternalPage(void* pointer, uword size, bool is_executable) { |
250 old_space_.SetupInstructionsSnapshotPage(pointer, size); | 250 old_space_.SetupExternalPage(pointer, size, is_executable); |
251 } | 251 } |
252 | 252 |
253 private: | 253 private: |
254 class GCStats : public ValueObject { | 254 class GCStats : public ValueObject { |
255 public: | 255 public: |
256 GCStats() {} | 256 GCStats() {} |
257 intptr_t num_; | 257 intptr_t num_; |
258 Heap::Space space_; | 258 Heap::Space space_; |
259 Heap::GCReason reason_; | 259 Heap::GCReason reason_; |
260 | 260 |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 explicit WritableVMIsolateScope(Thread* thread, bool include_code_pages); | 384 explicit WritableVMIsolateScope(Thread* thread, bool include_code_pages); |
385 ~WritableVMIsolateScope(); | 385 ~WritableVMIsolateScope(); |
386 | 386 |
387 private: | 387 private: |
388 bool include_code_pages_; | 388 bool include_code_pages_; |
389 }; | 389 }; |
390 | 390 |
391 } // namespace dart | 391 } // namespace dart |
392 | 392 |
393 #endif // VM_HEAP_H_ | 393 #endif // VM_HEAP_H_ |
OLD | NEW |