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

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

Issue 2265473004: Introduce "CommonElements" (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: cl Created 4 years, 4 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/backend_impact.dart
diff --git a/pkg/compiler/lib/src/js_backend/backend_impact.dart b/pkg/compiler/lib/src/js_backend/backend_impact.dart
index bd6783fb24fc5c2116b6c3c94cb4ecee310ada96..9a9a0d1a429d4c6531ad465377e25b654f23735d 100644
--- a/pkg/compiler/lib/src/js_backend/backend_impact.dart
+++ b/pkg/compiler/lib/src/js_backend/backend_impact.dart
@@ -5,7 +5,7 @@
library dart2js.js_helpers.impact;
import '../compiler.dart' show Compiler;
-import '../core_types.dart' show CoreClasses;
+import '../core_types.dart' show CommonElements;
import '../dart_types.dart' show InterfaceType;
import '../elements/elements.dart' show ClassElement, Element;
import 'backend_helpers.dart';
@@ -36,7 +36,7 @@ class BackendImpacts {
BackendHelpers get helpers => backend.helpers;
- CoreClasses get coreClasses => compiler.coreClasses;
+ CommonElements get commonElements => compiler.commonElements;
BackendImpact _getRuntimeTypeArgument;
@@ -300,8 +300,8 @@ class BackendImpacts {
BackendImpact get constSymbol {
if (_constSymbol == null) {
_constSymbol = new BackendImpact(
- instantiatedClasses: [coreClasses.symbolClass],
- staticUses: [compiler.symbolConstructor.declaration]);
+ instantiatedClasses: [commonElements.symbolClass],
+ staticUses: [commonElements.symbolConstructor.declaration]);
}
return _constSymbol;
}
@@ -598,8 +598,8 @@ class BackendImpacts {
BackendImpact get closure {
if (_closure == null) {
- _closure =
- new BackendImpact(instantiatedClasses: [coreClasses.functionClass]);
+ _closure = new BackendImpact(
+ instantiatedClasses: [commonElements.functionClass]);
}
return _closure;
}
« no previous file with comments | « pkg/compiler/lib/src/js_backend/backend_helpers.dart ('k') | pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698