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

Unified Diff: runtime/vm/scopes.h

Issue 9959127: New compiler: implement switch/case in graph builder. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 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
« runtime/vm/flow_graph_builder.cc ('K') | « runtime/vm/flow_graph_builder.cc ('k') | no next file » | 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 6099)
+++ runtime/vm/scopes.h (working copy)
@@ -117,7 +117,8 @@
continue_label_(),
break_label_(),
join_for_break_(NULL),
- join_for_continue_(NULL) {
+ join_for_continue_(NULL),
+ is_continue_target_(false) {
}
static SourceLabel* New(intptr_t token_index, String* name, Kind kind) {
@@ -151,6 +152,9 @@
return join_for_continue_;
}
+ bool is_continue_target() const { return is_continue_target_; }
+ void set_is_continue_target(bool value) { is_continue_target_ = value; }
+
void set_join_for_break(JoinEntryInstr* join) {
ASSERT(join_for_break_ == NULL);
join_for_break_ = join;
@@ -175,6 +179,7 @@
Label break_label_;
JoinEntryInstr* join_for_break_;
JoinEntryInstr* join_for_continue_;
+ bool is_continue_target_; // Needed for CaseNode.
static const char* kDefaultLabelName;
DISALLOW_COPY_AND_ASSIGN(SourceLabel);
« runtime/vm/flow_graph_builder.cc ('K') | « runtime/vm/flow_graph_builder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698