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

Unified Diff: runtime/vm/ast.h

Issue 1569523002: Fix VM bug with try-catch inside of try-finally. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: added comment Created 4 years, 11 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/code_descriptors.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/ast.h
diff --git a/runtime/vm/ast.h b/runtime/vm/ast.h
index 0e9b68c3107aa8dd5828523affb6a34b24515aba..12b29e7013f67dcde002d22a45caf30a12ef6119 100644
--- a/runtime/vm/ast.h
+++ b/runtime/vm/ast.h
@@ -1921,13 +1921,15 @@ class TryCatchNode : public AstNode {
const LocalVariable* context_var,
CatchClauseNode* catch_block,
SequenceNode* finally_block,
- intptr_t try_index)
+ intptr_t try_index,
+ SequenceNode* rethrow_clause)
: AstNode(token_pos),
try_block_(try_block),
context_var_(*context_var),
catch_block_(catch_block),
finally_block_(finally_block),
- try_index_(try_index) {
+ try_index_(try_index),
+ rethrow_clause_(rethrow_clause) {
ASSERT(try_block_ != NULL);
ASSERT(context_var != NULL);
ASSERT(catch_block_ != NULL);
@@ -1939,6 +1941,8 @@ class TryCatchNode : public AstNode {
const LocalVariable& context_var() const { return context_var_; }
intptr_t try_index() const { return try_index_; }
+ SequenceNode* rethrow_clause() const { return rethrow_clause_; }
+
virtual void VisitChildren(AstNodeVisitor* visitor) const {
try_block_->Visit(visitor);
if (catch_block_ != NULL) {
@@ -1957,6 +1961,7 @@ class TryCatchNode : public AstNode {
CatchClauseNode* catch_block_;
SequenceNode* finally_block_;
const intptr_t try_index_;
+ SequenceNode* rethrow_clause_;
DISALLOW_COPY_AND_ASSIGN(TryCatchNode);
};
« no previous file with comments | « no previous file | runtime/vm/code_descriptors.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698