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

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

Issue 24994003: Re-apply "Move the container tracer to the call graph inferrer.". (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 2 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 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 ResolverTask resolver; 526 ResolverTask resolver;
527 closureMapping.ClosureTask closureToClassMapper; 527 closureMapping.ClosureTask closureToClassMapper;
528 TypeCheckerTask checker; 528 TypeCheckerTask checker;
529 ti.TypesTask typesTask; 529 ti.TypesTask typesTask;
530 Backend backend; 530 Backend backend;
531 ConstantHandler constantHandler; 531 ConstantHandler constantHandler;
532 ConstantHandler metadataHandler; 532 ConstantHandler metadataHandler;
533 EnqueueTask enqueuer; 533 EnqueueTask enqueuer;
534 DeferredLoadTask deferredLoadTask; 534 DeferredLoadTask deferredLoadTask;
535 MirrorUsageAnalyzerTask mirrorUsageAnalyzerTask; 535 MirrorUsageAnalyzerTask mirrorUsageAnalyzerTask;
536 ContainerTracer containerTracer;
537 String buildId; 536 String buildId;
538 537
539 static const SourceString MAIN = const SourceString('main'); 538 static const SourceString MAIN = const SourceString('main');
540 static const SourceString CALL_OPERATOR_NAME = const SourceString('call'); 539 static const SourceString CALL_OPERATOR_NAME = const SourceString('call');
541 static const SourceString NO_SUCH_METHOD = const SourceString('noSuchMethod'); 540 static const SourceString NO_SUCH_METHOD = const SourceString('noSuchMethod');
542 static const int NO_SUCH_METHOD_ARG_COUNT = 1; 541 static const int NO_SUCH_METHOD_ARG_COUNT = 1;
543 static const SourceString CREATE_INVOCATION_MIRROR = 542 static const SourceString CREATE_INVOCATION_MIRROR =
544 const SourceString('createInvocationMirror'); 543 const SourceString('createInvocationMirror');
545 544
546 // TODO(ahe): Rename this field and move this logic to backend, similar to how 545 // TODO(ahe): Rename this field and move this logic to backend, similar to how
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 tasks = [ 631 tasks = [
633 libraryLoader = new LibraryLoaderTask(this), 632 libraryLoader = new LibraryLoaderTask(this),
634 scanner = new ScannerTask(this), 633 scanner = new ScannerTask(this),
635 dietParser = new DietParserTask(this), 634 dietParser = new DietParserTask(this),
636 parser = new ParserTask(this), 635 parser = new ParserTask(this),
637 patchParser = new PatchParserTask(this), 636 patchParser = new PatchParserTask(this),
638 resolver = new ResolverTask(this), 637 resolver = new ResolverTask(this),
639 closureToClassMapper = new closureMapping.ClosureTask(this, closureNamer), 638 closureToClassMapper = new closureMapping.ClosureTask(this, closureNamer),
640 checker = new TypeCheckerTask(this), 639 checker = new TypeCheckerTask(this),
641 typesTask = new ti.TypesTask(this), 640 typesTask = new ti.TypesTask(this),
642 containerTracer = new ContainerTracer(this),
643 constantHandler = new ConstantHandler(this, backend.constantSystem), 641 constantHandler = new ConstantHandler(this, backend.constantSystem),
644 deferredLoadTask = new DeferredLoadTask(this), 642 deferredLoadTask = new DeferredLoadTask(this),
645 mirrorUsageAnalyzerTask = new MirrorUsageAnalyzerTask(this), 643 mirrorUsageAnalyzerTask = new MirrorUsageAnalyzerTask(this),
646 enqueuer = new EnqueueTask(this)]; 644 enqueuer = new EnqueueTask(this)];
647 645
648 tasks.addAll(backend.tasks); 646 tasks.addAll(backend.tasks);
649 metadataHandler = new ConstantHandler( 647 metadataHandler = new ConstantHandler(
650 this, backend.constantSystem, isMetadata: true); 648 this, backend.constantSystem, isMetadata: true);
651 } 649 }
652 650
(...skipping 944 matching lines...) Expand 10 before | Expand all | Expand 10 after
1597 1595
1598 void close() {} 1596 void close() {}
1599 1597
1600 toString() => name; 1598 toString() => name;
1601 1599
1602 /// Convenience method for getting an [api.CompilerOutputProvider]. 1600 /// Convenience method for getting an [api.CompilerOutputProvider].
1603 static NullSink outputProvider(String name, String extension) { 1601 static NullSink outputProvider(String name, String extension) {
1604 return new NullSink('$name.$extension'); 1602 return new NullSink('$name.$extension');
1605 } 1603 }
1606 } 1604 }
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