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

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

Issue 2786083002: Read platform.dill in the VM. (Closed)
Patch Set: Allow main to be a field or getter. Created 3 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
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 {
11 11
12 12
13 template <typename T> 13 template <typename T>
14 void VisitList(List<T>* list, Visitor* visitor) { 14 void VisitList(List<T>* list, Visitor* visitor) {
15 for (int i = 0; i < list->length(); ++i) { 15 for (int i = 0; i < list->length(); ++i) {
16 (*list)[i]->AcceptVisitor(visitor); 16 (*list)[i]->AcceptVisitor(visitor);
17 } 17 }
18 } 18 }
19 19
20 20
21 CanonicalName::CanonicalName() : is_referenced_(false) {} 21 CanonicalName::CanonicalName()
22 : parent_(NULL), name_(NULL), is_referenced_(false) {}
22 23
23 24
24 CanonicalName::~CanonicalName() { 25 CanonicalName::~CanonicalName() {
25 for (intptr_t i = 0; i < children_.length(); ++i) { 26 for (intptr_t i = 0; i < children_.length(); ++i) {
26 delete children_[i]; 27 delete children_[i];
27 } 28 }
28 } 29 }
29 30
30 31
31 CanonicalName* CanonicalName::NewRoot() { 32 CanonicalName* CanonicalName::NewRoot() {
(...skipping 1291 matching lines...) Expand 10 before | Expand all | Expand 10 after
1323 1324
1324 void Program::VisitChildren(Visitor* visitor) { 1325 void Program::VisitChildren(Visitor* visitor) {
1325 VisitList(&libraries(), visitor); 1326 VisitList(&libraries(), visitor);
1326 } 1327 }
1327 1328
1328 1329
1329 } // namespace kernel 1330 } // namespace kernel
1330 1331
1331 } // namespace dart 1332 } // namespace dart
1332 #endif // !defined(DART_PRECOMPILED_RUNTIME) 1333 #endif // !defined(DART_PRECOMPILED_RUNTIME)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698