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

Unified Diff: runtime/lib/stacktrace.cc

Issue 2974233002: VM: Re-format to use at most one newline between functions (Closed)
Patch Set: Rebase and merge Created 3 years, 5 months 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/lib/simd128.cc ('k') | runtime/lib/stopwatch.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/stacktrace.cc
diff --git a/runtime/lib/stacktrace.cc b/runtime/lib/stacktrace.cc
index 8be29793cf12356c4665042dbdccf305afa43314..d8b8cab176a7f68d71890d1f3cba74d00aedc45a 100644
--- a/runtime/lib/stacktrace.cc
+++ b/runtime/lib/stacktrace.cc
@@ -40,7 +40,6 @@ static RawStackTrace* CurrentSyncStackTrace(Thread* thread,
return StackTrace::New(code_array, pc_offset_array);
}
-
static RawStackTrace* CurrentStackTrace(
Thread* thread,
bool for_async_function,
@@ -98,18 +97,15 @@ static RawStackTrace* CurrentStackTrace(
return StackTrace::New(code_array, pc_offset_array, async_stack_trace);
}
-
RawStackTrace* GetStackTraceForException() {
Thread* thread = Thread::Current();
return CurrentStackTrace(thread, false, 0);
}
-
DEFINE_NATIVE_ENTRY(StackTrace_current, 0) {
return CurrentStackTrace(thread, false);
}
-
DEFINE_NATIVE_ENTRY(StackTrace_asyncStackTraceHelper, 1) {
GET_NATIVE_ARGUMENT(Closure, async_op, arguments->NativeArgAt(0));
if (!async_op.IsNull()) {
@@ -123,13 +119,11 @@ DEFINE_NATIVE_ENTRY(StackTrace_asyncStackTraceHelper, 1) {
return CurrentStackTrace(thread, true);
}
-
DEFINE_NATIVE_ENTRY(StackTrace_clearAsyncThreadStackTrace, 0) {
thread->clear_async_stack_trace();
return Object::null();
}
-
DEFINE_NATIVE_ENTRY(StackTrace_setAsyncThreadStackTrace, 1) {
GET_NON_NULL_NATIVE_ARGUMENT(StackTrace, stack_trace,
arguments->NativeArgAt(0));
@@ -137,7 +131,6 @@ DEFINE_NATIVE_ENTRY(StackTrace_setAsyncThreadStackTrace, 1) {
return Object::null();
}
-
static void AppendFrames(const GrowableObjectArray& code_list,
const GrowableObjectArray& pc_offset_list,
int skip_frames) {
@@ -163,7 +156,6 @@ static void AppendFrames(const GrowableObjectArray& code_list,
}
}
-
// Creates a StackTrace object from the current stack.
//
// Skips the first skip_frames Dart frames.
« no previous file with comments | « runtime/lib/simd128.cc ('k') | runtime/lib/stopwatch.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698