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

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

Issue 1235433004: VM: Inline Scavenger and PageSpace objects into Heap. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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_PAGES_H_ 5 #ifndef VM_PAGES_H_
6 #define VM_PAGES_H_ 6 #define VM_PAGES_H_
7 7
8 #include "vm/freelist.h" 8 #include "vm/freelist.h"
9 #include "vm/globals.h" 9 #include "vm/globals.h"
10 #include "vm/lockers.h" 10 #include "vm/lockers.h"
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 } 290 }
291 291
292 void IncrementCollections() { 292 void IncrementCollections() {
293 collections_++; 293 collections_++;
294 } 294 }
295 295
296 intptr_t collections() const { 296 intptr_t collections() const {
297 return collections_; 297 return collections_;
298 } 298 }
299 299
300 void PrintToJSONObject(JSONObject* object); 300 void PrintToJSONObject(JSONObject* object) const;
301 void PrintHeapMapToJSONStream(Isolate* isolate, JSONStream* stream); 301 void PrintHeapMapToJSONStream(Isolate* isolate, JSONStream* stream) const;
302 302
303 void AllocateExternal(intptr_t size); 303 void AllocateExternal(intptr_t size);
304 void FreeExternal(intptr_t size); 304 void FreeExternal(intptr_t size);
305 305
306 // Bulk data allocation. 306 // Bulk data allocation.
307 void AcquireDataLock(); 307 void AcquireDataLock();
308 void ReleaseDataLock(); 308 void ReleaseDataLock();
309 309
310 uword TryAllocateDataLocked(intptr_t size, GrowthPolicy growth_policy) { 310 uword TryAllocateDataLocked(intptr_t size, GrowthPolicy growth_policy) {
311 bool is_protected = false; 311 bool is_protected = false;
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 friend class HeapIterationScope; 438 friend class HeapIterationScope;
439 friend class PageSpaceController; 439 friend class PageSpaceController;
440 friend class SweeperTask; 440 friend class SweeperTask;
441 441
442 DISALLOW_IMPLICIT_CONSTRUCTORS(PageSpace); 442 DISALLOW_IMPLICIT_CONSTRUCTORS(PageSpace);
443 }; 443 };
444 444
445 } // namespace dart 445 } // namespace dart
446 446
447 #endif // VM_PAGES_H_ 447 #endif // VM_PAGES_H_
OLDNEW
« no previous file with comments | « runtime/vm/heap.cc ('k') | runtime/vm/pages.cc » ('j') | runtime/vm/pages.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698