Index: src/full-codegen/ia32/full-codegen-ia32.cc |
diff --git a/src/full-codegen/ia32/full-codegen-ia32.cc b/src/full-codegen/ia32/full-codegen-ia32.cc |
index 0a00eeade876490ee8cf00baafb1a61036ce319b..ac07da6d61ae45295a36321bd0dc00fdd9bc6124 100644 |
--- a/src/full-codegen/ia32/full-codegen-ia32.cc |
+++ b/src/full-codegen/ia32/full-codegen-ia32.cc |
@@ -249,9 +249,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)); |