Index: src/full-codegen/arm/full-codegen-arm.cc |
diff --git a/src/full-codegen/arm/full-codegen-arm.cc b/src/full-codegen/arm/full-codegen-arm.cc |
index e5d7016a0136e0c6daba230245f2c33996fba0a1..965248d5b38c949934304b30c764216f2806dd57 100644 |
--- a/src/full-codegen/arm/full-codegen-arm.cc |
+++ b/src/full-codegen/arm/full-codegen-arm.cc |
@@ -270,14 +270,16 @@ void FullCodeGenerator::Generate() { |
__ ldr(r1, 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(r1); |
__ CallRuntime(Runtime::kNewSloppyArguments_Generic); |
} else { |
- FastNewSloppyArgumentsStub stub(isolate()); |
- __ CallStub(&stub); |
+ Callable callable = CodeFactory::FastNewSloppyArguments(isolate()); |
+ __ Call(callable.code(), RelocInfo::CODE_TARGET); |
+ RestoreContext(); |
} |
SetVar(arguments, r0, r1, r2); |