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

Unified Diff: pkg/compiler/lib/src/js_emitter/metadata_collector.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: pkg/compiler/lib/src/js_emitter/metadata_collector.dart
diff --git a/pkg/compiler/lib/src/js_emitter/metadata_collector.dart b/pkg/compiler/lib/src/js_emitter/metadata_collector.dart
index fdea7ff9b0872066437aea7c0cd3d859516f98e1..b51c470e6f7e61f113debe05117e6dc6e7992bd2 100644
--- a/pkg/compiler/lib/src/js_emitter/metadata_collector.dart
+++ b/pkg/compiler/lib/src/js_emitter/metadata_collector.dart
@@ -297,7 +297,7 @@ class MetadataCollector implements jsAst.TokenFinalizer {
node, _compiler, renamerForNames: nameToKey);
return _globalMetadataMap.putIfAbsent(printed, () {
_BoundMetadataEntry result = new _BoundMetadataEntry(node);
- if (_compiler.hasIncrementalSupport) {
+ if (_compiler.options.hasIncrementalSupport) {
result.finalize(_globalMetadataCounter++);
}
return result;
@@ -337,7 +337,7 @@ class MetadataCollector implements jsAst.TokenFinalizer {
_BoundMetadataEntry result = new _BoundMetadataEntry(
_computeTypeRepresentation(type,
ignoreTypeVariables: ignoreTypeVariables));
- if (_compiler.hasIncrementalSupport) {
+ if (_compiler.options.hasIncrementalSupport) {
result.finalize(_globalTypesCounter++);
}
return result;
@@ -376,7 +376,7 @@ class MetadataCollector implements jsAst.TokenFinalizer {
jsAst.ArrayInitializer finalizeMap(Map<dynamic, _BoundMetadataEntry> map) {
// When in incremental mode, we allocate entries eagerly.
- if (_compiler.hasIncrementalSupport) {
+ if (_compiler.options.hasIncrementalSupport) {
return new jsAst.ArrayInitializer(map.values.toList());
}

Powered by Google App Engine
This is Rietveld 408576698