Index: runtime/vm/intermediate_language.h |
=================================================================== |
--- runtime/vm/intermediate_language.h (revision 35546) |
+++ runtime/vm/intermediate_language.h (working copy) |
@@ -2850,12 +2850,15 @@ |
}; |
-class ClosureCallInstr : public TemplateDefinition<0> { |
+class ClosureCallInstr : public TemplateDefinition<1> { |
public: |
- ClosureCallInstr(ClosureCallNode* node, |
+ ClosureCallInstr(Value* function, |
+ ClosureCallNode* node, |
ZoneGrowableArray<PushArgumentInstr*>* arguments) |
: ast_node_(*node), |
- arguments_(arguments) { } |
+ arguments_(arguments) { |
+ SetInputAt(0, function); |
+ } |
DECLARE_INSTRUCTION(ClosureCall) |
@@ -7800,6 +7803,11 @@ |
void PrintTo(BufferFormatter* f) const; |
const char* ToCString() const; |
+ // Deep copy an environment. The 'length' parameter may be less than the |
+ // environment's length in order to drop values (e.g., passed arguments) |
+ // from the copy. |
+ Environment* DeepCopy(intptr_t length) const; |
+ |
private: |
friend class ShallowIterator; |
@@ -7815,10 +7823,6 @@ |
code_(code), |
outer_(outer) { } |
- // Deep copy an environment. The 'length' parameter may be less than the |
- // environment's length in order to drop values (e.g., passed arguments) |
- // from the copy. |
- Environment* DeepCopy(intptr_t length) const; |
GrowableArray<Value*> values_; |
Location* locations_; |