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

Unified Diff: pkg/compiler/lib/src/dump_info.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 | « pkg/compiler/lib/src/deferred_load.dart ('k') | pkg/compiler/lib/src/enqueue.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/dump_info.dart
diff --git a/pkg/compiler/lib/src/dump_info.dart b/pkg/compiler/lib/src/dump_info.dart
index d909a47306887159b2f16b1c0ff3b146e5a7592e..109cd3127f2775d2660407b63db3036a67eb76e9 100644
--- a/pkg/compiler/lib/src/dump_info.dart
+++ b/pkg/compiler/lib/src/dump_info.dart
@@ -431,7 +431,7 @@ class DumpInfoTask extends CompilerTask implements InfoReporter {
}
void registerImpact(Element element, WorldImpact impact) {
- if (compiler.dumpInfo) {
+ if (compiler.options.dumpInfo) {
impacts[element] = impact;
}
}
@@ -470,7 +470,7 @@ class DumpInfoTask extends CompilerTask implements InfoReporter {
// Returns true if we care about tracking the size of
// this node.
bool isTracking(jsAst.Node code) {
- if (compiler.dumpInfo) {
+ if (compiler.options.dumpInfo) {
return _tracking.contains(code);
} else {
return false;
@@ -480,7 +480,7 @@ class DumpInfoTask extends CompilerTask implements InfoReporter {
// Registers that a javascript AST node `code` was produced by the
// dart Element `element`.
void registerElementAst(Element element, jsAst.Node code) {
- if (compiler.dumpInfo) {
+ if (compiler.options.dumpInfo) {
_elementToNodes
.putIfAbsent(element, () => new List<jsAst.Node>())
.add(code);
@@ -489,7 +489,7 @@ class DumpInfoTask extends CompilerTask implements InfoReporter {
}
void registerConstantAst(ConstantValue constant, jsAst.Node code) {
- if (compiler.dumpInfo) {
+ if (compiler.options.dumpInfo) {
assert(_constantToNode[constant] == null ||
_constantToNode[constant] == code);
_constantToNode[constant] = code;
@@ -594,13 +594,14 @@ class DumpInfoTask extends CompilerTask implements InfoReporter {
result.program = new ProgramInfo(
entrypoint: infoCollector._elementToInfo[compiler.mainFunction],
size: _programSize,
- dart2jsVersion: compiler.hasBuildId ? compiler.buildId : null,
+ dart2jsVersion:
+ compiler.options.hasBuildId ? compiler.options.buildId : null,
compilationMoment: new DateTime.now(),
compilationDuration: compiler.totalCompileTime.elapsed,
toJsonDuration: stopwatch.elapsedMilliseconds,
dumpInfoDuration: this.timing,
noSuchMethodEnabled: compiler.backend.enabledNoSuchMethod,
- minified: compiler.enableMinification);
+ minified: compiler.options.enableMinification);
ChunkedConversionSink<Object> sink = encoder.startChunkedConversion(
new StringConversionSink.fromStringSink(buffer));
« no previous file with comments | « pkg/compiler/lib/src/deferred_load.dart ('k') | pkg/compiler/lib/src/enqueue.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698