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 3a929b4c23e89659c82865635f66f6f1f7a46fee..40ae44e0e91ba43e4d34ebba3f6b28887e015c60 100644 |
--- a/src/full-codegen/mips64/full-codegen-mips64.cc |
+++ b/src/full-codegen/mips64/full-codegen-mips64.cc |
@@ -280,14 +280,16 @@ void FullCodeGenerator::Generate() { |
__ ld(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); |