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

Unified Diff: pkg/kernel/lib/transformations/continuation.dart

Issue 2690873005: Enable causal stacktrace in kernel (Closed)
Patch Set: Addressed comments Created 3 years, 10 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 | « no previous file | runtime/vm/kernel_to_il.cc » ('j') | runtime/vm/kernel_to_il.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/lib/transformations/continuation.dart
diff --git a/pkg/kernel/lib/transformations/continuation.dart b/pkg/kernel/lib/transformations/continuation.dart
index d8122e3bbb83af37ec97088e4c8e0449303172bf..10a96a9552f432a3073ac10df1a5e5f521302ce5 100644
--- a/pkg/kernel/lib/transformations/continuation.dart
+++ b/pkg/kernel/lib/transformations/continuation.dart
@@ -198,6 +198,8 @@ abstract class AsyncRewriterBase extends ContinuationRewriterBase {
new VariableDeclaration(":async_op_then");
final VariableDeclaration catchErrorContinuationVariable =
new VariableDeclaration(":async_op_error");
+ final VariableDeclaration asyncStackTrace =
+ new VariableDeclaration(":async_stack_trace");
LabeledStatement labeledBody;
@@ -215,6 +217,9 @@ abstract class AsyncRewriterBase extends ContinuationRewriterBase {
// var :async_op_error;
statements.add(catchErrorContinuationVariable);
+ // var :async_stack_trace;
+ statements.add(asyncStackTrace);
+
// :async_op([:result, :exception, :stack_trace]) {
// modified <node.body>;
// }
« no previous file with comments | « no previous file | runtime/vm/kernel_to_il.cc » ('j') | runtime/vm/kernel_to_il.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698