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

Unified Diff: sdk/lib/_internal/compiler/implementation/ssa/optimize.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/ssa/optimize.dart
diff --git a/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart b/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart
index 333bd7e725947cb630a0096d80d4a4e9f3bac075..e19cdfa8a3793999dc02d28bd3f9a4cc4a57ad2f 100644
--- a/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart
+++ b/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart
@@ -651,7 +651,7 @@ class SsaInstructionSimplifier extends HBaseVisitor
HInstruction value = node.inputs[0];
DartType type = node.typeExpression;
if (type != null) {
- if (!type.isRaw || type.kind == TypeKind.TYPE_VARIABLE) {
+ if (!type.treatAsRaw || type.kind == TypeKind.TYPE_VARIABLE) {
return node;
}
if (type.kind == TypeKind.FUNCTION) {
@@ -769,7 +769,7 @@ class SsaInstructionSimplifier extends HBaseVisitor
HInstruction value = node.inputs.last;
if (compiler.enableTypeAssertions) {
DartType type = field.computeType(compiler);
- if (!type.isRaw || type.kind == TypeKind.TYPE_VARIABLE) {
+ if (!type.treatAsRaw || type.kind == TypeKind.TYPE_VARIABLE) {
// We cannot generate the correct type representation here, so don't
// inline this access.
return node;

Powered by Google App Engine
This is Rietveld 408576698