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

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

Issue 1803303002: Move all flags to CompilerOptions (first step to stop passing the compiler to (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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/compiler_helper.dart
diff --git a/tests/compiler/dart2js/compiler_helper.dart b/tests/compiler/dart2js/compiler_helper.dart
index bef0984b9151e8c905884965d6fc7c9105d94766..34a1f4e759304c15390a8289a4e07880b1ce6f80 100644
--- a/tests/compiler/dart2js/compiler_helper.dart
+++ b/tests/compiler/dart2js/compiler_helper.dart
@@ -122,12 +122,8 @@ Future<String> compile(String code,
CompilationResult result = await runCompiler(
memorySourceFiles: source,
options: options,
- outputProvider: outputCollector,
- beforeRun: (compiler) {
- if (disableInlining) {
- compiler.disableInlining = true;
- }
- });
+ disableInlining: disableInlining,
+ outputProvider: outputCollector);
Expect.isTrue(result.isSuccess);
Compiler compiler = result.compiler;
lego.Element element = compiler.mainApp.find(entry);

Powered by Google App Engine
This is Rietveld 408576698