Chromium Code Reviews| Index: src/x64/lithium-x64.h |
| =================================================================== |
| --- src/x64/lithium-x64.h (revision 6822) |
| +++ src/x64/lithium-x64.h (working copy) |
| @@ -1314,11 +1314,16 @@ |
| }; |
| -class LCallFunction: public LTemplateInstruction<1, 0, 0> { |
| +class LCallFunction: public LTemplateInstruction<1, 1, 0> { |
| public: |
| + explicit LCallFunction(LOperand* context) { |
| + inputs_[0] = context; |
| + } |
| + |
| DECLARE_CONCRETE_INSTRUCTION(CallFunction, "call-function") |
| DECLARE_HYDROGEN_ACCESSOR(CallFunction) |
| + LOperand* context() { return inputs_[0]; } |
|
Rico
2011/02/16 14:47:48
We only seem to use this in an assert?
|
| int arity() const { return hydrogen()->argument_count() - 2; } |
| }; |