| Index: src/full-codegen/arm64/full-codegen-arm64.cc
|
| diff --git a/src/full-codegen/arm64/full-codegen-arm64.cc b/src/full-codegen/arm64/full-codegen-arm64.cc
|
| index 5a2834d9b4d17110e8118fb35dbf4c59aea46e1e..1e01b0d77e12c9b5fc72fdce614246cca3cc3ef5 100644
|
| --- a/src/full-codegen/arm64/full-codegen-arm64.cc
|
| +++ b/src/full-codegen/arm64/full-codegen-arm64.cc
|
| @@ -285,28 +285,6 @@ void FullCodeGenerator::Generate() {
|
| SetVar(new_target_var, x0, x2, x3);
|
| }
|
|
|
| - // Possibly allocate RestParameters
|
| - int rest_index;
|
| - Variable* rest_param = scope()->rest_parameter(&rest_index);
|
| - if (rest_param) {
|
| - Comment cmnt(masm_, "[ Allocate rest parameter array");
|
| -
|
| - int num_parameters = info->scope()->num_parameters();
|
| - int offset = num_parameters * kPointerSize;
|
| -
|
| - __ Add(x3, fp, StandardFrameConstants::kCallerSPOffset + offset);
|
| - __ Mov(x2, Smi::FromInt(num_parameters));
|
| - __ Mov(x1, Smi::FromInt(rest_index));
|
| - __ Mov(x0, Smi::FromInt(language_mode()));
|
| - __ Push(x3, x2, x1, x0);
|
| - function_in_register_x1 = false;
|
| -
|
| - RestParamAccessStub stub(isolate());
|
| - __ CallStub(&stub);
|
| -
|
| - SetVar(rest_param, x0, x1, x2);
|
| - }
|
| -
|
| Variable* arguments = scope()->arguments();
|
| if (arguments != NULL) {
|
| // Function uses arguments object.
|
|
|