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

Unified Diff: runtime/vm/zone.cc

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/zone.h ('k') | runtime/vm/zone_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/zone.cc
diff --git a/runtime/vm/zone.cc b/runtime/vm/zone.cc
index bace1f3534dc77e676e01515b232018e7b3ecb41..45314dcfe32d7887d91f82978eaecdfa50cdbce5 100644
--- a/runtime/vm/zone.cc
+++ b/runtime/vm/zone.cc
@@ -107,7 +107,7 @@ void Zone::DeleteAll() {
Segment::DeleteSegmentList(large_segments_);
}
- // Reset zone state.
+// Reset zone state.
#ifdef DEBUG
memset(initial_buffer_.pointer(), kZapDeletedByte, initial_buffer_.size());
#endif
@@ -147,11 +147,11 @@ uword Zone::AllocateExpand(intptr_t size) {
// there isn't enough room in the Zone to satisfy the request.
ASSERT(Utils::IsAligned(size, kAlignment));
intptr_t free_size = (limit_ - position_);
- ASSERT(free_size < size);
+ ASSERT(free_size < size);
// First check to see if we should just chain it as a large segment.
- intptr_t max_size = Utils::RoundDown(kSegmentSize - sizeof(Segment),
- kAlignment);
+ intptr_t max_size =
+ Utils::RoundDown(kSegmentSize - sizeof(Segment), kAlignment);
ASSERT(max_size > 0);
if (size > max_size) {
return AllocateLargeSegment(size);
@@ -175,7 +175,7 @@ uword Zone::AllocateLargeSegment(intptr_t size) {
// there isn't enough room in the Zone to satisfy the request.
ASSERT(Utils::IsAligned(size, kAlignment));
intptr_t free_size = (limit_ - position_);
- ASSERT(free_size < size);
+ ASSERT(free_size < size);
// Create a new large segment and chain it up.
ASSERT(Utils::IsAligned(sizeof(Segment), kAlignment));
@@ -230,7 +230,8 @@ void Zone::DumpZoneSizes() {
for (Segment* s = large_segments_; s != NULL; s = s->next()) {
size += s->size();
}
- OS::PrintErr("*** Zone(0x%" Px ") size in bytes,"
+ OS::PrintErr("*** Zone(0x%" Px
+ ") size in bytes,"
" Total = %" Pd " Large Segments = %" Pd "\n",
reinterpret_cast<intptr_t>(this), SizeInBytes(), size);
}
« no previous file with comments | « runtime/vm/zone.h ('k') | runtime/vm/zone_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698