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

Unified Diff: runtime/vm/stack_frame.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/stack_frame.h ('k') | runtime/vm/stack_frame_dbc.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stack_frame.cc
diff --git a/runtime/vm/stack_frame.cc b/runtime/vm/stack_frame.cc
index 66031274181d85f9f9ab2365b5637661da869153..b62104759f581ac64d58fe119280354bfc825da3 100644
--- a/runtime/vm/stack_frame.cc
+++ b/runtime/vm/stack_frame.cc
@@ -46,19 +46,17 @@ const char* StackFrame::ToCString() const {
if (owner.IsFunction()) {
const Function& function = Function::Cast(owner);
return zone->PrintToString(
- "[%-8s : sp(%#" Px ") fp(%#" Px ") pc(%#" Px ") %s ]",
- GetName(), sp(), fp(), pc(),
- function.ToFullyQualifiedCString());
+ "[%-8s : sp(%#" Px ") fp(%#" Px ") pc(%#" Px ") %s ]", GetName(),
+ sp(), fp(), pc(), function.ToFullyQualifiedCString());
} else {
return zone->PrintToString(
- "[%-8s : sp(%#" Px ") fp(%#" Px ") pc(%#" Px ") %s ]",
- GetName(), sp(), fp(), pc(),
- owner.ToCString());
+ "[%-8s : sp(%#" Px ") fp(%#" Px ") pc(%#" Px ") %s ]", GetName(),
+ sp(), fp(), pc(), owner.ToCString());
}
} else {
- return zone->PrintToString(
- "[%-8s : sp(%#" Px ") fp(%#" Px ") pc(%#" Px ")]",
- GetName(), sp(), fp(), pc());
+ return zone->PrintToString("[%-8s : sp(%#" Px ") fp(%#" Px ") pc(%#" Px
+ ")]",
+ GetName(), sp(), fp(), pc());
}
}
@@ -222,9 +220,9 @@ RawFunction* StackFrame::LookupDartFunction() const {
RawCode* StackFrame::LookupDartCode() const {
- // We add a no gc scope to ensure that the code below does not trigger
- // a GC as we are handling raw object references here. It is possible
- // that the code is called while a GC is in progress, that is ok.
+// We add a no gc scope to ensure that the code below does not trigger
+// a GC as we are handling raw object references here. It is possible
+// that the code is called while a GC is in progress, that is ok.
#if !defined(TARGET_OS_WINDOWS)
// On Windows, the profiler calls this from a separate thread where
// Thread::Current() is NULL, so we cannot create a NoSafepointScope.
@@ -353,7 +351,8 @@ StackFrameIterator::StackFrameIterator(bool validate, Thread* thread)
}
-StackFrameIterator::StackFrameIterator(uword last_fp, bool validate,
+StackFrameIterator::StackFrameIterator(uword last_fp,
+ bool validate,
Thread* thread)
: validate_(validate),
entry_(thread),
@@ -370,8 +369,11 @@ StackFrameIterator::StackFrameIterator(uword last_fp, bool validate,
#if !defined(TARGET_ARCH_DBC)
-StackFrameIterator::StackFrameIterator(uword fp, uword sp, uword pc,
- bool validate, Thread* thread)
+StackFrameIterator::StackFrameIterator(uword fp,
+ uword sp,
+ uword pc,
+ bool validate,
+ Thread* thread)
: validate_(validate),
entry_(thread),
exit_(thread),
@@ -410,7 +412,8 @@ StackFrame* StackFrameIterator::NextFrame() {
// Iteration starts from an exit frame given by its fp.
current_frame_ = NextExitFrame();
} else if (*(reinterpret_cast<uword*>(
- frames_.fp_ + (kSavedCallerFpSlotFromFp * kWordSize))) == 0) {
+ frames_.fp_ + (kSavedCallerFpSlotFromFp * kWordSize))) ==
+ 0) {
// Iteration starts from an entry frame given by its fp, sp, and pc.
current_frame_ = NextEntryFrame();
} else {
@@ -486,15 +489,15 @@ EntryFrame* StackFrameIterator::NextEntryFrame() {
InlinedFunctionsIterator::InlinedFunctionsIterator(const Code& code, uword pc)
- : index_(0),
- num_materializations_(0),
- dest_frame_size_(0),
- code_(Code::Handle(code.raw())),
- deopt_info_(TypedData::Handle()),
- function_(Function::Handle()),
- pc_(pc),
- deopt_instructions_(),
- object_table_(ObjectPool::Handle()) {
+ : index_(0),
+ num_materializations_(0),
+ dest_frame_size_(0),
+ code_(Code::Handle(code.raw())),
+ deopt_info_(TypedData::Handle()),
+ function_(Function::Handle()),
+ pc_(pc),
+ deopt_instructions_(),
+ object_table_(ObjectPool::Handle()) {
ASSERT(code_.is_optimized());
ASSERT(pc_ != 0);
ASSERT(code.ContainsInstructionAt(pc));
@@ -546,9 +549,7 @@ void InlinedFunctionsIterator::Advance() {
// current frame were to be deoptimized.
intptr_t InlinedFunctionsIterator::GetDeoptFpOffset() const {
ASSERT(deopt_instructions_.length() != 0);
- for (intptr_t index = index_;
- index < deopt_instructions_.length();
- index++) {
+ for (intptr_t index = index_; index < deopt_instructions_.length(); index++) {
DeoptInstr* deopt_instr = deopt_instructions_[index];
if (deopt_instr->kind() == DeoptInstr::kCallerFp) {
#if defined(TARGET_ARCH_DBC)
« no previous file with comments | « runtime/vm/stack_frame.h ('k') | runtime/vm/stack_frame_dbc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698