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

Unified Diff: pkg/compiler/lib/src/constant_system_dart.dart

Issue 1135043002: Fix test for TypeImpl.== (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 bcbfd307410bfe4e25b71fe7e1f5168c3146e5eb..f140cf50b07d93a9e3c49e3b18da4c3fd859d3a5 100644
--- a/pkg/compiler/lib/src/constant_system_dart.dart
+++ b/pkg/compiler/lib/src/constant_system_dart.dart
@@ -428,7 +428,11 @@ class DartConstantSystem extends ConstantSystem {
@override
ConstantValue createType(Compiler compiler, DartType type) {
- return new TypeConstantValue(type, compiler.coreTypes.typeType);
+ // TODO(johnniwinther): Change the `Type` type to
+ // `compiler.coreTypes.typeType` and check the backend specific value in
+ // [checkConstMapKeysDontOverrideEquals] in 'members.dart'.
+ return new TypeConstantValue(type,
+ compiler.backend.typeImplementation.computeType(compiler));
}
bool isInt(ConstantValue constant) => constant.isInt;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698