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

Unified Diff: runtime/vm/scopes.h

Issue 14682020: Optimize functions containing try-catch. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: addressed Srdjan's comments Created 7 years, 7 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
Index: runtime/vm/scopes.h
===================================================================
--- runtime/vm/scopes.h (revision 22436)
+++ runtime/vm/scopes.h (working copy)
@@ -32,6 +32,7 @@
is_final_(false),
is_captured_(false),
is_invisible_(false),
+ always_live_(false),
index_(LocalVariable::kUnitializedIndex) {
ASSERT(type.IsZoneHandle());
ASSERT(type.IsFinalized());
@@ -72,6 +73,9 @@
is_invisible_ = value;
}
+ bool always_live() const { return always_live_; }
Kevin Millikin (Google) 2013/05/08 11:42:00 This needs a comment that is is, for example, for
Florian Schneider 2013/05/08 17:10:55 Done.
+ void mark_as_always_live() { always_live_ = true; }
+
bool IsConst() const {
return const_value_ != NULL;
}
@@ -109,6 +113,7 @@
bool is_captured_; // If true, this variable lives in the context, otherwise
// in the stack frame.
bool is_invisible_;
+ bool always_live_;
int index_; // Allocation index in words relative to frame pointer (if not
// captured), or relative to the context pointer (if captured).

Powered by Google App Engine
This is Rietveld 408576698