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 11ea632e8c12d684c5601a34d7cc6d9b75758634..e4e4956a4814f029e9edb6c545964f3e6f4a29b1 100644 |
--- a/src/full-codegen/arm64/full-codegen-arm64.cc |
+++ b/src/full-codegen/arm64/full-codegen-arm64.cc |
@@ -272,14 +272,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); |