summaryrefslogtreecommitdiff
path: root/bridges
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2008-04-24 15:27:25 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2008-04-24 15:27:25 +0000
commit470221cf8e744da9bf0c89181a289d45e7a0bc03 (patch)
tree20e3c1f648fa70437323c67e794621013c377a0d /bridges
parent7aaf415e153ff4595d3c2c8459f61c2367d67104 (diff)
INTEGRATION: CWS sb85 (1.1.2); FILE ADDED
2008/03/12 10:54:15 sb 1.1.2.1: #i86117# Solaris SPARC64 bridge
Diffstat (limited to 'bridges')
-rw-r--r--bridges/source/cpp_uno/cc5_solaris_sparc64/vtableslotcall.s59
1 files changed, 59 insertions, 0 deletions
diff --git a/bridges/source/cpp_uno/cc5_solaris_sparc64/vtableslotcall.s b/bridges/source/cpp_uno/cc5_solaris_sparc64/vtableslotcall.s
new file mode 100644
index 000000000000..d1feb26f3548
--- /dev/null
+++ b/bridges/source/cpp_uno/cc5_solaris_sparc64/vtableslotcall.s
@@ -0,0 +1,59 @@
+/*************************************************************************
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: vtableslotcall.s,v $
+ *
+ * $Revision: 1.2 $
+ *
+ * last change: $Author: ihi $ $Date: 2008-04-24 16:27:25 $
+ *
+ * The Contents of this file are made available subject to
+ * the terms of GNU Lesser General Public License Version 2.1.
+ *
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2008 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ ************************************************************************/
+
+.global vtableCall
+
+.global vtableSlotCall
+.align 8
+vtableSlotCall:
+ ! save %sp, -176, %sp already done in code snippet
+ stx %i0, [%fp + 2047 + 128]
+ stx %i1, [%fp + 2047 + 136]
+ stx %i2, [%fp + 2047 + 144]
+ stx %i3, [%fp + 2047 + 152]
+ stx %i4, [%fp + 2047 + 160]
+ stx %i5, [%fp + 2047 + 168]
+ ! %o0: functionIndex, stored by code snippet
+ ! %o1: vtableOffset, stored by code snippet
+ call vtableCall
+ add %fp, 2047 + 128, %o2
+ ldx [%fp + 2047 + 128], %i0
+ ldx [%fp + 2047 + 136], %i1
+ ldx [%fp + 2047 + 144], %i2
+ ldx [%fp + 2047 + 152], %i3
+ ret
+ restore
+.size vtableSlotCall, . - vtableSlotCall
+.type vtableSlotCall, #function