| 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 a1e44d2b6e2a85e6be2b8e3329c251610b8e9db2..139ae718ecdcf7de409bbc64a4333671bece13da 100644
|
| --- a/src/full-codegen/arm64/full-codegen-arm64.cc
|
| +++ b/src/full-codegen/arm64/full-codegen-arm64.cc
|
| @@ -273,14 +273,16 @@ void FullCodeGenerator::Generate() {
|
| __ Ldr(x1, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
|
| }
|
| if (is_strict(language_mode()) || !has_simple_parameters()) {
|
| - FastNewStrictArgumentsStub stub(isolate());
|
| - __ CallStub(&stub);
|
| + Callable callable = CodeFactory::FastNewStrictArguments(isolate());
|
| + __ Call(callable.code(), RelocInfo::CODE_TARGET);
|
| + RestoreContext();
|
| } else if (literal()->has_duplicate_parameters()) {
|
| __ Push(x1);
|
| __ CallRuntime(Runtime::kNewSloppyArguments_Generic);
|
| } else {
|
| - FastNewSloppyArgumentsStub stub(isolate());
|
| - __ CallStub(&stub);
|
| + Callable callable = CodeFactory::FastNewSloppyArguments(isolate());
|
| + __ Call(callable.code(), RelocInfo::CODE_TARGET);
|
| + RestoreContext();
|
| }
|
|
|
| SetVar(arguments, x0, x1, x2);
|
|
|