Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(377)

Side by Side Diff: runtime/vm/heap.h

Issue 2929203002: [Fuchsia] Give VMOs names (Closed)
Patch Set: Ignore name set failure. Properly select old space Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | runtime/vm/heap.cc » ('j') | runtime/vm/pages.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 // Accessors for inlined allocation in generated code. 131 // Accessors for inlined allocation in generated code.
132 static intptr_t TopOffset(Space space); 132 static intptr_t TopOffset(Space space);
133 static intptr_t EndOffset(Space space); 133 static intptr_t EndOffset(Space space);
134 134
135 // Initialize the heap and register it with the isolate. 135 // Initialize the heap and register it with the isolate.
136 static void Init(Isolate* isolate, 136 static void Init(Isolate* isolate,
137 intptr_t max_new_gen_words, 137 intptr_t max_new_gen_words,
138 intptr_t max_old_gen_words, 138 intptr_t max_old_gen_words,
139 intptr_t max_external_words); 139 intptr_t max_external_words);
140 140
141 // Writes a suitable name for a VM region in the heap into the buffer `name`.
142 void RegionName(Space space, char* name, intptr_t name_size);
143
141 // Verify that all pointers in the heap point to the heap. 144 // Verify that all pointers in the heap point to the heap.
142 bool Verify(MarkExpectation mark_expectation = kForbidMarked) const; 145 bool Verify(MarkExpectation mark_expectation = kForbidMarked) const;
143 146
144 // Print heap sizes. 147 // Print heap sizes.
145 void PrintSizes() const; 148 void PrintSizes() const;
146 149
147 // Return amount of memory used and capacity in a space, excluding external. 150 // Return amount of memory used and capacity in a space, excluding external.
148 int64_t UsedInWords(Space space) const; 151 int64_t UsedInWords(Space space) const;
149 int64_t CapacityInWords(Space space) const; 152 int64_t CapacityInWords(Space space) const;
150 int64_t ExternalInWords(Space space) const; 153 int64_t ExternalInWords(Space space) const;
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 // Note: During this scope, the code pages are non-executable. 390 // Note: During this scope, the code pages are non-executable.
388 class WritableVMIsolateScope : StackResource { 391 class WritableVMIsolateScope : StackResource {
389 public: 392 public:
390 explicit WritableVMIsolateScope(Thread* thread); 393 explicit WritableVMIsolateScope(Thread* thread);
391 ~WritableVMIsolateScope(); 394 ~WritableVMIsolateScope();
392 }; 395 };
393 396
394 } // namespace dart 397 } // namespace dart
395 398
396 #endif // RUNTIME_VM_HEAP_H_ 399 #endif // RUNTIME_VM_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/heap.cc » ('j') | runtime/vm/pages.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698