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

Unified Diff: runtime/vm/object_id_ring.h

Issue 2481873005: clang-format runtime/vm (Closed)
Patch Set: Merge Created 4 years, 1 month 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/object_graph_test.cc ('k') | runtime/vm/object_id_ring_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object_id_ring.h
diff --git a/runtime/vm/object_id_ring.h b/runtime/vm/object_id_ring.h
index 7b0fcde7704ccca7da2ce552fb86b8fb32d2c442..4936316ad68df4c792601dae4b1e84f9b0a9338d 100644
--- a/runtime/vm/object_id_ring.h
+++ b/runtime/vm/object_id_ring.h
@@ -28,9 +28,9 @@ class ObjectIdRing {
};
enum IdPolicy {
- kAllocateId, // Always allocate a new object id.
- kReuseId, // If the object is already in the ring, reuse id.
- // Otherwise allocate a new object id.
+ kAllocateId, // Always allocate a new object id.
+ kReuseId, // If the object is already in the ring, reuse id.
+ // Otherwise allocate a new object id.
kNumIdPolicy,
};
@@ -67,12 +67,8 @@ class ObjectIdRing {
int32_t serial_num_;
bool wrapped_;
- RawObject** table() {
- return table_;
- }
- int32_t table_size() {
- return capacity_;
- }
+ RawObject** table() { return table_; }
+ int32_t table_size() { return capacity_; }
int32_t NextSerial();
int32_t AllocateNewId(RawObject* object);
« no previous file with comments | « runtime/vm/object_graph_test.cc ('k') | runtime/vm/object_id_ring_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698