From c2bf79067510ea55240674ab42250d66fa75058f Mon Sep 17 00:00:00 2001 From: "benjamin%smedbergs.us" Date: Tue, 30 Jan 2007 21:44:30 +0000 Subject: [PATCH] Bug 368482 - Alpha Linux updates from xptcall changes, patch by falk@debian.org, r=me --- .../src/md/unix/xptcinvoke_linux_alpha.cpp | 18 +++++++++--------- .../src/md/unix/xptcstubs_linux_alpha.cpp | 12 +++--------- 2 files changed, 12 insertions(+), 18 deletions(-) diff --git a/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_linux_alpha.cpp b/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_linux_alpha.cpp index 9d807794e18..d5584b8d5b8 100644 --- a/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_linux_alpha.cpp +++ b/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_linux_alpha.cpp @@ -93,21 +93,21 @@ invoke_copy_to_stack(PRUint64* d, PRUint32 paramCount, nsXPTCVariant* s) } /* - * XPTC_PUBLIC_API(nsresult) - * XPTC_InvokeByIndex(nsISupports* that, PRUint32 methodIndex, - * PRUint32 paramCount, nsXPTCVariant* params) + * EXPORT_XPCOM_API(nsresult) + * NS_InvokeByIndex(nsISupports* that, PRUint32 methodIndex, + * PRUint32 paramCount, nsXPTCVariant* params) */ __asm__( - "#### XPTC_InvokeByIndex ####\n" + "#### NS_InvokeByIndex ####\n" ".text\n\t" ".align 5\n\t" - ".globl XPTC_InvokeByIndex\n\t" - ".ent XPTC_InvokeByIndex\n" -"XPTC_InvokeByIndex:\n\t" + ".globl NS_InvokeByIndex\n\t" + ".ent NS_InvokeByIndex\n" +"NS_InvokeByIndex:\n\t" ".frame $15,32,$26,0\n\t" ".mask 0x4008000,-32\n\t" "ldgp $29,0($27)\n" -"$XPTC_InvokeByIndex..ng:\n\t" +"$NS_InvokeByIndex..ng:\n\t" "subq $30,32,$30\n\t" "stq $26,0($30)\n\t" "stq $15,8($30)\n\t" @@ -177,5 +177,5 @@ __asm__( "ldq $15,8($30)\n\t" "addq $30,32,$30\n\t" "ret $31,($26),1\n\t" - ".end XPTC_InvokeByIndex" + ".end NS_InvokeByIndex" ); diff --git a/xpcom/reflect/xptcall/src/md/unix/xptcstubs_linux_alpha.cpp b/xpcom/reflect/xptcall/src/md/unix/xptcstubs_linux_alpha.cpp index 5a2502121df..57004b4156d 100644 --- a/xpcom/reflect/xptcall/src/md/unix/xptcstubs_linux_alpha.cpp +++ b/xpcom/reflect/xptcall/src/md/unix/xptcstubs_linux_alpha.cpp @@ -39,6 +39,7 @@ /* Implement shared vtbl methods. */ #include "xptcprivate.h" +#include "xptiprivate.h" /* Prototype specifies unmangled function name and disables unused warning */ static nsresult @@ -53,7 +54,6 @@ PrepareAndDispatch(nsXPTCStubBase* self, uint32 methodIndex, PRUint64* args) nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT]; nsXPTCMiniVariant* dispatchParams = NULL; - nsIInterfaceInfo* iface_info = NULL; const nsXPTMethodInfo* info; PRUint8 paramCount; PRUint8 i; @@ -61,11 +61,7 @@ PrepareAndDispatch(nsXPTCStubBase* self, uint32 methodIndex, PRUint64* args) NS_ASSERTION(self,"no self"); - self->GetInterfaceInfo(&iface_info); - NS_ASSERTION(iface_info,"no interface info"); - - iface_info->GetMethodInfo(PRUint16(methodIndex), &info); - NS_ASSERTION(info,"no interface info"); + self->mEntry->GetMethodInfo(PRUint16(methodIndex), &info); paramCount = info->GetParamCount(); @@ -125,9 +121,7 @@ PrepareAndDispatch(nsXPTCStubBase* self, uint32 methodIndex, PRUint64* args) } } - result = self->CallMethod((PRUint16)methodIndex, info, dispatchParams); - - NS_RELEASE(iface_info); + result = self->mOuter->CallMethod((PRUint16)methodIndex, info, dispatchParams); if(dispatchParams != paramBuffer) delete [] dispatchParams;