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

Unified Diff: pkg/compiler/lib/src/constants/expressions.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/constants/evaluation.dart ('k') | pkg/compiler/lib/src/elements/elements.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/constants/expressions.dart
diff --git a/pkg/compiler/lib/src/constants/expressions.dart b/pkg/compiler/lib/src/constants/expressions.dart
index bdb275f23f64cf7276c8bace1aa75e298ecc5a8c..bb66474dd3baafe4150e2fa3b6444e7ae30e9998 100644
--- a/pkg/compiler/lib/src/constants/expressions.dart
+++ b/pkg/compiler/lib/src/constants/expressions.dart
@@ -482,12 +482,8 @@ class MapConstantExpression extends ConstantExpression {
ConstantValue value = values[index].evaluate(environment, constantSystem);
valueMap[key] = value;
}
- return constantSystem.createMap(
- environment.commonElements,
- environment.backendClasses,
- type,
- valueMap.keys.toList(),
- valueMap.values.toList());
+ return constantSystem.createMap(environment.commonElements, type,
+ valueMap.keys.toList(), valueMap.values.toList());
}
ConstantExpression apply(NormalizedArguments arguments) {
@@ -738,8 +734,7 @@ class SymbolConstantExpression extends ConstantExpression {
@override
ConstantValue evaluate(
Environment environment, ConstantSystem constantSystem) {
- return constantSystem.createSymbol(
- environment.commonElements, environment.backendClasses, name);
+ return constantSystem.createSymbol(environment.commonElements, name);
}
@override
@@ -774,8 +769,7 @@ class TypeConstantExpression extends ConstantExpression {
@override
ConstantValue evaluate(
Environment environment, ConstantSystem constantSystem) {
- return constantSystem.createType(
- environment.commonElements, environment.backendClasses, type);
+ return constantSystem.createType(environment.commonElements, type);
}
@override
« no previous file with comments | « pkg/compiler/lib/src/constants/evaluation.dart ('k') | pkg/compiler/lib/src/elements/elements.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698