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

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

Issue 2485993002: VM: Support bootstrapping core libraries from Kernel binaries instead of source. (Closed)
Patch Set: Done Created 4 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 unified diff | Download patch
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 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
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)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698