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

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

Issue 1362953002: dart2js: Measure time of individual optimization passes. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Add a comment Created 5 years, 3 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) 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 library dart2js.compiler_base; 5 library dart2js.compiler_base;
6 6
7 import 'dart:async' show 7 import 'dart:async' show
8 EventSink, 8 EventSink,
9 Future; 9 Future;
10 10
(...skipping 16 matching lines...) Expand all
27 ResolutionWorkItem; 27 ResolutionWorkItem;
28 import 'common/tasks.dart' show 28 import 'common/tasks.dart' show
29 CompilerTask, 29 CompilerTask,
30 GenericTask; 30 GenericTask;
31 import 'common/work.dart' show 31 import 'common/work.dart' show
32 WorkItem; 32 WorkItem;
33 import 'compile_time_constants.dart'; 33 import 'compile_time_constants.dart';
34 import 'constants/values.dart'; 34 import 'constants/values.dart';
35 import 'core_types.dart' show 35 import 'core_types.dart' show
36 CoreTypes; 36 CoreTypes;
37 import 'cps_ir/cps_ir_builder_task.dart' show
38 IrBuilderTask;
39 import 'dart_backend/dart_backend.dart' as dart_backend; 37 import 'dart_backend/dart_backend.dart' as dart_backend;
40 import 'dart_types.dart' show 38 import 'dart_types.dart' show
41 DartType, 39 DartType,
42 DynamicType, 40 DynamicType,
43 InterfaceType, 41 InterfaceType,
44 Types; 42 Types;
45 import 'deferred_load.dart' show DeferredLoadTask, OutputUnit; 43 import 'deferred_load.dart' show DeferredLoadTask, OutputUnit;
46 import 'diagnostics/code_location.dart'; 44 import 'diagnostics/code_location.dart';
47 import 'diagnostics/diagnostic_listener.dart'; 45 import 'diagnostics/diagnostic_listener.dart';
48 import 'diagnostics/invariant.dart' show 46 import 'diagnostics/invariant.dart' show
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 List<CompilerTask> tasks; 419 List<CompilerTask> tasks;
422 ScannerTask scanner; 420 ScannerTask scanner;
423 DietParserTask dietParser; 421 DietParserTask dietParser;
424 ParserTask parser; 422 ParserTask parser;
425 PatchParserTask patchParser; 423 PatchParserTask patchParser;
426 LibraryLoaderTask libraryLoader; 424 LibraryLoaderTask libraryLoader;
427 SerializationTask serialization; 425 SerializationTask serialization;
428 ResolverTask resolver; 426 ResolverTask resolver;
429 closureMapping.ClosureTask closureToClassMapper; 427 closureMapping.ClosureTask closureToClassMapper;
430 TypeCheckerTask checker; 428 TypeCheckerTask checker;
431 IrBuilderTask irBuilder;
432 ti.TypesTask typesTask; 429 ti.TypesTask typesTask;
433 Backend backend; 430 Backend backend;
434 431
435 GenericTask reuseLibraryTask; 432 GenericTask reuseLibraryTask;
436 433
437 /// The constant environment for the frontend interpretation of compile-time 434 /// The constant environment for the frontend interpretation of compile-time
438 /// constants. 435 /// constants.
439 ConstantEnvironment constants; 436 ConstantEnvironment constants;
440 437
441 EnqueueTask enqueuer; 438 EnqueueTask enqueuer;
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 tasks = [ 574 tasks = [
578 libraryLoader = new LibraryLoaderTask(this), 575 libraryLoader = new LibraryLoaderTask(this),
579 serialization = new SerializationTask(this), 576 serialization = new SerializationTask(this),
580 scanner = new ScannerTask(this), 577 scanner = new ScannerTask(this),
581 dietParser = new DietParserTask(this), 578 dietParser = new DietParserTask(this),
582 parser = new ParserTask(this), 579 parser = new ParserTask(this),
583 patchParser = new PatchParserTask(this), 580 patchParser = new PatchParserTask(this),
584 resolver = new ResolverTask(this, backend.constantCompilerTask), 581 resolver = new ResolverTask(this, backend.constantCompilerTask),
585 closureToClassMapper = new closureMapping.ClosureTask(this), 582 closureToClassMapper = new closureMapping.ClosureTask(this),
586 checker = new TypeCheckerTask(this), 583 checker = new TypeCheckerTask(this),
587 irBuilder = new IrBuilderTask(this, backend.sourceInformationStrategy),
588 typesTask = new ti.TypesTask(this), 584 typesTask = new ti.TypesTask(this),
589 constants = backend.constantCompilerTask, 585 constants = backend.constantCompilerTask,
590 deferredLoadTask = new DeferredLoadTask(this), 586 deferredLoadTask = new DeferredLoadTask(this),
591 mirrorUsageAnalyzerTask = new MirrorUsageAnalyzerTask(this), 587 mirrorUsageAnalyzerTask = new MirrorUsageAnalyzerTask(this),
592 enqueuer = new EnqueueTask(this), 588 enqueuer = new EnqueueTask(this),
593 dumpInfoTask = new DumpInfoTask(this), 589 dumpInfoTask = new DumpInfoTask(this),
594 reuseLibraryTask = new GenericTask('Reuse library', this), 590 reuseLibraryTask = new GenericTask('Reuse library', this),
595 ]; 591 ];
596 592
597 tasks.addAll(backend.tasks); 593 tasks.addAll(backend.tasks);
(...skipping 1234 matching lines...) Expand 10 before | Expand all | Expand 10 after
1832 1828
1833 @override 1829 @override
1834 InterfaceType streamType([DartType elementType]) { 1830 InterfaceType streamType([DartType elementType]) {
1835 InterfaceType type = streamClass.computeType(compiler); 1831 InterfaceType type = streamClass.computeType(compiler);
1836 if (elementType == null) { 1832 if (elementType == null) {
1837 return streamClass.rawType; 1833 return streamClass.rawType;
1838 } 1834 }
1839 return type.createInstantiation([elementType]); 1835 return type.createInstantiation([elementType]);
1840 } 1836 }
1841 } 1837 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/common/tasks.dart ('k') | pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698