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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_backend/backend.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/backend.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart b/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
index b2cd1d9abf6fd552e386964c28d20149a760aa0d..154b29661b25e1122a778fe4cfdd4a15820620be 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
@@ -990,7 +990,7 @@ class JavaScriptBackend extends Backend {
}
}
bool isTypeVariable = type.kind == TypeKind.TYPE_VARIABLE;
- if (!type.isRaw || type.containsTypeVariables) {
+ if (!type.treatAsRaw || type.containsTypeVariables) {
enqueueInResolution(getSetRuntimeTypeInfo(), elements);
enqueueInResolution(getGetRuntimeTypeInfo(), elements);
enqueueInResolution(getGetRuntimeTypeArgument(), elements);
@@ -1372,7 +1372,7 @@ class JavaScriptBackend extends Backend {
: 'stringSuperTypeCheck';
}
} else if ((element == compiler.listClass || element == jsArrayClass) &&
- type.isRaw) {
+ type.treatAsRaw) {
if (nativeCheckOnly) return null;
return typeCast
? 'listTypeCast'
@@ -1396,7 +1396,7 @@ class JavaScriptBackend extends Backend {
? 'interceptedTypeCast'
: 'interceptedTypeCheck';
} else {
- if (type.kind == TypeKind.INTERFACE && !type.isRaw) {
+ if (type.kind == TypeKind.INTERFACE && !type.treatAsRaw) {
return typeCast
? 'subtypeCast'
: 'assertSubtype';

Powered by Google App Engine
This is Rietveld 408576698