Index: src/ia32/codegen-ia32.cc |
diff --git a/src/ia32/codegen-ia32.cc b/src/ia32/codegen-ia32.cc |
index fc70513349728775479977befbc6f579af015cae..8e8ff2e0b1fab9f0e7add9ead00b08f43bfe9b57 100644 |
--- a/src/ia32/codegen-ia32.cc |
+++ b/src/ia32/codegen-ia32.cc |
@@ -7748,9 +7748,8 @@ void ApiGetterEntryStub::Generate(MacroAssembler* masm) { |
__ mov(Operand(esp, 0 * kPointerSize), ebx); // output |
__ mov(Operand(esp, 3 * kPointerSize), Immediate(0)); // out cell. |
} |
- __ mov(eax, Immediate(ExternalReference(fun()))); |
// Call the api function! |
- __ call(Operand(eax)); |
+ __ call(fun()->address(), RelocInfo::RUNTIME_ENTRY); |
// Check if the function scheduled an exception. |
ExternalReference scheduled_exception_address = |
ExternalReference::scheduled_exception_address(); |