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

Side by Side Diff: pkg/dart2js_incremental/lib/library_updater.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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library dart2js_incremental.library_updater; 5 library dart2js_incremental.library_updater;
6 6
7 import 'dart:async' show 7 import 'dart:async' show
8 Future; 8 Future;
9 9
10 import 'package:compiler/compiler.dart' as api; 10 import 'package:compiler/compiler.dart' as api;
(...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 enqueuer.resolution.addToWorkList(element); 789 enqueuer.resolution.addToWorkList(element);
790 } else { 790 } else {
791 NO_WARN(element).ensureResolved(compiler); 791 NO_WARN(element).ensureResolved(compiler);
792 } 792 }
793 } 793 }
794 compiler.processQueue(enqueuer.resolution, null); 794 compiler.processQueue(enqueuer.resolution, null);
795 795
796 compiler.phase = Compiler.PHASE_DONE_RESOLVING; 796 compiler.phase = Compiler.PHASE_DONE_RESOLVING;
797 797
798 // TODO(ahe): Clean this up. Don't call this method in analyze-only mode. 798 // TODO(ahe): Clean this up. Don't call this method in analyze-only mode.
799 if (compiler.analyzeOnly) return "/* analyze only */"; 799 if (compiler.options.analyzeOnly) return "/* analyze only */";
800 800
801 Set<ClassElementX> changedClasses = 801 Set<ClassElementX> changedClasses =
802 new Set<ClassElementX>.from(_classesWithSchemaChanges); 802 new Set<ClassElementX>.from(_classesWithSchemaChanges);
803 for (Element element in updatedElements) { 803 for (Element element in updatedElements) {
804 if (!element.isClass) { 804 if (!element.isClass) {
805 enqueuer.codegen.addToWorkList(element); 805 enqueuer.codegen.addToWorkList(element);
806 } else { 806 } else {
807 changedClasses.add(element); 807 changedClasses.add(element);
808 } 808 }
809 } 809 }
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after
1512 .buildFieldsHackForIncrementalCompilation(classElement); 1512 .buildFieldsHackForIncrementalCompilation(classElement);
1513 // TODO(ahe): Rewrite for new emitter. 1513 // TODO(ahe): Rewrite for new emitter.
1514 ClassBuilder builder = new ClassBuilder(classElement, namer); 1514 ClassBuilder builder = new ClassBuilder(classElement, namer);
1515 classEmitter.emitFields(cls, builder); 1515 classEmitter.emitFields(cls, builder);
1516 return builder.fields; 1516 return builder.fields;
1517 } 1517 }
1518 } 1518 }
1519 1519
1520 // TODO(ahe): Remove this method. 1520 // TODO(ahe): Remove this method.
1521 NO_WARN(x) => x; 1521 NO_WARN(x) => x;
OLDNEW
« no previous file with comments | « pkg/dart2js_incremental/lib/dart2js_incremental.dart ('k') | tests/compiler/dart2js/analyze_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698