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

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

Issue 2117593002: Fuchsia: Initial check-in. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Edit README Created 4 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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 } 307 }
308 308
309 void IncrementCollections() { 309 void IncrementCollections() {
310 collections_++; 310 collections_++;
311 } 311 }
312 312
313 intptr_t collections() const { 313 intptr_t collections() const {
314 return collections_; 314 return collections_;
315 } 315 }
316 316
317 #ifndef PRODUCT
317 void PrintToJSONObject(JSONObject* object) const; 318 void PrintToJSONObject(JSONObject* object) const;
318 void PrintHeapMapToJSONStream(Isolate* isolate, JSONStream* stream) const; 319 void PrintHeapMapToJSONStream(Isolate* isolate, JSONStream* stream) const;
320 #endif // PRODUCT
319 321
320 void AllocateExternal(intptr_t size); 322 void AllocateExternal(intptr_t size);
321 void FreeExternal(intptr_t size); 323 void FreeExternal(intptr_t size);
322 324
323 // Bulk data allocation. 325 // Bulk data allocation.
324 void AcquireDataLock(); 326 void AcquireDataLock();
325 void ReleaseDataLock(); 327 void ReleaseDataLock();
326 328
327 uword TryAllocateDataLocked(intptr_t size, GrowthPolicy growth_policy) { 329 uword TryAllocateDataLocked(intptr_t size, GrowthPolicy growth_policy) {
328 bool is_protected = false; 330 bool is_protected = false;
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 friend class HeapIterationScope; 461 friend class HeapIterationScope;
460 friend class PageSpaceController; 462 friend class PageSpaceController;
461 friend class SweeperTask; 463 friend class SweeperTask;
462 464
463 DISALLOW_IMPLICIT_CONSTRUCTORS(PageSpace); 465 DISALLOW_IMPLICIT_CONSTRUCTORS(PageSpace);
464 }; 466 };
465 467
466 } // namespace dart 468 } // namespace dart
467 469
468 #endif // VM_PAGES_H_ 470 #endif // VM_PAGES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698