| 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.
|
|
|