| OLD | NEW |
| 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 Future; | 7 import 'dart:async' show Future; |
| 8 | 8 |
| 9 import '../compiler_new.dart' as api; | 9 import '../compiler_new.dart' as api; |
| 10 import 'backend_strategy.dart'; | 10 import 'backend_strategy.dart'; |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 : this.options = options, | 182 : this.options = options, |
| 183 this.userOutputProvider = outputProvider == null | 183 this.userOutputProvider = outputProvider == null |
| 184 ? const NullCompilerOutput() | 184 ? const NullCompilerOutput() |
| 185 : outputProvider { | 185 : outputProvider { |
| 186 if (makeReporter != null) { | 186 if (makeReporter != null) { |
| 187 _reporter = makeReporter(this, options); | 187 _reporter = makeReporter(this, options); |
| 188 } else { | 188 } else { |
| 189 _reporter = new CompilerDiagnosticReporter(this, options); | 189 _reporter = new CompilerDiagnosticReporter(this, options); |
| 190 } | 190 } |
| 191 frontendStrategy = options.loadFromDill | 191 frontendStrategy = options.loadFromDill |
| 192 ? new KernelFrontEndStrategy(reporter, environment) | 192 ? new KernelFrontEndStrategy(options, reporter, environment) |
| 193 : new ResolutionFrontEndStrategy(this); | 193 : new ResolutionFrontEndStrategy(this); |
| 194 backendStrategy = options.loadFromDill | 194 backendStrategy = options.loadFromDill |
| 195 ? new KernelBackendStrategy(this) | 195 ? new KernelBackendStrategy(this) |
| 196 : new ElementBackendStrategy(this); | 196 : new ElementBackendStrategy(this); |
| 197 _resolution = createResolution(); | 197 _resolution = createResolution(); |
| 198 | 198 |
| 199 if (options.verbose) { | 199 if (options.verbose) { |
| 200 progress = new Stopwatch()..start(); | 200 progress = new Stopwatch()..start(); |
| 201 } | 201 } |
| 202 | 202 |
| (...skipping 1391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1594 _ElementScanner(this.scanner); | 1594 _ElementScanner(this.scanner); |
| 1595 void scanLibrary(LibraryElement library) => scanner.scanLibrary(library); | 1595 void scanLibrary(LibraryElement library) => scanner.scanLibrary(library); |
| 1596 void scanUnit(CompilationUnitElement unit) => scanner.scan(unit); | 1596 void scanUnit(CompilationUnitElement unit) => scanner.scan(unit); |
| 1597 } | 1597 } |
| 1598 | 1598 |
| 1599 class _EmptyEnvironment implements Environment { | 1599 class _EmptyEnvironment implements Environment { |
| 1600 const _EmptyEnvironment(); | 1600 const _EmptyEnvironment(); |
| 1601 | 1601 |
| 1602 String valueOf(String key) => null; | 1602 String valueOf(String key) => null; |
| 1603 } | 1603 } |
| OLD | NEW |