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

Side by Side Diff: runtime/vm/ast.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, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_AST_H_ 5 #ifndef VM_AST_H_
6 #define VM_AST_H_ 6 #define VM_AST_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/allocation.h" 9 #include "vm/allocation.h"
10 #include "vm/growable_array.h" 10 #include "vm/growable_array.h"
(...skipping 1096 matching lines...) Expand 10 before | Expand all | Expand 10 after
1107 public: 1107 public:
1108 JumpNode(intptr_t token_index, 1108 JumpNode(intptr_t token_index,
1109 Token::Kind kind, 1109 Token::Kind kind,
1110 SourceLabel* label) 1110 SourceLabel* label)
1111 : AstNode(token_index), 1111 : AstNode(token_index),
1112 kind_(kind), 1112 kind_(kind),
1113 label_(label), 1113 label_(label),
1114 inlined_finally_list_(NULL) { 1114 inlined_finally_list_(NULL) {
1115 ASSERT(label_ != NULL); 1115 ASSERT(label_ != NULL);
1116 ASSERT(kind_ == Token::kBREAK || kind_ == Token::kCONTINUE); 1116 ASSERT(kind_ == Token::kBREAK || kind_ == Token::kCONTINUE);
1117 if (kind_ == Token::kCONTINUE) {
1118 label_->set_is_continue_target(true);
1119 }
1117 } 1120 }
1118 1121
1119 SourceLabel* label() const { return label_; } 1122 SourceLabel* label() const { return label_; }
1120 Token::Kind kind() const { return kind_; } 1123 Token::Kind kind() const { return kind_; }
1121 1124
1122 intptr_t inlined_finally_list_length() const { 1125 intptr_t inlined_finally_list_length() const {
1123 return inlined_finally_list_.length(); 1126 return inlined_finally_list_.length();
1124 } 1127 }
1125 InlinedFinallyNode* InlinedFinallyNodeAt(intptr_t index) const { 1128 InlinedFinallyNode* InlinedFinallyNodeAt(intptr_t index) const {
1126 return inlined_finally_list_[index]; 1129 return inlined_finally_list_[index];
(...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after
1856 const LocalVariable& context_var_; 1859 const LocalVariable& context_var_;
1857 1860
1858 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode); 1861 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode);
1859 }; 1862 };
1860 1863
1861 } // namespace dart 1864 } // namespace dart
1862 1865
1863 #undef DECLARE_COMMON_NODE_FUNCTIONS 1866 #undef DECLARE_COMMON_NODE_FUNCTIONS
1864 1867
1865 #endif // VM_AST_H_ 1868 #endif // VM_AST_H_
OLDNEW
« 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