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

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

Issue 3001343002: Remove GC prologue and epilogue callbacks. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/pages.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 RUNTIME_VM_PAGES_H_ 5 #ifndef RUNTIME_VM_PAGES_H_
6 #define RUNTIME_VM_PAGES_H_ 6 #define RUNTIME_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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 void VisitObjectPointers(ObjectPointerVisitor* visitor) const; 243 void VisitObjectPointers(ObjectPointerVisitor* visitor) const;
244 244
245 RawObject* FindObject(FindObjectVisitor* visitor, 245 RawObject* FindObject(FindObjectVisitor* visitor,
246 HeapPage::PageType type) const; 246 HeapPage::PageType type) const;
247 247
248 // Checks if enough time has elapsed since the last attempt to collect 248 // Checks if enough time has elapsed since the last attempt to collect
249 // code. 249 // code.
250 bool ShouldCollectCode(); 250 bool ShouldCollectCode();
251 251
252 // Collect the garbage in the page space using mark-sweep. 252 // Collect the garbage in the page space using mark-sweep.
253 void MarkSweep(bool invoke_api_callbacks); 253 void MarkSweep();
254 254
255 void AddRegionsToObjectSet(ObjectSet* set) const; 255 void AddRegionsToObjectSet(ObjectSet* set) const;
256 256
257 void InitGrowthControl() { 257 void InitGrowthControl() {
258 page_space_controller_.set_last_usage(usage_); 258 page_space_controller_.set_last_usage(usage_);
259 page_space_controller_.Enable(); 259 page_space_controller_.Enable();
260 } 260 }
261 261
262 void SetGrowthControlState(bool state) { 262 void SetGrowthControlState(bool state) {
263 if (state) { 263 if (state) {
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 friend class HeapIterationScope; 435 friend class HeapIterationScope;
436 friend class PageSpaceController; 436 friend class PageSpaceController;
437 friend class SweeperTask; 437 friend class SweeperTask;
438 438
439 DISALLOW_IMPLICIT_CONSTRUCTORS(PageSpace); 439 DISALLOW_IMPLICIT_CONSTRUCTORS(PageSpace);
440 }; 440 };
441 441
442 } // namespace dart 442 } // namespace dart
443 443
444 #endif // RUNTIME_VM_PAGES_H_ 444 #endif // RUNTIME_VM_PAGES_H_
OLDNEW
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/pages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698