Index: src/full-codegen/x64/full-codegen-x64.cc |
diff --git a/src/full-codegen/x64/full-codegen-x64.cc b/src/full-codegen/x64/full-codegen-x64.cc |
index e3a41aaba11dad8b44de91624e592e58610be8a1..53808e1eb1de743ab9da6741abffafa7cf010571 100644 |
--- a/src/full-codegen/x64/full-codegen-x64.cc |
+++ b/src/full-codegen/x64/full-codegen-x64.cc |
@@ -261,14 +261,16 @@ void FullCodeGenerator::Generate() { |
__ movp(rdi, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset)); |
} |
if (is_strict(language_mode()) || !has_simple_parameters()) { |
- FastNewStrictArgumentsStub stub(isolate()); |
- __ CallStub(&stub); |
+ __ call(isolate()->builtins()->FastNewStrictArguments(), |
+ RelocInfo::CODE_TARGET); |
+ RestoreContext(); |
} else if (literal()->has_duplicate_parameters()) { |
__ Push(rdi); |
__ CallRuntime(Runtime::kNewSloppyArguments_Generic); |
} else { |
- FastNewSloppyArgumentsStub stub(isolate()); |
- __ CallStub(&stub); |
+ __ call(isolate()->builtins()->FastNewSloppyArguments(), |
+ RelocInfo::CODE_TARGET); |
+ RestoreContext(); |
} |
SetVar(arguments, rax, rbx, rdx); |