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

Unified Diff: runtime/vm/ast.h

Issue 467933002: Fix issue 20476: creating multiple LocalVariables with same name (finally_ret_val35), confuses the … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 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/flow_graph_builder.cc » ('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 39201)
+++ runtime/vm/ast.h (working copy)
@@ -524,7 +524,6 @@
: AstNode(token_pos),
value_(new LiteralNode(token_pos, Instance::ZoneHandle())),
inlined_finally_list_(),
- saved_return_value_var_(NULL),
is_regular_return_(true) { }
// Return from a non-void function.
ReturnNode(intptr_t token_pos,
@@ -532,7 +531,6 @@
: AstNode(token_pos),
value_(value),
inlined_finally_list_(),
- saved_return_value_var_(NULL),
is_regular_return_(true) {
ASSERT(value_ != NULL);
}
@@ -549,13 +547,6 @@
inlined_finally_list_.Add(finally_node);
}
- LocalVariable* saved_return_value_var() const {
- return saved_return_value_var_;
- }
- void set_saved_return_value_var(LocalVariable* var) {
- saved_return_value_var_ = var;
- }
-
virtual void VisitChildren(AstNodeVisitor* visitor) const {
if (value() != NULL) {
value()->Visit(visitor);
@@ -573,7 +564,6 @@
private:
AstNode* value_;
GrowableArray<InlinedFinallyNode*> inlined_finally_list_;
- LocalVariable* saved_return_value_var_;
LocalScope* scope_;
bool is_regular_return_;
« no previous file with comments | « no previous file | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698