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

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

Issue 11478022: Implement is-checks with typedefs for callable objects. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years 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/builder.dart
diff --git a/sdk/lib/_internal/compiler/implementation/ssa/builder.dart b/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
index fcbc105b9e001e8c6e6289483e07419bb857087a..da27b2084f77b9ff41327b3e559c6af316142869 100644
--- a/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
+++ b/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
@@ -2740,8 +2740,8 @@ class SsaBuilder extends ResolvedVisitor implements Visitor {
}
HInstruction instruction;
- if (RuntimeTypeInformation.hasTypeArguments(type) ||
- type.element.isTypeVariable()) {
+ if (type.element.isTypeVariable() ||
+ RuntimeTypeInformation.hasTypeArguments(type)) {
HInstruction typeInfo = getRuntimeTypeInfo(expression);
// TODO(karlklose): make isSubtype a HInstruction to enable
// optimizations?

Powered by Google App Engine
This is Rietveld 408576698