Index: src/full-codegen/x87/full-codegen-x87.cc |
diff --git a/src/full-codegen/x87/full-codegen-x87.cc b/src/full-codegen/x87/full-codegen-x87.cc |
index 0ccf63f9f079b17f0b81a9a42ac162f81676a06c..e211a1a1efa07f3daaf0d46c9b6e06021c72b44a 100644 |
--- a/src/full-codegen/x87/full-codegen-x87.cc |
+++ b/src/full-codegen/x87/full-codegen-x87.cc |
@@ -246,9 +246,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) { |
__ mov(edi, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); |