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

Unified Diff: pkg/compiler/lib/src/enqueue.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/dump_info.dart ('k') | pkg/compiler/lib/src/inferrer/inferrer_visitor.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/enqueue.dart
diff --git a/pkg/compiler/lib/src/enqueue.dart b/pkg/compiler/lib/src/enqueue.dart
index 2c7403fec3c6e07ad35a98cdacc217928be81a8e..35da413b3054a9f86866b7982ec1594a585a57b4 100644
--- a/pkg/compiler/lib/src/enqueue.dart
+++ b/pkg/compiler/lib/src/enqueue.dart
@@ -76,7 +76,7 @@ class EnqueueTask extends CompilerTask {
EnqueueTask(Compiler compiler)
: resolution = new ResolutionEnqueuer(
compiler, compiler.backend.createItemCompilationContext,
- compiler.analyzeOnly && compiler.analyzeMain
+ compiler.options.analyzeOnly && compiler.options.analyzeMain
? const EnqueuerStrategy() : const TreeShakingEnqueuerStrategy()),
codegen = new CodegenEnqueuer(
compiler, compiler.backend.createItemCompilationContext,
@@ -157,7 +157,7 @@ abstract class Enqueuer {
*/
void addToWorkList(Element element) {
assert(invariant(element, element.isDeclaration));
- if (internalAddToWorkList(element) && compiler.dumpInfo) {
+ if (internalAddToWorkList(element) && compiler.options.dumpInfo) {
// TODO(sigmund): add other missing dependencies (internals, selectors
// enqueued after allocations), also enable only for the codegen enqueuer.
compiler.dumpInfoTask.registerDependency(
@@ -663,7 +663,7 @@ abstract class Enqueuer {
_registerIsCheck(type);
break;
case TypeUseKind.CHECKED_MODE_CHECK:
- if (compiler.enableTypeAssertions) {
+ if (compiler.options.enableTypeAssertions) {
_registerIsCheck(type);
}
break;
@@ -942,13 +942,13 @@ class CodegenEnqueuer extends Enqueuer {
// Codegen inlines field initializers. It only needs to generate
// code for checked setters.
if (element.isField && element.isInstanceMember) {
- if (!compiler.enableTypeAssertions
+ if (!compiler.options.enableTypeAssertions
|| element.enclosingElement.isClosure) {
return false;
}
}
- if (compiler.hasIncrementalSupport && !isProcessed(element)) {
+ if (compiler.options.hasIncrementalSupport && !isProcessed(element)) {
newlyEnqueuedElements.add(element);
}
@@ -986,7 +986,7 @@ class CodegenEnqueuer extends Enqueuer {
}
void handleUnseenSelector(DynamicUse dynamicUse) {
- if (compiler.hasIncrementalSupport) {
+ if (compiler.options.hasIncrementalSupport) {
newlySeenSelectors.add(dynamicUse);
}
super.handleUnseenSelector(dynamicUse);
« no previous file with comments | « pkg/compiler/lib/src/dump_info.dart ('k') | pkg/compiler/lib/src/inferrer/inferrer_visitor.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698