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

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

Issue 24615003: Add DartType.treatAsRaw to treat List<dynamic> as List in the backend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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: sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart b/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart
index 6a52399aab731b6bd5be1ed0b455e82dbf9e07f4..fbb9da74b53d594c6b8a435f593e58c0ffca0ef9 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart
@@ -162,7 +162,7 @@ class RuntimeTypes {
compiler.resolverWorld.isChecks.forEach((DartType type) {
if (type.kind == TypeKind.INTERFACE) {
InterfaceType itf = type;
- if (!itf.isRaw) {
+ if (!itf.treatAsRaw) {
potentiallyAddForRti(itf.element);
}
} else {
@@ -559,7 +559,7 @@ class RuntimeTypes {
static bool hasTypeArguments(DartType type) {
if (type is InterfaceType) {
InterfaceType interfaceType = type;
- return !interfaceType.isRaw;
+ return !interfaceType.treatAsRaw;
}
return false;
}
@@ -613,7 +613,7 @@ class TypeRepresentationGenerator extends DartTypeVisitor {
visitInterfaceType(InterfaceType type, _) {
jsAst.Expression name = getJavaScriptClassName(type.element);
- return type.isRaw ? name : visitList(type.typeArguments, head: name);
+ return type.treatAsRaw ? name : visitList(type.typeArguments, head: name);
}
jsAst.Expression visitList(Link<DartType> types, {jsAst.Expression head}) {

Powered by Google App Engine
This is Rietveld 408576698