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

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

Issue 2632183002: Debugging in kernel shaping up. (Closed)
Patch Set: Created 3 years, 11 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 {
(...skipping 1159 matching lines...) Expand 10 before | Expand all | Expand 10 after
1170 void TypeParameter::AcceptTreeVisitor(TreeVisitor* visitor) { 1170 void TypeParameter::AcceptTreeVisitor(TreeVisitor* visitor) {
1171 visitor->VisitTypeParameter(this); 1171 visitor->VisitTypeParameter(this);
1172 } 1172 }
1173 1173
1174 1174
1175 void TypeParameter::VisitChildren(Visitor* visitor) { 1175 void TypeParameter::VisitChildren(Visitor* visitor) {
1176 bound()->AcceptDartTypeVisitor(visitor); 1176 bound()->AcceptDartTypeVisitor(visitor);
1177 } 1177 }
1178 1178
1179 1179
1180 Program::~Program() {} 1180 Program::~Program() {
1181 while (valid_token_positions.length() > 0) {
1182 free(valid_token_positions.RemoveLast());
Kevin Millikin (Google) 2017/01/24 13:44:12 These are allocated with new and deallocated with
jensj 2017/01/25 12:52:22 Done.
1183 }
1184 while (yield_token_positions.length() > 0) {
1185 free(yield_token_positions.RemoveLast());
1186 }
1187 }
1181 1188
1182 1189
1183 void Program::AcceptTreeVisitor(TreeVisitor* visitor) { 1190 void Program::AcceptTreeVisitor(TreeVisitor* visitor) {
1184 visitor->VisitProgram(this); 1191 visitor->VisitProgram(this);
1185 } 1192 }
1186 1193
1187 1194
1188 void Program::VisitChildren(Visitor* visitor) { 1195 void Program::VisitChildren(Visitor* visitor) {
1189 VisitList(&libraries(), visitor); 1196 VisitList(&libraries(), visitor);
1190 visitor->VisitProcedureReference(main_method()); 1197 visitor->VisitProcedureReference(main_method());
1191 } 1198 }
1192 1199
1193 1200
1194 } // namespace kernel 1201 } // namespace kernel
1195 1202
1196 } // namespace dart 1203 } // namespace dart
1197 #endif // !defined(DART_PRECOMPILED_RUNTIME) 1204 #endif // !defined(DART_PRECOMPILED_RUNTIME)
OLDNEW
« no previous file with comments | « runtime/vm/kernel.h ('k') | runtime/vm/kernel_binary.cc » ('j') | runtime/vm/kernel_reader.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698