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

Unified Diff: tests/compiler/dart2js/kernel/compiler_helper.dart

Issue 2929643002: Introduce JsStrategy skeleton (Closed)
Patch Set: Updated cf. comments Created 3 years, 6 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 | « tests/compiler/dart2js/js_model/model_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/kernel/compiler_helper.dart
diff --git a/tests/compiler/dart2js/kernel/compiler_helper.dart b/tests/compiler/dart2js/kernel/compiler_helper.dart
index 3e046e21091131ef760218717692a22423c462f0..e69a5fd2d00a73bd61bf34e716c9d3513c8c0615 100644
--- a/tests/compiler/dart2js/kernel/compiler_helper.dart
+++ b/tests/compiler/dart2js/kernel/compiler_helper.dart
@@ -141,7 +141,9 @@ class MemoryDillLibraryLoaderTask extends DillLibraryLoaderTask {
Future<Compiler> compileWithDill(
Uri entryPoint, Map<String, String> memorySourceFiles, List<String> options,
- {bool printSteps: false, CompilerOutput compilerOutput}) async {
+ {bool printSteps: false,
+ CompilerOutput compilerOutput,
+ void beforeRun(Compiler compiler)}) async {
if (memorySourceFiles.isNotEmpty) {
Directory dir = await Directory.systemTemp.createTemp('dart2js-with-dill');
if (printSteps) {
@@ -174,6 +176,9 @@ Future<Compiler> compileWithDill(
outputProvider: compilerOutput);
ElementResolutionWorldBuilder.useInstantiationMap = true;
compiler.resolution.retainCachesForTesting = true;
+ if (beforeRun != null) {
+ beforeRun(compiler);
+ }
await compiler.run(dillFile);
return compiler;
}
« no previous file with comments | « tests/compiler/dart2js/js_model/model_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698