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

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: 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..e7f7d6e4efd26ab02961e68c62a1ea6edc291ce2 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 ((RuntimeTypeInformation.hasTypeArguments(type) &&
+ type.element.isClass()) || type.element.isTypeVariable()) {
floitsch 2012/12/07 15:30:15 this looks too much like && (... || ...) please br
karlklose 2012/12/11 08:40:05 The change was actually not necessary anymore. Rem
HInstruction typeInfo = getRuntimeTypeInfo(expression);
// TODO(karlklose): make isSubtype a HInstruction to enable
// optimizations?

Powered by Google App Engine
This is Rietveld 408576698