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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/compiler.dart

Issue 17028011: Implement a list tracer phase, that tries to find element types in individual lists. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/dart2jslib.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 part of dart2js; 5 part of dart2js;
6 6
7 /** 7 /**
8 * If true, print a warning for each method that was resolved, but not 8 * If true, print a warning for each method that was resolved, but not
9 * compiled. 9 * compiled.
10 */ 10 */
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 ResolverTask resolver; 398 ResolverTask resolver;
399 closureMapping.ClosureTask closureToClassMapper; 399 closureMapping.ClosureTask closureToClassMapper;
400 TypeCheckerTask checker; 400 TypeCheckerTask checker;
401 ti.TypesTask typesTask; 401 ti.TypesTask typesTask;
402 Backend backend; 402 Backend backend;
403 ConstantHandler constantHandler; 403 ConstantHandler constantHandler;
404 ConstantHandler metadataHandler; 404 ConstantHandler metadataHandler;
405 EnqueueTask enqueuer; 405 EnqueueTask enqueuer;
406 CompilerTask fileReadingTask; 406 CompilerTask fileReadingTask;
407 DeferredLoadTask deferredLoadTask; 407 DeferredLoadTask deferredLoadTask;
408 ContainerTracer containerTracer;
408 String buildId; 409 String buildId;
409 410
410 static const SourceString MAIN = const SourceString('main'); 411 static const SourceString MAIN = const SourceString('main');
411 static const SourceString CALL_OPERATOR_NAME = const SourceString('call'); 412 static const SourceString CALL_OPERATOR_NAME = const SourceString('call');
412 static const SourceString NO_SUCH_METHOD = const SourceString('noSuchMethod'); 413 static const SourceString NO_SUCH_METHOD = const SourceString('noSuchMethod');
413 static const int NO_SUCH_METHOD_ARG_COUNT = 1; 414 static const int NO_SUCH_METHOD_ARG_COUNT = 1;
414 static const SourceString CREATE_INVOCATION_MIRROR = 415 static const SourceString CREATE_INVOCATION_MIRROR =
415 const SourceString('createInvocationMirror'); 416 const SourceString('createInvocationMirror');
416 static const SourceString INVOKE_ON = const SourceString('_invokeOn'); 417 static const SourceString INVOKE_ON = const SourceString('_invokeOn');
417 static const SourceString RUNTIME_TYPE = const SourceString('runtimeType'); 418 static const SourceString RUNTIME_TYPE = const SourceString('runtimeType');
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 fileReadingTask = new ReadingFilesTask(this), 500 fileReadingTask = new ReadingFilesTask(this),
500 libraryLoader = new LibraryLoaderTask(this), 501 libraryLoader = new LibraryLoaderTask(this),
501 scanner = new ScannerTask(this), 502 scanner = new ScannerTask(this),
502 dietParser = new DietParserTask(this), 503 dietParser = new DietParserTask(this),
503 parser = new ParserTask(this), 504 parser = new ParserTask(this),
504 patchParser = new PatchParserTask(this), 505 patchParser = new PatchParserTask(this),
505 resolver = new ResolverTask(this), 506 resolver = new ResolverTask(this),
506 closureToClassMapper = new closureMapping.ClosureTask(this, closureNamer), 507 closureToClassMapper = new closureMapping.ClosureTask(this, closureNamer),
507 checker = new TypeCheckerTask(this), 508 checker = new TypeCheckerTask(this),
508 typesTask = new ti.TypesTask(this), 509 typesTask = new ti.TypesTask(this),
510 containerTracer = new ContainerTracer(this),
509 constantHandler = new ConstantHandler(this, backend.constantSystem), 511 constantHandler = new ConstantHandler(this, backend.constantSystem),
510 deferredLoadTask = new DeferredLoadTask(this), 512 deferredLoadTask = new DeferredLoadTask(this),
511 enqueuer = new EnqueueTask(this)]; 513 enqueuer = new EnqueueTask(this)];
512 514
513 tasks.addAll(backend.tasks); 515 tasks.addAll(backend.tasks);
514 metadataHandler = new ConstantHandler( 516 metadataHandler = new ConstantHandler(
515 this, backend.constantSystem, isMetadata: true); 517 this, backend.constantSystem, isMetadata: true);
516 } 518 }
517 519
518 Universe get resolverWorld => enqueuer.resolution.universe; 520 Universe get resolverWorld => enqueuer.resolution.universe;
(...skipping 868 matching lines...) Expand 10 before | Expand all | Expand 10 after
1387 1389
1388 void close() {} 1390 void close() {}
1389 1391
1390 toString() => name; 1392 toString() => name;
1391 1393
1392 /// Convenience method for getting an [api.CompilerOutputProvider]. 1394 /// Convenience method for getting an [api.CompilerOutputProvider].
1393 static NullSink outputProvider(String name, String extension) { 1395 static NullSink outputProvider(String name, String extension) {
1394 return new NullSink('$name.$extension'); 1396 return new NullSink('$name.$extension');
1395 } 1397 }
1396 } 1398 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/dart2jslib.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698