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

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

Issue 1263513002: VM: Load allocation-top and -end via Thread. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: fixed cc tests Created 5 years, 4 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
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 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 void SetGrowthControlState(bool state); 133 void SetGrowthControlState(bool state);
134 bool GrowthControlState(); 134 bool GrowthControlState();
135 135
136 // Protect access to the heap. 136 // Protect access to the heap.
137 void WriteProtect(bool read_only); 137 void WriteProtect(bool read_only);
138 void WriteProtectCode(bool read_only) { 138 void WriteProtectCode(bool read_only) {
139 old_space_.WriteProtectCode(read_only); 139 old_space_.WriteProtectCode(read_only);
140 } 140 }
141 141
142 // Accessors for inlined allocation in generated code. 142 // Accessors for inlined allocation in generated code.
143 uword TopAddress(Space space);
144 static intptr_t TopOffset(Space space); 143 static intptr_t TopOffset(Space space);
145 uword EndAddress(Space space);
146 static intptr_t EndOffset(Space space); 144 static intptr_t EndOffset(Space space);
147 static Space SpaceForAllocation(intptr_t class_id); 145 static Space SpaceForAllocation(intptr_t class_id);
148 146
149 // Initialize the heap and register it with the isolate. 147 // Initialize the heap and register it with the isolate.
150 static void Init(Isolate* isolate, 148 static void Init(Isolate* isolate,
151 intptr_t max_new_gen_words, 149 intptr_t max_new_gen_words,
152 intptr_t max_old_gen_words, 150 intptr_t max_old_gen_words,
153 intptr_t max_external_words); 151 intptr_t max_external_words);
154 152
155 // Verify that all pointers in the heap point to the heap. 153 // Verify that all pointers in the heap point to the heap.
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 NoHeapGrowthControlScope(); 365 NoHeapGrowthControlScope();
368 ~NoHeapGrowthControlScope(); 366 ~NoHeapGrowthControlScope();
369 private: 367 private:
370 bool current_growth_controller_state_; 368 bool current_growth_controller_state_;
371 DISALLOW_COPY_AND_ASSIGN(NoHeapGrowthControlScope); 369 DISALLOW_COPY_AND_ASSIGN(NoHeapGrowthControlScope);
372 }; 370 };
373 371
374 } // namespace dart 372 } // namespace dart
375 373
376 #endif // VM_HEAP_H_ 374 #endif // VM_HEAP_H_
OLDNEW
« no previous file with comments | « runtime/vm/dart.cc ('k') | runtime/vm/heap.cc » ('j') | runtime/vm/isolate.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698