| Index: src/full-codegen/mips/full-codegen-mips.cc
|
| diff --git a/src/full-codegen/mips/full-codegen-mips.cc b/src/full-codegen/mips/full-codegen-mips.cc
|
| index df523302a4921c8a743deade24f67206c0d0b8fa..5ad0d61694b8e40358499cc66e01de037e302047 100644
|
| --- a/src/full-codegen/mips/full-codegen-mips.cc
|
| +++ b/src/full-codegen/mips/full-codegen-mips.cc
|
| @@ -281,14 +281,16 @@ void FullCodeGenerator::Generate() {
|
| __ lw(a1, 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(a1);
|
| __ CallRuntime(Runtime::kNewSloppyArguments_Generic);
|
| } else {
|
| - FastNewSloppyArgumentsStub stub(isolate());
|
| - __ CallStub(&stub);
|
| + Callable callable = CodeFactory::FastNewSloppyArguments(isolate());
|
| + __ Call(callable.code(), RelocInfo::CODE_TARGET);
|
| + RestoreContext();
|
| }
|
|
|
| SetVar(arguments, v0, a1, a2);
|
|
|