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

Unified Diff: runtime/vm/heap.h

Issue 2771013002: Add more safe points in compiler (Closed)
Patch Set: Fix test that 'parses' verbose GC output 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
« no previous file with comments | « runtime/vm/flow_graph_inliner.cc ('k') | runtime/vm/heap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/heap.h
diff --git a/runtime/vm/heap.h b/runtime/vm/heap.h
index 5ae4361e78a12413caae0cc66dc58d040b10c05b..64b7499d7962a25f0b85cf721737264c3ca1aa5c 100644
--- a/runtime/vm/heap.h
+++ b/runtime/vm/heap.h
@@ -46,12 +46,8 @@ class Heap {
kGCTestCase,
};
-#if defined(DEBUG)
// Pattern for unused new space and swept old space.
- static const uint64_t kZap64Bits = 0xf3f3f3f3f3f3f3f3;
- static const uint32_t kZap32Bits = 0xf3f3f3f3;
static const uint8_t kZapByte = 0xf3;
-#endif // DEBUG
~Heap();
@@ -216,7 +212,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 +264,12 @@ class Heap {
DISALLOW_COPY_AND_ASSIGN(Data);
};
+ enum { kTimeEntries = 6 };
enum { kDataEntries = 4 };
Data before_;
Data after_;
- int64_t times_[kDataEntries];
+ int64_t times_[kTimeEntries];
intptr_t data_[kDataEntries];
private:
« no previous file with comments | « runtime/vm/flow_graph_inliner.cc ('k') | runtime/vm/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698