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

Unified Diff: pkg/compiler/lib/src/compile_time_constants.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
« no previous file with comments | « pkg/compiler/lib/src/common_elements.dart ('k') | pkg/compiler/lib/src/constant_system_dart.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/compile_time_constants.dart
diff --git a/pkg/compiler/lib/src/compile_time_constants.dart b/pkg/compiler/lib/src/compile_time_constants.dart
index 3c4fc5e93732a1bb132861ee6a84ad6584a819fb..883a124aa5f426f6691c68ee6aee3c6544a80564 100644
--- a/pkg/compiler/lib/src/compile_time_constants.dart
+++ b/pkg/compiler/lib/src/compile_time_constants.dart
@@ -4,7 +4,6 @@
library dart2js.compile_time_constant_evaluator;
-import 'common/backend_api.dart' show BackendClasses;
import 'common/resolution.dart' show Resolution;
import 'common/tasks.dart' show CompilerTask, Measurer;
import 'common.dart';
@@ -507,11 +506,7 @@ class CompileTimeConstantEvaluator extends Visitor<AstConstant> {
node,
new MapConstantExpression(type, keyExpressions, valueExpressions),
constantSystem.createMap(
- compiler.commonElements,
- compiler.backend.backendClasses,
- type,
- keyValues,
- map.values.toList()));
+ compiler.commonElements, type, keyValues, map.values.toList()));
}
AstConstant visitLiteralNull(LiteralNull node) {
@@ -606,8 +601,7 @@ class CompileTimeConstantEvaluator extends Visitor<AstConstant> {
}
ConstantValue makeTypeConstant(ResolutionDartType elementType) {
- return constantSystem.createType(
- compiler.commonElements, compiler.backend.backendClasses, elementType);
+ return constantSystem.createType(compiler.commonElements, elementType);
}
/// Returns true if the prefix of the send resolves to a deferred import
@@ -1453,9 +1447,6 @@ class _CompilerEnvironment implements Environment {
_CompilerEnvironment(this._compiler);
@override
- BackendClasses get backendClasses => _compiler.backend.backendClasses;
-
- @override
CommonElements get commonElements => _compiler.commonElements;
@override
« no previous file with comments | « pkg/compiler/lib/src/common_elements.dart ('k') | pkg/compiler/lib/src/constant_system_dart.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698