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

Unified Diff: runtime/vm/megamorphic_cache_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/longjump_test.cc ('k') | runtime/vm/memory_region.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/megamorphic_cache_table.cc
diff --git a/runtime/vm/megamorphic_cache_table.cc b/runtime/vm/megamorphic_cache_table.cc
index 8a4e6af25d24b9245343295eaab925c44943a6bc..c6edb75172c334d445b71e5fbb60c807f1857a34 100644
--- a/runtime/vm/megamorphic_cache_table.cc
+++ b/runtime/vm/megamorphic_cache_table.cc
@@ -53,25 +53,22 @@ RawFunction* MegamorphicCacheTable::miss_handler(Isolate* isolate) {
void MegamorphicCacheTable::InitMissHandler(Isolate* isolate) {
// The miss handler for a class ID not found in the table is invoked as a
// normal Dart function.
- const Code& code =
- Code::Handle(StubCode::Generate("_stub_MegamorphicMiss",
- StubCode::GenerateMegamorphicMissStub));
+ const Code& code = Code::Handle(StubCode::Generate(
+ "_stub_MegamorphicMiss", StubCode::GenerateMegamorphicMissStub));
// When FLAG_lazy_dispatchers=false, this stub can be on the stack during
// exceptions, but it has a corresponding function so IsStubCode is false and
// it is considered in the search for an exception handler.
code.set_exception_handlers(Object::empty_exception_handlers());
const Class& cls =
Class::Handle(Type::Handle(Type::DartFunctionType()).type_class());
- const Function& function =
- Function::Handle(Function::New(Symbols::MegamorphicMiss(),
- RawFunction::kRegularFunction,
- true, // Static, but called as a method.
- false, // Not const.
- false, // Not abstract.
- false, // Not external.
- false, // Not native.
- cls,
- TokenPosition::kNoSource));
+ const Function& function = Function::Handle(
+ Function::New(Symbols::MegamorphicMiss(), RawFunction::kRegularFunction,
+ true, // Static, but called as a method.
+ false, // Not const.
+ false, // Not abstract.
+ false, // Not external.
+ false, // Not native.
+ cls, TokenPosition::kNoSource));
function.set_result_type(Type::Handle(Type::DynamicType()));
function.set_is_debuggable(false);
function.set_is_visible(false);
@@ -101,8 +98,8 @@ void MegamorphicCacheTable::PrintSizes(Isolate* isolate) {
max_size = buckets.Length();
}
}
- OS::Print("%" Pd " megamorphic caches using %" Pd "KB.\n",
- table.Length(), size / 1024);
+ OS::Print("%" Pd " megamorphic caches using %" Pd "KB.\n", table.Length(),
+ size / 1024);
intptr_t* probe_counts = new intptr_t[max_size];
intptr_t entry_count = 0;
@@ -143,10 +140,9 @@ void MegamorphicCacheTable::PrintSizes(Isolate* isolate) {
intptr_t cumulative_entries = 0;
for (intptr_t i = 0; i <= max_probe_count; i++) {
cumulative_entries += probe_counts[i];
- OS::Print("Megamorphic probe %" Pd ": %" Pd " (%lf)\n",
- i, probe_counts[i],
+ OS::Print("Megamorphic probe %" Pd ": %" Pd " (%lf)\n", i, probe_counts[i],
static_cast<double>(cumulative_entries) /
- static_cast<double>(entry_count));
+ static_cast<double>(entry_count));
}
delete[] probe_counts;
}
« no previous file with comments | « runtime/vm/longjump_test.cc ('k') | runtime/vm/memory_region.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698