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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_backend/constant_emitter.dart

Issue 11360228: Simplify runtime type support. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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: sdk/lib/_internal/compiler/implementation/js_backend/constant_emitter.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/constant_emitter.dart b/sdk/lib/_internal/compiler/implementation/js_backend/constant_emitter.dart
index e8621a5d91c28c3d0ddf9cfba946603834757f0c..c794105b053d8567f229e3f97185362823e9810b 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/constant_emitter.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/constant_emitter.dart
@@ -209,7 +209,8 @@ class ConstantEmitter implements ConstantVisitor {
Element element = type.element;
String typeName;
if (type.kind == TypeKind.INTERFACE) {
- typeName = backend.rti.generateRuntimeTypeString(element, 0);
+ typeName =
+ backend.rti.getStringRepresentation(type, expandRawType: true);
} else {
assert(type.kind == TypeKind.TYPEDEF);
typeName = element.name.slowToString();

Powered by Google App Engine
This is Rietveld 408576698