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

Side by Side Diff: pkg/compiler/lib/src/use_unused_api.dart

Issue 1234053002: Add SubclassNode to prepare for optimized queries on ClassWorld. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 5 years, 5 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 | « pkg/compiler/lib/src/universe/class_set.dart ('k') | pkg/compiler/lib/src/world.dart » ('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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 /// This file use methods that aren't used by dart2js.dart, but that we wish to 5 /// This file use methods that aren't used by dart2js.dart, but that we wish to
6 /// keep anyway. This might be general API that isn't currently in use, 6 /// keep anyway. This might be general API that isn't currently in use,
7 /// debugging aids, or API only used for testing (see TODO below). 7 /// debugging aids, or API only used for testing (see TODO below).
8 8
9 library dart2js.use_unused_api; 9 library dart2js.use_unused_api;
10 10
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 usedByTests() { 253 usedByTests() {
254 // TODO(ahe): We should try to avoid including API used only for tests. In 254 // TODO(ahe): We should try to avoid including API used only for tests. In
255 // most cases, such API can be moved to a test library. 255 // most cases, such API can be moved to a test library.
256 dart2jslib.World world = null; 256 dart2jslib.World world = null;
257 dart2jslib.Compiler compiler = null; 257 dart2jslib.Compiler compiler = null;
258 compiler.currentlyInUserCode(); 258 compiler.currentlyInUserCode();
259 type_graph_inferrer.TypeGraphInferrer typeGraphInferrer = null; 259 type_graph_inferrer.TypeGraphInferrer typeGraphInferrer = null;
260 source_file_provider.SourceFileProvider sourceFileProvider = null; 260 source_file_provider.SourceFileProvider sourceFileProvider = null;
261 sourceFileProvider.getSourceFile(null); 261 sourceFileProvider.getSourceFile(null);
262 world.hasAnyUserDefinedGetter(null, null); 262 world.hasAnyUserDefinedGetter(null, null);
263 world.subclassesOf(null);
264 world.classHierarchyNode(null);
263 typeGraphInferrer.getCallersOf(null); 265 typeGraphInferrer.getCallersOf(null);
264 dart_types.Types.sorted(null); 266 dart_types.Types.sorted(null);
265 new dart_types.Types(compiler).copy(compiler); 267 new dart_types.Types(compiler).copy(compiler);
266 sourceFileProvider.readStringFromUri(null); 268 sourceFileProvider.readStringFromUri(null);
267 } 269 }
268 270
269 useElements( 271 useElements(
270 [elements.ClassElement e, 272 [elements.ClassElement e,
271 elements.Name n, 273 elements.Name n,
272 modelx.FieldElementX f, 274 modelx.FieldElementX f,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 330
329 class TreeVisitor1 extends tree_ir.ExpressionVisitor1 331 class TreeVisitor1 extends tree_ir.ExpressionVisitor1
330 with tree_ir.StatementVisitor1 { 332 with tree_ir.StatementVisitor1 {
331 noSuchMethod(inv) {} 333 noSuchMethod(inv) {}
332 } 334 }
333 335
334 useTreeVisitors() { 336 useTreeVisitors() {
335 new TreeVisitor1().visitExpression(null, null); 337 new TreeVisitor1().visitExpression(null, null);
336 new TreeVisitor1().visitStatement(null, null); 338 new TreeVisitor1().visitStatement(null, null);
337 } 339 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/universe/class_set.dart ('k') | pkg/compiler/lib/src/world.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698