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

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

Issue 187133004: When reading a full snapshot use the class id from the snapshot instead of generating a new one. Th… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 271
272 Heap(); 272 Heap();
273 273
274 uword AllocateNew(intptr_t size); 274 uword AllocateNew(intptr_t size);
275 uword AllocateOld(intptr_t size, HeapPage::PageType type); 275 uword AllocateOld(intptr_t size, HeapPage::PageType type);
276 276
277 // GC stats collection. 277 // GC stats collection.
278 void RecordBeforeGC(Space space, GCReason reason); 278 void RecordBeforeGC(Space space, GCReason reason);
279 void RecordAfterGC(); 279 void RecordAfterGC();
280 void PrintStats(); 280 void PrintStats();
281 void UpdateObjectHistogram();
282 void UpdateClassHeapStatsBeforeGC(Heap::Space space); 281 void UpdateClassHeapStatsBeforeGC(Heap::Space space);
283 282
284 // The different spaces used for allocation. 283 // The different spaces used for allocation.
285 Scavenger* new_space_; 284 Scavenger* new_space_;
286 PageSpace* old_space_; 285 PageSpace* old_space_;
287 286
288 WeakTable* new_weak_tables_[kNumWeakSelectors]; 287 WeakTable* new_weak_tables_[kNumWeakSelectors];
289 WeakTable* old_weak_tables_[kNumWeakSelectors]; 288 WeakTable* old_weak_tables_[kNumWeakSelectors];
290 289
291 // GC stats collection. 290 // GC stats collection.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 NoHeapGrowthControlScope(); 324 NoHeapGrowthControlScope();
326 ~NoHeapGrowthControlScope(); 325 ~NoHeapGrowthControlScope();
327 private: 326 private:
328 bool current_growth_controller_state_; 327 bool current_growth_controller_state_;
329 DISALLOW_COPY_AND_ASSIGN(NoHeapGrowthControlScope); 328 DISALLOW_COPY_AND_ASSIGN(NoHeapGrowthControlScope);
330 }; 329 };
331 330
332 } // namespace dart 331 } // namespace dart
333 332
334 #endif // VM_HEAP_H_ 333 #endif // VM_HEAP_H_
OLDNEW
« runtime/vm/class_table.cc ('K') | « runtime/vm/class_table.cc ('k') | runtime/vm/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698