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

Unified Diff: runtime/vm/flow_graph_builder.cc

Issue 973103002: One more fix to async machinery (rethrow in finally, issue 22595). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 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 | « runtime/vm/ast.h ('k') | runtime/vm/parser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_builder.cc
===================================================================
--- runtime/vm/flow_graph_builder.cc (revision 44187)
+++ runtime/vm/flow_graph_builder.cc (working copy)
@@ -4098,12 +4098,11 @@
finally_block->Visit(&for_finally);
if (for_finally.is_open()) {
// Rethrow the exception. Manually build the graph for rethrow.
- // TODO(regis): This is not correct. Issue 22595.
Value* exception = for_finally.Bind(
- for_finally.BuildLoadLocal(catch_block->exception_var()));
+ for_finally.BuildLoadLocal(catch_block->rethrow_exception_var()));
for_finally.PushArgument(exception);
Value* stacktrace = for_finally.Bind(
- for_finally.BuildLoadLocal(catch_block->stacktrace_var()));
+ for_finally.BuildLoadLocal(catch_block->rethrow_stacktrace_var()));
for_finally.PushArgument(stacktrace);
for_finally.AddInstruction(
new(I) ReThrowInstr(catch_block->token_pos(), catch_handler_index));
« no previous file with comments | « runtime/vm/ast.h ('k') | runtime/vm/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698