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

Unified Diff: pkg/compiler/lib/src/kernel/kernel_strategy.dart

Issue 2989453002: Add support for compiling Dart via the FE in dart2js. (Closed)
Patch Set: update status Created 3 years, 5 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
Index: pkg/compiler/lib/src/kernel/kernel_strategy.dart
diff --git a/pkg/compiler/lib/src/kernel/kernel_strategy.dart b/pkg/compiler/lib/src/kernel/kernel_strategy.dart
index 8da58e69da079cc824cfa5316d1fea5eaf80fd89..b1258ea2dcbd65715878ea608e0812b121541638 100644
--- a/pkg/compiler/lib/src/kernel/kernel_strategy.dart
+++ b/pkg/compiler/lib/src/kernel/kernel_strategy.dart
@@ -4,6 +4,7 @@
library dart2js.kernel.frontend_strategy;
+import '../../compiler_new.dart' as api;
import '../common.dart';
import '../common_elements.dart';
import '../common/backend_api.dart';
@@ -54,6 +55,7 @@ class KernelFrontEndStrategy extends FrontendStrategyBase {
LibraryLoaderTask createLibraryLoader(
ResolvedUriTranslator uriTranslator,
ScriptLoader scriptLoader,
+ api.CompilerInput compilerInput,
ElementScanner scriptScanner,
LibraryDeserializer deserializer,
PatchResolverFunction patchResolverFunc,
@@ -61,8 +63,8 @@ class KernelFrontEndStrategy extends FrontendStrategyBase {
env.Environment environment,
DiagnosticReporter reporter,
Measurer measurer) {
- return new DillLibraryLoaderTask(
- _elementMap, uriTranslator, scriptLoader, reporter, measurer);
+ return new KernelLibraryLoaderTask(
+ _elementMap, compilerInput, reporter, measurer);
}
@override

Powered by Google App Engine
This is Rietveld 408576698