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

Unified Diff: runtime/vm/bitmap.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/bitmap.h ('k') | runtime/vm/block_scheduler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/bitmap.cc
diff --git a/runtime/vm/bitmap.cc b/runtime/vm/bitmap.cc
index ae091ae8cbdd8314d3d1c8cb6e81cb0d30190554..f4d35b401d0c389672df91a735ff7e177f050a54 100644
--- a/runtime/vm/bitmap.cc
+++ b/runtime/vm/bitmap.cc
@@ -54,8 +54,7 @@ void BitmapBuilder::Set(intptr_t bit_offset, bool value) {
data_size_in_bytes_ =
Utils::RoundUp(byte_offset + 1, kIncrementSizeInBytes);
ASSERT(data_size_in_bytes_ > 0);
- data_ = Thread::Current()->zone()->Alloc<uint8_t>(
- data_size_in_bytes_);
+ data_ = Thread::Current()->zone()->Alloc<uint8_t>(data_size_in_bytes_);
ASSERT(data_ != NULL);
memmove(data_, old_data, old_size);
memset(&data_[old_size], 0, (data_size_in_bytes_ - old_size));
@@ -98,8 +97,10 @@ bool BitmapBuilder::GetBit(intptr_t bit_offset) const {
void BitmapBuilder::SetBit(intptr_t bit_offset, bool value) {
if (!InRange(bit_offset)) {
- FATAL1("Fatal error in BitmapBuilder::SetBit :"
- " invalid bit_offset, %" Pd "\n", bit_offset);
+ FATAL1(
+ "Fatal error in BitmapBuilder::SetBit :"
+ " invalid bit_offset, %" Pd "\n",
+ bit_offset);
}
intptr_t byte_offset = bit_offset >> kBitsPerByteLog2;
ASSERT(byte_offset < data_size_in_bytes_);
« no previous file with comments | « runtime/vm/bitmap.h ('k') | runtime/vm/block_scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698