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

Unified Diff: pkg/compiler/lib/src/js_emitter/program_builder/program_builder.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/program_builder/program_builder.dart
diff --git a/pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart b/pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart
index 42f7138c0fc414b7964ba0fe9a9c27ecd077f790..7aef3a3cb2d2453b75a82d80ab0b89abe6d12db4 100644
--- a/pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart
+++ b/pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart
@@ -416,7 +416,7 @@ class ProgramBuilder {
FunctionElement fn = member;
functionType = fn.type;
} else if (member.isGetter) {
- if (_compiler.trustTypeAnnotations) {
+ if (_compiler.options.trustTypeAnnotations) {
GetterElement getter = member;
DartType returnType = getter.type.returnType;
if (returnType.isFunctionType) {
@@ -522,7 +522,7 @@ class ProgramBuilder {
///
/// Returns a class that contains the fields of a class.
Class buildFieldsHackForIncrementalCompilation(ClassElement element) {
- assert(_compiler.hasIncrementalSupport);
+ assert(_compiler.options.hasIncrementalSupport);
List<Field> instanceFields = _buildFields(element, false);
js.Name name = namer.className(element);
@@ -694,7 +694,7 @@ class ProgramBuilder {
return backend.isAccessibleByReflection(method) ||
// During incremental compilation, we have to assume that reflection
// *might* get enabled.
- _compiler.hasIncrementalSupport;
+ _compiler.options.hasIncrementalSupport;
}
bool _methodCanBeApplied(FunctionElement method) {
@@ -704,7 +704,7 @@ class ProgramBuilder {
// TODO(herhut): Refactor incremental compilation and remove method.
Method buildMethodHackForIncrementalCompilation(FunctionElement element) {
- assert(_compiler.hasIncrementalSupport);
+ assert(_compiler.options.hasIncrementalSupport);
if (element.isInstanceMember) {
return _buildMethod(element);
} else {

Powered by Google App Engine
This is Rietveld 408576698