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

Unified Diff: pkg/compiler/lib/src/js_backend/codegen_listener.dart

Issue 2813093002: Remove BackendClasses and JavaScriptBackendClasses. (Closed)
Patch Set: . Created 3 years, 8 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_backend/codegen_listener.dart
diff --git a/pkg/compiler/lib/src/js_backend/codegen_listener.dart b/pkg/compiler/lib/src/js_backend/codegen_listener.dart
index b4c8523d749ec8de0908a86740caca79fea748a7..ccac339f4bf6cdc4b01e8a86c3f1d1aaf73c4da0 100644
--- a/pkg/compiler/lib/src/js_backend/codegen_listener.dart
+++ b/pkg/compiler/lib/src/js_backend/codegen_listener.dart
@@ -4,7 +4,6 @@
library js_backend.backend.codegen_listener;
-import '../common/backend_api.dart';
import '../common/names.dart' show Identifiers;
import '../common_elements.dart' show CommonElements, ElementEnvironment;
import '../constants/values.dart';
@@ -29,7 +28,6 @@ class CodegenEnqueuerListener extends EnqueuerListener {
final ElementEnvironment _elementEnvironment;
final CommonElements _commonElements;
final BackendImpacts _impacts;
- final BackendClasses _backendClasses;
final BackendUsage _backendUsage;
final RuntimeTypesNeed _rtiNeed;
@@ -47,7 +45,6 @@ class CodegenEnqueuerListener extends EnqueuerListener {
this._elementEnvironment,
this._commonElements,
this._impacts,
- this._backendClasses,
this._backendUsage,
this._rtiNeed,
this._customElementsAnalysis,
@@ -197,7 +194,7 @@ class CodegenEnqueuerListener extends EnqueuerListener {
_computeImpactForInstantiatedConstantType(cls.thisType, impactBuilder);
} else if (constant.isType) {
impactBuilder
- .registerTypeUse(new TypeUse.instantiation(_backendClasses.typeType));
+ .registerTypeUse(new TypeUse.instantiation(_commonElements.typeType));
// If the type is a web component, we need to ensure the constructors are
// available to 'upgrade' the native object.
TypeConstantValue type = constant;
@@ -220,7 +217,7 @@ class CodegenEnqueuerListener extends EnqueuerListener {
_commonElements.setRuntimeTypeInfo,
null));
}
- if (type.element == _backendClasses.typeClass) {
+ if (type.element == _commonElements.typeLiteralClass) {
// If we use a type literal in a constant, the compile time
// constant emitter will generate a call to the createRuntimeType
// helper so we register a use of that.
« no previous file with comments | « pkg/compiler/lib/src/js_backend/backend.dart ('k') | pkg/compiler/lib/src/js_backend/constant_system_javascript.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698