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

Unified Diff: pkg/compiler/lib/src/js_emitter/class_stub_generator.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/class_stub_generator.dart
diff --git a/pkg/compiler/lib/src/js_emitter/class_stub_generator.dart b/pkg/compiler/lib/src/js_emitter/class_stub_generator.dart
index 87f9d41570f567f28da5d87ebef28bd4fff69c1e..c727d56e4923f8f297660d8f8c6a5f92befd881e 100644
--- a/pkg/compiler/lib/src/js_emitter/class_stub_generator.dart
+++ b/pkg/compiler/lib/src/js_emitter/class_stub_generator.dart
@@ -169,7 +169,7 @@ class ClassStubGenerator {
backend.emitter.staticFunctionAccess(
backend.helpers.createInvocationMirror),
'methodName':
- js.quoteName(compiler.enableMinification
+ js.quoteName(compiler.options.enableMinification
? internalName : methodName),
'internalName': js.quoteName(internalName),
'type': js.number(type),
@@ -227,7 +227,7 @@ List<jsAst.Statement> buildTearOffCode(JavaScriptBackend backend) {
}
jsAst.Statement tearOffGetter;
- if (!compiler.useContentSecurityPolicy) {
+ if (!compiler.options.useContentSecurityPolicy) {
jsAst.Expression tearOffAccessText =
new jsAst.UnparsedNode(tearOffAccessExpression, compiler, false);
tearOffGetter = js.statement('''
« no previous file with comments | « pkg/compiler/lib/src/js_backend/runtime_types.dart ('k') | pkg/compiler/lib/src/js_emitter/full_emitter/class_emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698