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

Unified Diff: runtime/vm/heap.cc

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, 10 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/heap.cc
===================================================================
--- runtime/vm/heap.cc (revision 33311)
+++ runtime/vm/heap.cc (working copy)
@@ -7,7 +7,6 @@
#include "platform/assert.h"
#include "platform/utils.h"
#include "vm/flags.h"
-#include "vm/heap_histogram.h"
#include "vm/isolate.h"
#include "vm/object.h"
#include "vm/object_set.h"
@@ -182,7 +181,6 @@
old_space_->MarkSweep(invoke_api_callbacks);
RecordAfterGC();
PrintStats();
- UpdateObjectHistogram();
break;
}
default:
@@ -191,13 +189,6 @@
}
-void Heap::UpdateObjectHistogram() {
- Isolate* isolate = Isolate::Current();
- if (isolate->object_histogram() == NULL) return;
- isolate->object_histogram()->Collect();
-}
-
-
void Heap::UpdateClassHeapStatsBeforeGC(Heap::Space space) {
Isolate* isolate = Isolate::Current();
ClassTable* class_table = isolate->class_table();
@@ -231,7 +222,6 @@
old_space_->MarkSweep(kInvokeApiCallbacks);
RecordAfterGC();
PrintStats();
- UpdateObjectHistogram();
}
« runtime/vm/class_table.cc ('K') | « runtime/vm/heap.h ('k') | runtime/vm/heap_histogram.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698