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

Unified Diff: runtime/vm/intermediate_language.cc

Issue 10407018: Start porting fast typechecks to x64. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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: runtime/vm/intermediate_language.cc
===================================================================
--- runtime/vm/intermediate_language.cc (revision 7716)
+++ runtime/vm/intermediate_language.cc (working copy)
@@ -46,14 +46,20 @@
// ==== Per-instruction input counts.
intptr_t AssertAssignableComp::InputCount() const {
- // Value and optional instantiator type arguments.
- return (instantiator_type_arguments() == NULL) ? 1 : 2;
+ // Value and optional instantiator and instantiator type arguments.
+ intptr_t count = 1;
+ if (instantiator() != NULL) count++;
+ if (instantiator_type_arguments() != NULL) count++;
+ return count;
}
intptr_t InstanceOfComp::InputCount() const {
- // Value and optional type_arguments.
- return (type_arguments() == NULL) ? 1 : 2;
+ // Value and optional instantiator and instantiator type_arguments.
+ intptr_t count = 1;
+ if (instantiator() != NULL) count++;
+ if (type_arguments() != NULL) count++;
+ return count;
}

Powered by Google App Engine
This is Rietveld 408576698