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

Unified Diff: runtime/vm/intermediate_language.cc

Issue 10566025: Fix definition of CreateArrayComp::InputAt. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language.cc
diff --git a/runtime/vm/intermediate_language.cc b/runtime/vm/intermediate_language.cc
index 0bd7f486a76fa298fc165a719c1f7aa3229f5825..b28ef8a762f550a1e9fa2534462da2340deeb0cc 100644
--- a/runtime/vm/intermediate_language.cc
+++ b/runtime/vm/intermediate_language.cc
@@ -131,6 +131,15 @@ intptr_t CreateArrayComp::InputCount() const {
}
+Value* CreateArrayComp::InputAt(intptr_t i) const {
+ if (i == 0) {
+ return element_type();
+ } else {
+ return ElementAt(i - 1);
+ }
+}
+
+
intptr_t BranchInstr::InputCount() const {
return 1;
}
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698