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

Unified Diff: sdk/lib/_internal/compiler/implementation/ssa/nodes.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/nodes.dart
diff --git a/sdk/lib/_internal/compiler/implementation/ssa/nodes.dart b/sdk/lib/_internal/compiler/implementation/ssa/nodes.dart
index 88718e143fa8eda77f055a8013b33b8a02124012..290a3579d64550222d5dcdd5f3cb88558de86b54 100644
--- a/sdk/lib/_internal/compiler/implementation/ssa/nodes.dart
+++ b/sdk/lib/_internal/compiler/implementation/ssa/nodes.dart
@@ -2541,7 +2541,7 @@ class HIs extends HInstruction {
HInstruction getCheck(int index) => inputs[index + 1];
int get checkCount => inputs.length - 1;
- bool hasArgumentChecks() => inputs.length >= 1;
+ bool hasArgumentChecks() => inputs.length > 1;
HType get guaranteedType => HType.BOOLEAN;

Powered by Google App Engine
This is Rietveld 408576698