Index: src/full-codegen/mips/full-codegen-mips.cc |
diff --git a/src/full-codegen/mips/full-codegen-mips.cc b/src/full-codegen/mips/full-codegen-mips.cc |
index 917474ae882fb1c0dbcbca6e1cb71b1ca2a2d492..6601dee3773fda6986406dfe8c0dcb8adc6887ea 100644 |
--- a/src/full-codegen/mips/full-codegen-mips.cc |
+++ b/src/full-codegen/mips/full-codegen-mips.cc |
@@ -263,9 +263,8 @@ void FullCodeGenerator::Generate() { |
} |
// Possibly allocate RestParameters |
- int rest_index; |
- Variable* rest_param = info->scope()->rest_parameter(&rest_index); |
- if (rest_param) { |
+ Variable* rest_param = info->scope()->rest_parameter(); |
+ if (rest_param != nullptr) { |
Comment cmnt(masm_, "[ Allocate rest parameter array"); |
if (!function_in_register_a1) { |
__ lw(a1, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |