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

Unified Diff: runtime/vm/ast.h

Issue 71703002: Introduce a nesting stack to the flow graph builder. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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.h » ('j') | runtime/vm/flow_graph_builder.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/ast.h
diff --git a/runtime/vm/ast.h b/runtime/vm/ast.h
index 662e2ddb14fe7211a06274e4b8ac5fcaf499564f..4d89ef448022f27e53664db2bc1ddd97b320e383 100644
--- a/runtime/vm/ast.h
+++ b/runtime/vm/ast.h
@@ -833,7 +833,7 @@ class SwitchNode : public AstNode {
}
SourceLabel* label() const { return label_; }
- AstNode* body() const { return body_; }
+ SequenceNode* body() const { return body_; }
virtual void VisitChildren(AstNodeVisitor* visitor) const {
body()->Visit(visitor);
@@ -843,7 +843,7 @@ class SwitchNode : public AstNode {
private:
SourceLabel* label_;
- AstNode* body_;
+ SequenceNode* body_;
DISALLOW_IMPLICIT_CONSTRUCTORS(SwitchNode);
};
@@ -979,9 +979,6 @@ class JumpNode : public AstNode {
inlined_finally_list_() {
ASSERT(label_ != NULL);
ASSERT(kind_ == Token::kBREAK || kind_ == Token::kCONTINUE);
- if (kind_ == Token::kCONTINUE) {
- label_->set_is_continue_target(true);
- }
}
SourceLabel* label() const { return label_; }
« no previous file with comments | « no previous file | runtime/vm/flow_graph_builder.h » ('j') | runtime/vm/flow_graph_builder.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698