Index: src/ia32/code-stubs-ia32.cc |
diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc |
index 08abcf115f7f633a034873386cbf1c9c7e97a25a..37e1876f3decedeb786aeb80834d48e1ff4c53e3 100644 |
--- a/src/ia32/code-stubs-ia32.cc |
+++ b/src/ia32/code-stubs-ia32.cc |
@@ -2425,23 +2425,11 @@ |
// esp: stack pointer (restored after C call) |
// esi: current context (C callee-saved) |
// edi: JS function of the caller (C callee-saved) |
- // |
- // If argv_in_register(): |
- // ecx: pointer to the first argument |
ProfileEntryHookStub::MaybeCallEntryHook(masm); |
// Enter the exit frame that transitions from JavaScript to C++. |
- if (argv_in_register()) { |
- DCHECK(!save_doubles()); |
- __ EnterApiExitFrame(3); |
- |
- // Move argc and argv into the correct registers. |
- __ mov(esi, ecx); |
- __ mov(edi, eax); |
- } else { |
- __ EnterExitFrame(save_doubles()); |
- } |
+ __ EnterExitFrame(save_doubles()); |
// ebx: pointer to C function (C callee-saved) |
// ebp: frame pointer (restored after C call) |
@@ -2486,7 +2474,7 @@ |
} |
// Exit the JavaScript to C++ exit frame. |
- __ LeaveExitFrame(save_doubles(), !argv_in_register()); |
+ __ LeaveExitFrame(save_doubles()); |
__ ret(0); |
// Handling of exception. |