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

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

Issue 2786083002: Read platform.dill in the VM. (Closed)
Patch Set: Incorporate review comments and merge. 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
« 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 12 matching lines...) Expand all
23 delete[] source_code_; 23 delete[] source_code_;
24 delete[] line_starts_; 24 delete[] line_starts_;
25 } 25 }
26 26
27 27
28 SourceTable::~SourceTable() { 28 SourceTable::~SourceTable() {
29 delete[] sources_; 29 delete[] sources_;
30 } 30 }
31 31
32 32
33 CanonicalName::CanonicalName() : is_referenced_(false) {} 33 CanonicalName::CanonicalName()
34 : parent_(NULL), name_(NULL), is_referenced_(false) {}
34 35
35 36
36 CanonicalName::~CanonicalName() { 37 CanonicalName::~CanonicalName() {
37 for (intptr_t i = 0; i < children_.length(); ++i) { 38 for (intptr_t i = 0; i < children_.length(); ++i) {
38 delete children_[i]; 39 delete children_[i];
39 } 40 }
40 } 41 }
41 42
42 43
43 CanonicalName* CanonicalName::NewRoot() { 44 CanonicalName* CanonicalName::NewRoot() {
(...skipping 1217 matching lines...) Expand 10 before | Expand all | Expand 10 after
1261 1262
1262 void Program::VisitChildren(Visitor* visitor) { 1263 void Program::VisitChildren(Visitor* visitor) {
1263 VisitList(&libraries(), visitor); 1264 VisitList(&libraries(), visitor);
1264 } 1265 }
1265 1266
1266 1267
1267 } // namespace kernel 1268 } // namespace kernel
1268 1269
1269 } // namespace dart 1270 } // namespace dart
1270 #endif // !defined(DART_PRECOMPILED_RUNTIME) 1271 #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