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

Side by Side Diff: runtime/vm/scavenger.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) 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_SCAVENGER_H_ 5 #ifndef VM_SCAVENGER_H_
6 #define VM_SCAVENGER_H_ 6 #define VM_SCAVENGER_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "platform/utils.h" 9 #include "platform/utils.h"
10 #include "vm/dart.h" 10 #include "vm/dart.h"
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 } 204 }
205 205
206 void IncrementCollections() { 206 void IncrementCollections() {
207 collections_++; 207 collections_++;
208 } 208 }
209 209
210 intptr_t collections() const { 210 intptr_t collections() const {
211 return collections_; 211 return collections_;
212 } 212 }
213 213
214 void PrintToJSONObject(JSONObject* object); 214 void PrintToJSONObject(JSONObject* object) const;
215 215
216 void AllocateExternal(intptr_t size); 216 void AllocateExternal(intptr_t size);
217 void FreeExternal(intptr_t size); 217 void FreeExternal(intptr_t size);
218 218
219 private: 219 private:
220 // Ids for time and data records in Heap::GCStats. 220 // Ids for time and data records in Heap::GCStats.
221 enum { 221 enum {
222 // Time 222 // Time
223 kVisitIsolateRoots = 0, 223 kVisitIsolateRoots = 0,
224 kIterateStoreBuffers = 1, 224 kIterateStoreBuffers = 1,
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 312
313 friend class ScavengerVisitor; 313 friend class ScavengerVisitor;
314 friend class ScavengerWeakVisitor; 314 friend class ScavengerWeakVisitor;
315 315
316 DISALLOW_COPY_AND_ASSIGN(Scavenger); 316 DISALLOW_COPY_AND_ASSIGN(Scavenger);
317 }; 317 };
318 318
319 } // namespace dart 319 } // namespace dart
320 320
321 #endif // VM_SCAVENGER_H_ 321 #endif // VM_SCAVENGER_H_
OLDNEW
« runtime/vm/pages.cc ('K') | « runtime/vm/pages.cc ('k') | runtime/vm/scavenger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698