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

Unified Diff: runtime/vm/intermediate_language.h

Issue 10916228: Inline monomorphic calls. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Incorporated review comments. Created 8 years, 3 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
« runtime/vm/flow_graph_inliner.cc ('K') | « runtime/vm/flow_graph_inliner.cc ('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.h
diff --git a/runtime/vm/intermediate_language.h b/runtime/vm/intermediate_language.h
index 2146042f275711d7113748f7d75e7573052a982d..5fdb2736be191569b0327bce1dfde1eae02990f9 100644
--- a/runtime/vm/intermediate_language.h
+++ b/runtime/vm/intermediate_language.h
@@ -297,6 +297,10 @@ class Instruction : public ZoneAllocated {
// Call instructions override this function and return the number of
// pushed arguments.
virtual intptr_t ArgumentCount() const = 0;
+ virtual PushArgumentInstr* ArgumentAt(intptr_t index) const {
+ UNREACHABLE();
+ return NULL;
+ };
// Returns true, if this instruction can deoptimize.
virtual bool CanDeoptimize() const = 0;
@@ -1738,6 +1742,9 @@ class PolymorphicInstanceCallInstr : public TemplateDefinition<0> {
virtual intptr_t ArgumentCount() const {
return instance_call()->ArgumentCount();
}
+ PushArgumentInstr* ArgumentAt(intptr_t index) const {
+ return instance_call()->ArgumentAt(index);
+ }
DECLARE_INSTRUCTION(PolymorphicInstanceCall)
virtual RawAbstractType* CompileType() const;
« runtime/vm/flow_graph_inliner.cc ('K') | « runtime/vm/flow_graph_inliner.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698