Index: src/full-codegen/ia32/full-codegen-ia32.cc |
diff --git a/src/full-codegen/ia32/full-codegen-ia32.cc b/src/full-codegen/ia32/full-codegen-ia32.cc |
index 869df31fa571a9b3144261c2bf1cd06aff26bb28..695740a60dfd5e741f88b88e95c332c6a55ff13b 100644 |
--- a/src/full-codegen/ia32/full-codegen-ia32.cc |
+++ b/src/full-codegen/ia32/full-codegen-ia32.cc |
@@ -263,14 +263,16 @@ void FullCodeGenerator::Generate() { |
__ mov(edi, Operand(ebp, 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(edi); |
__ CallRuntime(Runtime::kNewSloppyArguments_Generic); |
} else { |
- FastNewSloppyArgumentsStub stub(isolate()); |
- __ CallStub(&stub); |
+ __ call(isolate()->builtins()->FastNewSloppyArguments(), |
+ RelocInfo::CODE_TARGET); |
+ RestoreContext(); |
} |
SetVar(arguments, eax, ebx, edx); |