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

Unified Diff: pkg/compiler/lib/src/constant_system_dart.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/constant_system_dart.dart
diff --git a/pkg/compiler/lib/src/constant_system_dart.dart b/pkg/compiler/lib/src/constant_system_dart.dart
index 02d693810dcc769811cc0a4935b197f43f67c0f6..a9967b09717e4cb6eca3d2e26bb204dfe5b01e29 100644
--- a/pkg/compiler/lib/src/constant_system_dart.dart
+++ b/pkg/compiler/lib/src/constant_system_dart.dart
@@ -4,7 +4,6 @@
library dart2js.constant_system.dart;
-import 'common/backend_api.dart' show BackendClasses;
import 'constants/constant_system.dart';
import 'constants/values.dart';
import 'common_elements.dart' show CommonElements;
@@ -449,28 +448,19 @@ class DartConstantSystem extends ConstantSystem {
}
@override
- MapConstantValue createMap(
- CommonElements commonElements,
- BackendClasses backendClasses,
- InterfaceType type,
- List<ConstantValue> keys,
- List<ConstantValue> values) {
+ MapConstantValue createMap(CommonElements commonElements, InterfaceType type,
+ List<ConstantValue> keys, List<ConstantValue> values) {
return new MapConstantValue(type, keys, values);
}
@override
- ConstantValue createType(CommonElements commonElements,
- BackendClasses backendClasses, DartType type) {
- // TODO(johnniwinther): Change the `Type` type to
- // `compiler.commonElements.typeType` and check the backend specific value
- // in [checkConstMapKeysDontOverrideEquals] in 'members.dart'.
- InterfaceType implementationType = backendClasses.typeType;
+ ConstantValue createType(CommonElements commonElements, DartType type) {
+ InterfaceType implementationType = commonElements.typeLiteralType;
return new TypeConstantValue(type, implementationType);
}
@override
- ConstantValue createSymbol(CommonElements commonElements,
- BackendClasses backendClasses, String text) {
+ ConstantValue createSymbol(CommonElements commonElements, String text) {
throw new UnsupportedError('DartConstantSystem.createSymbol');
}
« no previous file with comments | « pkg/compiler/lib/src/compile_time_constants.dart ('k') | pkg/compiler/lib/src/constants/constant_system.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698