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

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

Issue 3007443002: Use memory source files in compile_from_dill* (Closed)
Patch Set: Created 3 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
Index: pkg/compiler/lib/src/library_loader.dart
diff --git a/pkg/compiler/lib/src/library_loader.dart b/pkg/compiler/lib/src/library_loader.dart
index 38c768c3eaca0df8b027fd52678124d26709c84d..359454537ac40e0ebb2ec2f54beeefa70892bb4e 100644
--- a/pkg/compiler/lib/src/library_loader.dart
+++ b/pkg/compiler/lib/src/library_loader.dart
@@ -824,6 +824,7 @@ class ResolutionLibraryLoaderTask extends CompilerTask
class KernelLibraryLoaderTask extends CompilerTask
implements LibraryLoaderTask {
final Uri sdkRoot;
+ final Uri _packageConfig;
final DiagnosticReporter reporter;
@@ -835,8 +836,8 @@ class KernelLibraryLoaderTask extends CompilerTask
List<LibraryEntity> _allLoadedLibraries;
- KernelLibraryLoaderTask(this.sdkRoot, this._elementMap, this.compilerInput,
- this.reporter, Measurer measurer)
+ KernelLibraryLoaderTask(this.sdkRoot, this._packageConfig, this._elementMap,
+ this.compilerInput, this.reporter, Measurer measurer)
: _allLoadedLibraries = new List<LibraryEntity>(),
super(measurer);
@@ -861,6 +862,7 @@ class KernelLibraryLoaderTask extends CompilerTask
..linkedDependencies = [
sdkRoot.resolve('_internal/dart2js_platform.dill')
]
+ ..packagesFileUri = _packageConfig
..onError = (e) => reportFrontEndMessage(reporter, e);
program = await fe.kernelForProgram(resolvedUri, options);

Powered by Google App Engine
This is Rietveld 408576698