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

Unified Diff: tests/compiler/dart2js/sourcemaps/sourcemap_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/sourcemaps/sourcemap_helper.dart
diff --git a/tests/compiler/dart2js/sourcemaps/sourcemap_helper.dart b/tests/compiler/dart2js/sourcemaps/sourcemap_helper.dart
index cb78cd4cebfa6a37c7ba3ab51d0a2b21c60d446a..de1cff4b1cfe1de1e10416ef10043fec1cda7426 100644
--- a/tests/compiler/dart2js/sourcemaps/sourcemap_helper.dart
+++ b/tests/compiler/dart2js/sourcemaps/sourcemap_helper.dart
@@ -315,15 +315,17 @@ class SourceMapProcessor {
if (options.contains(Flags.useNewSourceInfo)) {
if (verbose) print('Using the new source information system.');
}
+ bool disableInlining = false;
+ if (options.contains(DISABLE_INLINING)) {
+ if (verbose) print('Inlining disabled');
+ disableInlining = true;
+ }
api.CompilerImpl compiler = await compilerFor(
outputProvider: outputProvider,
+ disableInlining: disableInlining,
// TODO(johnniwinther): Use [verbose] to avoid showing diagnostics.
options: ['--out=$targetUri', '--source-map=$sourceMapFileUri']
..addAll(options));
- if (options.contains(DISABLE_INLINING)) {
- if (verbose) print('Inlining disabled');
- compiler.disableInlining = true;
- }
JavaScriptBackend backend = compiler.backend;
var handler = compiler.handler;

Powered by Google App Engine
This is Rietveld 408576698