| Index: src/full-codegen/mips64/full-codegen-mips64.cc
|
| diff --git a/src/full-codegen/mips64/full-codegen-mips64.cc b/src/full-codegen/mips64/full-codegen-mips64.cc
|
| index 64559ef08edc8d39e33adce2e88da6b84ac331da..587d9d90fb83d84884d2ec123406d0f8abbd208e 100644
|
| --- a/src/full-codegen/mips64/full-codegen-mips64.cc
|
| +++ b/src/full-codegen/mips64/full-codegen-mips64.cc
|
| @@ -262,36 +262,10 @@ void FullCodeGenerator::Generate() {
|
| PrepareForBailoutForId(BailoutId::FunctionContext(),
|
| BailoutState::NO_REGISTERS);
|
|
|
| - // Possibly set up a local binding to the this function which is used in
|
| - // derived constructors with super calls.
|
| - Variable* this_function_var = info->scope()->this_function_var();
|
| - if (this_function_var != nullptr) {
|
| - Comment cmnt(masm_, "[ This function");
|
| - if (!function_in_register_a1) {
|
| - __ ld(a1, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
|
| - // The write barrier clobbers register again, keep it marked as such.
|
| - }
|
| - SetVar(this_function_var, a1, a0, a2);
|
| - }
|
| -
|
| - Variable* new_target_var = info->scope()->new_target_var();
|
| - if (new_target_var != nullptr) {
|
| - Comment cmnt(masm_, "[ new.target");
|
| - SetVar(new_target_var, a3, a0, a2);
|
| - }
|
| -
|
| - // Possibly allocate RestParameters
|
| - Variable* rest_param = info->scope()->rest_parameter();
|
| - if (rest_param != nullptr) {
|
| - Comment cmnt(masm_, "[ Allocate rest parameter array");
|
| - if (!function_in_register_a1) {
|
| - __ ld(a1, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
|
| - }
|
| - FastNewRestParameterStub stub(isolate());
|
| - __ CallStub(&stub);
|
| - function_in_register_a1 = false;
|
| - SetVar(rest_param, v0, a1, a2);
|
| - }
|
| + // We don't support new.target and rest parameters here.
|
| + DCHECK_NULL(info->scope()->new_target_var());
|
| + DCHECK_NULL(info->scope()->rest_parameter());
|
| + DCHECK_NULL(info->scope()->this_function_var());
|
|
|
| Variable* arguments = info->scope()->arguments();
|
| if (arguments != NULL) {
|
|
|