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

Unified Diff: pkg/front_end/lib/src/fasta/testing/suite.dart

Issue 2691273002: Use kernel transformation and VmTarget. (Closed)
Patch Set: Created 3 years, 10 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/front_end/lib/src/fasta/testing/suite.dart
diff --git a/pkg/front_end/lib/src/fasta/testing/suite.dart b/pkg/front_end/lib/src/fasta/testing/suite.dart
index c651cb85577180b897cecb4fb2907dd6b401ea5f..022b75169acba3ef3da0477d873a2668bdcea07c 100644
--- a/pkg/front_end/lib/src/fasta/testing/suite.dart
+++ b/pkg/front_end/lib/src/fasta/testing/suite.dart
@@ -126,16 +126,17 @@ class FeContext extends TestContext {
"vm", new TargetFlags(strongMode: options.strongMode));
Program program = loader.loadProgram(
Uri.base.resolve("pkg/fasta/test/platform.dart"), target: target);
- target.performModularTransformations(program);
- target.performGlobalTransformations(program);
if (loader.errors.isNotEmpty) {
throw loader.errors.join("\n");
}
Library mainLibrary = program.mainMethod.enclosingLibrary;
program.uriToSource.remove(mainLibrary.fileUri);
- return new Program(
+ program = new Program(
program.libraries.where((Library l) => l != mainLibrary).toList(),
program.uriToSource);
+ target.performModularTransformations(program);
+ target.performGlobalTransformations(program);
+ return program;
});
}
« no previous file with comments | « pkg/front_end/lib/src/fasta/target_implementation.dart ('k') | pkg/kernel/lib/transformations/setup_builtin_library.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698