| Index: tests/compiler/dart2js/memory_compiler.dart
|
| diff --git a/tests/compiler/dart2js/memory_compiler.dart b/tests/compiler/dart2js/memory_compiler.dart
|
| index 3712603dbc70da3142ad4e9f22c091e098a30ed8..7b74d1dac42914d4052be0a95b6bc750798eca67 100644
|
| --- a/tests/compiler/dart2js/memory_compiler.dart
|
| +++ b/tests/compiler/dart2js/memory_compiler.dart
|
| @@ -11,6 +11,7 @@ import 'package:compiler/compiler.dart' show
|
| import 'package:compiler/compiler_new.dart' show
|
| CompilationResult,
|
| CompilerDiagnostics,
|
| + CompilerOptions,
|
| CompilerOutput,
|
| Diagnostic,
|
| PackagesDiscoveryProvider;
|
| @@ -82,6 +83,7 @@ Future<CompilationResult> runCompiler(
|
| entryPoint = Uri.parse('memory:main.dart');
|
| }
|
| CompilerImpl compiler = compilerFor(
|
| + entryPoint: entryPoint,
|
| memorySourceFiles: memorySourceFiles,
|
| diagnosticHandler: diagnosticHandler,
|
| outputProvider: outputProvider,
|
| @@ -100,7 +102,8 @@ Future<CompilationResult> runCompiler(
|
| }
|
|
|
| CompilerImpl compilerFor(
|
| - {Map<String, String> memorySourceFiles: const <String, String>{},
|
| + {Uri entryPoint,
|
| + Map<String, String> memorySourceFiles: const <String, String>{},
|
| CompilerDiagnostics diagnosticHandler,
|
| CompilerOutput outputProvider,
|
| List<String> options: const <String>[],
|
| @@ -141,12 +144,14 @@ CompilerImpl compilerFor(
|
| provider,
|
| outputProvider,
|
| diagnosticHandler,
|
| - libraryRoot,
|
| - packageRoot,
|
| - options,
|
| - {},
|
| - packageConfig,
|
| - packagesDiscoveryProvider);
|
| + new CompilerOptions.parse(
|
| + entryPoint: entryPoint,
|
| + libraryRoot: libraryRoot,
|
| + packageRoot: packageRoot,
|
| + options: options,
|
| + environment: {},
|
| + packageConfig: packageConfig,
|
| + packagesDiscoveryProvider: packagesDiscoveryProvider));
|
|
|
| if (cachedCompiler != null) {
|
| compiler.coreLibrary =
|
| @@ -211,7 +216,6 @@ CompilerImpl compilerFor(
|
| cachedCompiler.deferredLoadTask = null;
|
| cachedCompiler.mirrorUsageAnalyzerTask = null;
|
| cachedCompiler.dumpInfoTask = null;
|
| - cachedCompiler.buildId = null;
|
| }
|
| return compiler;
|
| }
|
|
|