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

Unified Diff: runtime/vm/heap.h

Issue 2771013002: Add more safe points in compiler (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/heap.h
diff --git a/runtime/vm/heap.h b/runtime/vm/heap.h
index 5ae4361e78a12413caae0cc66dc58d040b10c05b..2b52b0024b66dfcaeadb9b12f46d95a116feb73c 100644
--- a/runtime/vm/heap.h
+++ b/runtime/vm/heap.h
@@ -216,7 +216,7 @@ class Heap {
// Stats collection.
void RecordTime(int id, int64_t micros) {
- ASSERT((id >= 0) && (id < GCStats::kDataEntries));
+ ASSERT((id >= 0) && (id < GCStats::kTimeEntries));
stats_.times_[id] = micros;
}
@@ -268,11 +268,12 @@ class Heap {
DISALLOW_COPY_AND_ASSIGN(Data);
};
+ enum { kTimeEntries = 5 };
enum { kDataEntries = 4 };
Data before_;
Data after_;
- int64_t times_[kDataEntries];
+ int64_t times_[kTimeEntries];
intptr_t data_[kDataEntries];
private:
« runtime/vm/compiler.cc ('K') | « runtime/vm/compiler.cc ('k') | runtime/vm/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698