| 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 #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 Loading... |
| 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 Loading... |
| 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) |
| OLD | NEW |