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

Side by Side Diff: runtime/vm/kernel.cc

Issue 2624513005: Small cleanups in the Kernel FlowGraphBuilder (Closed)
Patch Set: Incorporate review comments Created 3 years, 11 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
« no previous file with comments | « runtime/vm/kernel.h ('k') | runtime/vm/kernel_binary.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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 #include "vm/kernel.h" 5 #include "vm/kernel.h"
6 6
7 #if !defined(DART_PRECOMPILED_RUNTIME) 7 #if !defined(DART_PRECOMPILED_RUNTIME)
8 namespace dart { 8 namespace dart {
9 9
10 namespace kernel { 10 namespace kernel {
(...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after
745 visitor->VisitLet(this); 745 visitor->VisitLet(this);
746 } 746 }
747 747
748 748
749 void Let::VisitChildren(Visitor* visitor) { 749 void Let::VisitChildren(Visitor* visitor) {
750 visitor->VisitVariableDeclaration(variable()); 750 visitor->VisitVariableDeclaration(variable());
751 body()->AcceptExpressionVisitor(visitor); 751 body()->AcceptExpressionVisitor(visitor);
752 } 752 }
753 753
754 754
755 BlockExpression::~BlockExpression() {}
756
757
758 void BlockExpression::AcceptExpressionVisitor(ExpressionVisitor* visitor) {
759 visitor->VisitBlockExpression(this);
760 }
761
762
763 void BlockExpression::VisitChildren(Visitor* visitor) {
764 visitor->VisitBlock(body());
765 value()->AcceptExpressionVisitor(visitor);
766 }
767
768
769 Statement::~Statement() {} 755 Statement::~Statement() {}
770 756
771 757
772 void Statement::AcceptTreeVisitor(TreeVisitor* visitor) { 758 void Statement::AcceptTreeVisitor(TreeVisitor* visitor) {
773 AcceptStatementVisitor(visitor); 759 AcceptStatementVisitor(visitor);
774 } 760 }
775 761
776 762
777 InvalidStatement::~InvalidStatement() {} 763 InvalidStatement::~InvalidStatement() {}
778 764
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
1202 void Program::VisitChildren(Visitor* visitor) { 1188 void Program::VisitChildren(Visitor* visitor) {
1203 VisitList(&libraries(), visitor); 1189 VisitList(&libraries(), visitor);
1204 visitor->VisitProcedureReference(main_method()); 1190 visitor->VisitProcedureReference(main_method());
1205 } 1191 }
1206 1192
1207 1193
1208 } // namespace kernel 1194 } // namespace kernel
1209 1195
1210 } // namespace dart 1196 } // namespace dart
1211 #endif // !defined(DART_PRECOMPILED_RUNTIME) 1197 #endif // !defined(DART_PRECOMPILED_RUNTIME)
OLDNEW
« no previous file with comments | « runtime/vm/kernel.h ('k') | runtime/vm/kernel_binary.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698