[webkit-dev] want to port JIT to MIPS - which calling convention is used here?
x yz
lastguy at yahoo.com
Fri Feb 27 15:40:21 PST 2009
Hi,
Thanks for your help in advance:)
in JITPropertyAccess.cpp:
if (transitionWillNeedStorageRealloc(oldStructure, newStructure)) {
pop(X86::ebx); ///pop return address, why? for exception?
#if PLATFORM(X86_64) ///which convention is this?
move(Imm32(newStructure->propertyStorageCapacity()), regT1); //edx
move(Imm32(oldStructure->propertyStorageCapacity()), X86::esi);
move(regT0, X86::edi);
callTarget = call();
#else ///__cdecl, yet how can I know resizePropertyStorage() use __cdecl?
push(Imm32(newStructure->propertyStorageCapacity()));
push(Imm32(oldStructure->propertyStorageCapacity()));
push(regT0);
callTarget = call();
addPtr(Imm32(3 * sizeof(void*)), X86::esp); ///clean stack
#endif
More information about the webkit-dev
mailing list