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

Unified Diff: runtime/vm/weak_table.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/weak_table.h ('k') | runtime/vm/zone.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/weak_table.cc
diff --git a/runtime/vm/weak_table.cc b/runtime/vm/weak_table.cc
index e45e9c8c86be9a117b57ecaea5062cadff466c84..a9e8c11be4a27fe84b66f00880fe312bcbda77d2 100644
--- a/runtime/vm/weak_table.cc
+++ b/runtime/vm/weak_table.cc
@@ -18,8 +18,9 @@ intptr_t WeakTable::SizeFor(intptr_t count, intptr_t size) {
// Increase the capacity.
result = size * 2;
if (result < size) {
- FATAL("Reached impossible state of having more weak table entries"
- " than memory available for heap objects.");
+ FATAL(
+ "Reached impossible state of having more weak table entries"
+ " than memory available for heap objects.");
}
}
if (result < kMinSize) {
@@ -91,8 +92,8 @@ void WeakTable::Rehash() {
intptr_t new_size = SizeFor(count(), size());
ASSERT(Utils::IsPowerOfTwo(new_size));
- intptr_t* new_data = reinterpret_cast<intptr_t*>(
- calloc(new_size, kEntrySize * kWordSize));
+ intptr_t* new_data =
+ reinterpret_cast<intptr_t*>(calloc(new_size, kEntrySize * kWordSize));
intptr_t mask = new_size - 1;
set_used(0);
« no previous file with comments | « runtime/vm/weak_table.h ('k') | runtime/vm/zone.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698