| Index: vm/intermediate_language.h
|
| ===================================================================
|
| --- vm/intermediate_language.h (revision 7782)
|
| +++ vm/intermediate_language.h (working copy)
|
| @@ -364,14 +364,8 @@
|
| public:
|
| ClosureCallComp(ClosureCallNode* node,
|
| intptr_t try_index,
|
| - Value* context,
|
| ZoneGrowableArray<Value*>* arguments)
|
| - : ast_node_(*node),
|
| - try_index_(try_index),
|
| - context_(context),
|
| - arguments_(arguments) {
|
| - ASSERT(context->IsUse());
|
| - }
|
| + : ast_node_(*node), try_index_(try_index), arguments_(arguments) { }
|
|
|
| DECLARE_COMPUTATION(ClosureCall)
|
|
|
| @@ -379,21 +373,17 @@
|
| intptr_t token_index() const { return ast_node_.token_index(); }
|
| intptr_t try_index() const { return try_index_; }
|
|
|
| - Value* context() const { return context_; }
|
| intptr_t ArgumentCount() const { return arguments_->length(); }
|
| Value* ArgumentAt(intptr_t index) const { return (*arguments_)[index]; }
|
|
|
| virtual intptr_t InputCount() const;
|
| - virtual Value* InputAt(intptr_t i) const {
|
| - return i == 0 ? context() : ArgumentAt(i - 1);
|
| - }
|
| + virtual Value* InputAt(intptr_t i) const { return ArgumentAt(i); }
|
|
|
| virtual void PrintOperandsTo(BufferFormatter* f) const;
|
|
|
| private:
|
| const ClosureCallNode& ast_node_;
|
| const intptr_t try_index_;
|
| - Value* context_;
|
| ZoneGrowableArray<Value*>* arguments_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(ClosureCallComp);
|
|
|