OLD | NEW |
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 namespace dart { | 8 namespace dart { |
8 | 9 |
9 namespace kernel { | 10 namespace kernel { |
10 | 11 |
11 | 12 |
12 template <typename T> | 13 template <typename T> |
13 void VisitList(List<T>* list, Visitor* visitor) { | 14 void VisitList(List<T>* list, Visitor* visitor) { |
14 for (int i = 0; i < list->length(); ++i) { | 15 for (int i = 0; i < list->length(); ++i) { |
15 (*list)[i]->AcceptVisitor(visitor); | 16 (*list)[i]->AcceptVisitor(visitor); |
16 } | 17 } |
(...skipping 1183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1200 | 1201 |
1201 void Program::VisitChildren(Visitor* visitor) { | 1202 void Program::VisitChildren(Visitor* visitor) { |
1202 VisitList(&libraries(), visitor); | 1203 VisitList(&libraries(), visitor); |
1203 visitor->VisitProcedureReference(main_method()); | 1204 visitor->VisitProcedureReference(main_method()); |
1204 } | 1205 } |
1205 | 1206 |
1206 | 1207 |
1207 } // namespace kernel | 1208 } // namespace kernel |
1208 | 1209 |
1209 } // namespace dart | 1210 } // namespace dart |
| 1211 #endif // !defined(DART_PRECOMPILED_RUNTIME) |
OLD | NEW |