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

Unified Diff: runtime/vm/ast.h

Issue 11883023: Collect debugging info for catch clauses (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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
===================================================================
--- runtime/vm/ast.h (revision 17099)
+++ runtime/vm/ast.h (working copy)
@@ -1559,16 +1559,19 @@
CatchClauseNode(intptr_t token_pos,
SequenceNode* catch_block,
+ const Array& handler_types,
const LocalVariable* context_var,
const LocalVariable* exception_var,
const LocalVariable* stacktrace_var)
: AstNode(token_pos),
try_index_(kInvalidTryIndex),
catch_block_(catch_block),
+ handler_types_(handler_types),
context_var_(*context_var),
exception_var_(*exception_var),
stacktrace_var_(*stacktrace_var) {
ASSERT(catch_block_ != NULL);
+ ASSERT(handler_types.IsZoneHandle());
ASSERT(context_var != NULL);
ASSERT(exception_var != NULL);
ASSERT(stacktrace_var != NULL);
@@ -1580,6 +1583,7 @@
}
void set_try_index(int value) { try_index_ = value; }
+ const Array& handler_types() const { return handler_types_; }
const LocalVariable& context_var() const { return context_var_; }
const LocalVariable& exception_var() const { return exception_var_; }
const LocalVariable& stacktrace_var() const { return stacktrace_var_; }
@@ -1593,6 +1597,7 @@
private:
int try_index_; // Running index of the try blocks seen in a function.
SequenceNode* catch_block_;
+ const Array& handler_types_;
const LocalVariable& context_var_;
const LocalVariable& exception_var_;
const LocalVariable& stacktrace_var_;
« 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