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

Unified Diff: pkg/compiler/lib/src/apiimpl.dart

Issue 1317053003: Parameterize backend (Closed) Base URL: https://chromium.googlesource.com/external/github.com/dart-lang/sdk.git@_temporary_fletch_patches
Patch Set: Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/compiler/lib/src/compiler.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/apiimpl.dart
diff --git a/pkg/compiler/lib/src/apiimpl.dart b/pkg/compiler/lib/src/apiimpl.dart
index 123938dbe1a418ee036a1d0a44637ab6501f77c8..48cdbab72da5bea18cfd926640edc8a5f2904d38 100644
--- a/pkg/compiler/lib/src/apiimpl.dart
+++ b/pkg/compiler/lib/src/apiimpl.dart
@@ -48,7 +48,8 @@ class Compiler extends leg.Compiler {
List<String> options,
this.environment,
[this.packageConfig,
- this.packagesDiscoveryProvider])
+ this.packagesDiscoveryProvider,
+ leg.Backend makeBackend(Compiler compiler)])
: this.options = options,
this.allowedLibraryCategories = getAllowedLibraryCategories(options),
super(
@@ -105,7 +106,8 @@ class Compiler extends leg.Compiler {
hasOption(options, '--generate-code-with-compile-time-errors'),
testMode: hasOption(options, '--test-mode'),
allowNativeExtensions:
- hasOption(options, '--allow-native-extensions')) {
+ hasOption(options, '--allow-native-extensions'),
+ makeBackend: makeBackend) {
tasks.addAll([
userHandlerTask = new leg.GenericTask('Diagnostic handler', this),
userProviderTask = new leg.GenericTask('Input provider', this),
« no previous file with comments | « no previous file | pkg/compiler/lib/src/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698