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

Unified Diff: sdk/lib/_internal/compiler/implementation/ssa/nodes.dart

Issue 304153014: Remove element from DynamicType. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix infinite loop. Created 6 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
Index: sdk/lib/_internal/compiler/implementation/ssa/nodes.dart
diff --git a/sdk/lib/_internal/compiler/implementation/ssa/nodes.dart b/sdk/lib/_internal/compiler/implementation/ssa/nodes.dart
index a8107f4cf0838ec769b25e6dcfd72be74710295f..5b1005e68efaea5bfe4ea45b4f1441d7379a9d53 100644
--- a/sdk/lib/_internal/compiler/implementation/ssa/nodes.dart
+++ b/sdk/lib/_internal/compiler/implementation/ssa/nodes.dart
@@ -1227,7 +1227,7 @@ abstract class HInstruction implements Spannable {
// instructions with generics. It has the generic type context
// available.
assert(type.kind != TypeKind.TYPE_VARIABLE);
- assert(type.treatAsRaw || type.kind == TypeKind.FUNCTION);
+ assert(type.treatAsRaw || type.isFunctionType);
if (type.isDynamic) return this;
// The type element is either a class or the void element.
Element element = type.element;
@@ -2496,12 +2496,12 @@ class HTypeConversion extends HCheck {
}
bool get hasTypeRepresentation {
- return typeExpression.kind == TypeKind.INTERFACE && inputs.length > 1;
+ return typeExpression.isInterfaceType && inputs.length > 1;
}
HInstruction get typeRepresentation => inputs[1];
bool get hasContext {
- return typeExpression.kind == TypeKind.FUNCTION && inputs.length > 1;
+ return typeExpression.isFunctionType && inputs.length > 1;
}
HInstruction get context => inputs[1];

Powered by Google App Engine
This is Rietveld 408576698