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

Unified Diff: runtime/vm/scopes.h

Issue 653073002: Fix bug with captured parameters and optimized try-catch. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 2 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/flow_graph_compiler.cc ('k') | tests/language/vm/optimized_await_regress_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/scopes.h
===================================================================
--- runtime/vm/scopes.h (revision 41095)
+++ runtime/vm/scopes.h (working copy)
@@ -32,6 +32,7 @@
is_final_(false),
is_captured_(false),
is_invisible_(false),
+ is_captured_parameter_(false),
index_(LocalVariable::kUninitializedIndex) {
ASSERT(type.IsZoneHandle());
ASSERT(type.IsFinalized());
@@ -73,6 +74,11 @@
}
bool is_invisible() const { return is_invisible_; }
+ bool is_captured_parameter() const { return is_captured_parameter_; }
+ void set_is_captured_parameter(bool value) {
+ is_captured_parameter_ = value;
+ }
+
bool IsConst() const {
return const_value_ != NULL;
}
@@ -110,6 +116,7 @@
bool is_captured_; // If true, this variable lives in the context, otherwise
// in the stack frame.
bool is_invisible_;
+ bool is_captured_parameter_;
int index_; // Allocation index in words relative to frame pointer (if not
// captured), or relative to the context pointer (if captured).
« no previous file with comments | « runtime/vm/flow_graph_compiler.cc ('k') | tests/language/vm/optimized_await_regress_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698