| Index: src/full-codegen/s390/full-codegen-s390.cc
|
| diff --git a/src/full-codegen/s390/full-codegen-s390.cc b/src/full-codegen/s390/full-codegen-s390.cc
|
| index ebe926f25a967a1d0673b2637ec5a2afefa170bd..fa767a95ee2b17b5fd0fce7a4ae04435eac1b31f 100644
|
| --- a/src/full-codegen/s390/full-codegen-s390.cc
|
| +++ b/src/full-codegen/s390/full-codegen-s390.cc
|
| @@ -282,14 +282,16 @@ void FullCodeGenerator::Generate() {
|
| __ LoadP(r3, 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(r3);
|
| __ CallRuntime(Runtime::kNewSloppyArguments_Generic);
|
| } else {
|
| - FastNewSloppyArgumentsStub stub(isolate());
|
| - __ CallStub(&stub);
|
| + Callable callable = CodeFactory::FastNewSloppyArguments(isolate());
|
| + __ Call(callable.code(), RelocInfo::CODE_TARGET);
|
| + RestoreContext();
|
| }
|
|
|
| SetVar(arguments, r2, r3, r4);
|
|
|