/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* Platform specific code to invoke XPCOM methods on native objects */
__asm__ ( ".text\n\t" /* alignment here seems unimportant here; this was 16, now it's 2 which
is what xptcstubs uses. */ ".align 2\n\t" ".globl _NS_InvokeByIndex\n\t" "_NS_InvokeByIndex:\n\t" "pushl %ebp\n\t" "movl %esp, %ebp\n\t" "movl 0x10(%ebp), %eax\n\t" "leal 0(,%eax,8),%edx\n\t"
/* set up call frame for method. */ "subl %edx, %esp\n\t"/* make room for params. */ /* Align to maximum x86 data size: 128 bits == 16 bytes == XMM register size. *ThisistoavoidprotectionfaultswhereSSE+alignmentofstackpointer *isassumedandrequired,e.g.byGCC4's-ftree-vectorizeoption.
*/ "andl $0xfffffff0, %esp\n\t"/* drop(?) stack ptr to 128-bit align */ /* $esp should be aligned to a 16-byte boundary here (note we include an *additional4bytesinalaterpushinstruction).Thiswillensure$ebp *inthefunctioncalledbelowisalignedtoa0x8boundary.SSEinstructions *likemovapd/movdqaexpectmemoryoperandtobealignedona16-byte *boundary.TheGCCcompilerwillgeneratethememoryoperandusing$ebp *withan8-byteoffset.
*/ "subl $0xc, %esp\n\t"/* lower again; push/call below will re-align */ "movl %esp, %ecx\n\t"/* ecx = d */ "movl 8(%ebp), %edx\n\t"/* edx = this */ "pushl %edx\n\t"/* push this. esp % 16 == 0 */
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.