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

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

Issue 2983013002: Implement optimized mixin application in dart2js (Closed)
Patch Set: Updated cf. comment 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: 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 11d9b5d54e2aa31c50d0abaebf9410c4a9ce20f2..cc2219aab6751f6e79dec797dbeb13e5f0129559 100644
--- a/tests/compiler/dart2js/kernel/compiler_helper.dart
+++ b/tests/compiler/dart2js/kernel/compiler_helper.dart
@@ -152,6 +152,13 @@ Future createTemp(Uri entryPoint, Map<String, String> memorySourceFiles,
});
entryPoint = dir.uri.resolve(entryPoint.path);
}
+ return entryPoint;
+}
+
+Future generateDill(Uri entryPoint, Map<String, String> memorySourceFiles,
+ {bool printSteps: false}) async {
+ entryPoint =
+ await createTemp(entryPoint, memorySourceFiles, printSteps: printSteps);
if (printSteps) {
print('---- generate dill -----------------------------------------------');
}
@@ -174,7 +181,7 @@ Future<Compiler> compileWithDill(
CompilerOutput compilerOutput,
void beforeRun(Compiler compiler)}) async {
Uri dillFile =
- await createTemp(entryPoint, memorySourceFiles, printSteps: printSteps);
+ await generateDill(entryPoint, memorySourceFiles, printSteps: printSteps);
if (printSteps) {
print('---- compile from dill $dillFile ---------------------------------');
« no previous file with comments | « tests/compiler/dart2js/kernel/compile_from_dill_test_helper.dart ('k') | tests/compiler/dart2js/kernel/mixin_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698