Index: src/x87/code-stubs-x87.cc |
diff --git a/src/x87/code-stubs-x87.cc b/src/x87/code-stubs-x87.cc |
index e70f9c85b962b73d5122ee43b4102fb6804c9bbd..cdcbaf94027810275bc3d36a1de53bc61e9aa608 100644 |
--- a/src/x87/code-stubs-x87.cc |
+++ b/src/x87/code-stubs-x87.cc |
@@ -1800,8 +1800,8 @@ static void EmitWrapCase(MacroAssembler* masm, int argc, Label* cont) { |
// Wrap the receiver and patch it back onto the stack. |
{ FrameScope frame_scope(masm, StackFrame::INTERNAL); |
__ push(edi); |
- __ push(eax); |
- __ InvokeBuiltin(Builtins::TO_OBJECT, CALL_FUNCTION); |
+ ToObjectStub stub(masm->isolate()); |
+ __ CallStub(&stub); |
__ pop(edi); |
} |
__ mov(Operand(esp, (argc + 1) * kPointerSize), eax); |