Commit 4e684785 authored by ggaren@apple.com's avatar ggaren@apple.com

Fixed Windows crash seen on buildbot.

* jit/JITOpcodes32_64.cpp:
(JSC::JIT::privateCompileCTINativeCall): __fastcall puts the first
argument in ecx.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@60401 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 1405f8a0
2010-05-29 Geoffrey Garen <ggaren@apple.com>
Fixed Windows crash seen on buildbot.
* jit/JITOpcodes32_64.cpp:
(JSC::JIT::privateCompileCTINativeCall): __fastcall puts the first
argument in ecx.
2010-05-28 Geoffrey Garen <ggaren@apple.com>
Windows build fix: Updated exported symbols.
......
......@@ -191,18 +191,10 @@ JIT::Label JIT::privateCompileCTINativeCall(JSGlobalData* globalData, bool isCon
emitPutToCallFrameHeader(regT1, RegisterFile::ReturnPC);
#if CPU(X86)
#if COMPILER(MSVC) || OS(LINUX)
// Calling convention: f(edx, ...);
// Host function signature: f(ExecState*);
move(callFrameRegister, X86Registers::edx);
#else
// Calling convention: f(ecx, edx, ...);
// Host function signature: f(ExecState*);
move(callFrameRegister, X86Registers::ecx);
#endif // COMPILER(MSVC) || OS(LINUX)
subPtr(Imm32(16 - sizeof(void*)), stackPointerRegister); // Align stack after call.
// call the function
......@@ -251,18 +243,10 @@ JIT::CodePtr JIT::privateCompileCTINativeCall(PassRefPtr<ExecutablePool> executa
peek(regT1);
emitPutToCallFrameHeader(regT1, RegisterFile::ReturnPC);
#if COMPILER(MSVC) || OS(LINUX)
// Calling convention: f(edx, ...);
// Host function signature: f(ExecState*);
move(callFrameRegister, X86Registers::edx);
#else
// Calling convention: f(ecx, edx, ...);
// Host function signature: f(ExecState*);
move(callFrameRegister, X86Registers::ecx);
#endif // COMPILER(MSVC) || OS(LINUX)
subPtr(Imm32(16 - sizeof(void*)), stackPointerRegister); // Align stack after call.
move(regT0, callFrameRegister); // Eagerly restore caller frame register to avoid loading from stack.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment