| Index: src/mips/lithium-mips.h
|
| diff --git a/src/mips/lithium-mips.h b/src/mips/lithium-mips.h
|
| index c5a00d74b62dd9e4b7772140f09045a2ad8dc0ee..ccaad713605d19df8c6cef7d98df3c673e2d3690 100644
|
| --- a/src/mips/lithium-mips.h
|
| +++ b/src/mips/lithium-mips.h
|
| @@ -1343,14 +1343,24 @@ class LArithmeticT: public LTemplateInstruction<1, 2, 0> {
|
| };
|
|
|
|
|
| -class LReturn: public LTemplateInstruction<0, 1, 0> {
|
| +class LReturn: public LTemplateInstruction<0, 2, 0> {
|
| public:
|
| - explicit LReturn(LOperand* value) {
|
| + explicit LReturn(LOperand* value, LOperand* parameter_count) {
|
| inputs_[0] = value;
|
| + inputs_[1] = parameter_count;
|
| }
|
|
|
| LOperand* value() { return inputs_[0]; }
|
|
|
| + bool has_constant_parameter_count() {
|
| + return parameter_count()->IsConstantOperand();
|
| + }
|
| + LConstantOperand* constant_parameter_count() {
|
| + ASSERT(has_constant_parameter_count());
|
| + return LConstantOperand::cast(parameter_count());
|
| + }
|
| + LOperand* parameter_count() { return inputs_[1]; }
|
| +
|
| DECLARE_CONCRETE_INSTRUCTION(Return, "return")
|
| };
|
|
|
|
|