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

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
« no previous file with comments | « tests/compiler/dart2js/codegen_helper.dart ('k') | tests/compiler/dart2js/exit_code_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..e365f3b82c048ffa093183f03768b756ad3dfad2 100644
--- a/tests/compiler/dart2js/compiler_helper.dart
+++ b/tests/compiler/dart2js/compiler_helper.dart
@@ -112,6 +112,10 @@ Future<String> compile(String code,
options.add(Flags.trustJSInteropTypeAnnotations);
}
+ if (disableInlining) {
+ options.add(Flags.disableInlining);
+ }
+
Map<String, String> source;
if (entry != 'main') {
source = {'main.dart': "$code\n\nmain() => $entry;" };
@@ -122,12 +126,7 @@ Future<String> compile(String code,
CompilationResult result = await runCompiler(
memorySourceFiles: source,
options: options,
- outputProvider: outputCollector,
- beforeRun: (compiler) {
- if (disableInlining) {
- compiler.disableInlining = true;
- }
- });
+ outputProvider: outputCollector);
Expect.isTrue(result.isSuccess);
Compiler compiler = result.compiler;
lego.Element element = compiler.mainApp.find(entry);
« no previous file with comments | « tests/compiler/dart2js/codegen_helper.dart ('k') | tests/compiler/dart2js/exit_code_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698