| Index: src/x87/builtins-x87.cc
|
| diff --git a/src/x87/builtins-x87.cc b/src/x87/builtins-x87.cc
|
| index da427e22fc56e0c364f425aec09f5d710480847c..f6cf7a165195a96ca5e0e690d845cf4645f43f49 100644
|
| --- a/src/x87/builtins-x87.cc
|
| +++ b/src/x87/builtins-x87.cc
|
| @@ -994,8 +994,9 @@ void Builtins::Generate_FunctionCall(MacroAssembler* masm) {
|
| __ SmiTag(eax);
|
| __ push(eax);
|
|
|
| - __ push(ebx);
|
| - __ InvokeBuiltin(Builtins::TO_OBJECT, CALL_FUNCTION);
|
| + __ mov(eax, ebx);
|
| + ToObjectStub stub(masm->isolate());
|
| + __ CallStub(&stub);
|
| __ mov(ebx, eax);
|
| __ Move(edx, Immediate(0)); // restore
|
|
|
| @@ -1215,8 +1216,9 @@ static void Generate_ApplyHelper(MacroAssembler* masm, bool targetIsArgument) {
|
| __ j(above_equal, &push_receiver);
|
|
|
| __ bind(&call_to_object);
|
| - __ push(ebx);
|
| - __ InvokeBuiltin(Builtins::TO_OBJECT, CALL_FUNCTION);
|
| + __ mov(eax, ebx);
|
| + ToObjectStub stub(masm->isolate());
|
| + __ CallStub(&stub);
|
| __ mov(ebx, eax);
|
| __ jmp(&push_receiver);
|
|
|
|
|