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 54630d4e3c32c251d4919eeec40628ca094065b7..9d39ed8304f58e2fc71efce01fca49e1390a642a 100644 |
--- a/src/full-codegen/ia32/full-codegen-ia32.cc |
+++ b/src/full-codegen/ia32/full-codegen-ia32.cc |
@@ -262,14 +262,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); |