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

Unified Diff: pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart

Issue 2693163002: Split backend implementation of EnqueuerListener (Closed)
Patch Set: Updated cf. comments Created 3 years, 10 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/full_emitter/emitter.dart
diff --git a/pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart b/pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart
index 16e454a4c0f996d5f45564687519df7dc18f29ec..7b77410057bc3e27cb3dde20a62f230236f9836b 100644
--- a/pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart
+++ b/pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart
@@ -1032,7 +1032,8 @@ class Emitter implements js_emitter.Emitter {
jsAst.Expression generateLibraryDescriptor(
LibraryElement library, Fragment fragment) {
var uri = "";
- if (!compiler.options.enableMinification || backend.mustPreserveUris) {
+ if (!compiler.options.enableMinification ||
+ backend.mirrorsData.mustPreserveUris) {
uri = library.canonicalUri;
if (uri.scheme == 'file' && compiler.options.outputUri != null) {
uri =
@@ -1086,7 +1087,7 @@ class Emitter implements js_emitter.Emitter {
.add(new jsAst.FunctionDeclaration(constructorName, constructorAst));
String fieldNamesProperty = FIELD_NAMES_PROPERTY_NAME;
- bool hasIsolateSupport = backend.hasIsolateSupport;
+ bool hasIsolateSupport = backend.backendUsage.isIsolateInUse;
jsAst.Node fieldNamesArray;
if (hasIsolateSupport) {
fieldNamesArray =
@@ -1632,7 +1633,7 @@ class Emitter implements js_emitter.Emitter {
});
emitMainOutputUnit(program.mainFragment.outputUnit, mainOutput);
- if (backend.requiresPreamble && !backend.htmlLibraryIsLoaded) {
+ if (backend.backendUsage.requiresPreamble && !backend.htmlLibraryIsLoaded) {
reporter.reportHintMessage(NO_LOCATION_SPANNABLE, MessageKind.PREAMBLE);
}
// Return the total program size.

Powered by Google App Engine
This is Rietveld 408576698