1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 28 .global callVirtualMethod 29 .align 8 30 callVirtualMethod: 31 ! %o0: unsigned long function 32 ! %o1: unsigned long * stack 33 ! %o2: sal_Int32 excess 34 add %o2, 176, %o3 35 neg %o3 36 save %sp, %o3, %sp 37 ldx [%i1 + 0 * 8], %o0 38 ldx [%i1 + 1 * 8], %o1 39 ldx [%i1 + 2 * 8], %o2 40 ldx [%i1 + 3 * 8], %o3 41 tst %i2 42 bz,pt %xcc, 1f 43 ldx [%i1 + 4 * 8], %o4 44 add %i1, 6 * 8, %l0 45 add %sp, 2047 + 176, %l1 46 0: deccc 8, %i2 47 ldx [%l0 + %i2], %l2 48 bnz,pt %xcc, 0b 49 stx %l2, [%l1 + %i2] 50 1: call %i0 51 ldx [%i1 + 5 * 8], %o5 52 stx %o0, [%i1 + 0 * 8] 53 stx %o1, [%i1 + 1 * 8] 54 stx %o2, [%i1 + 2 * 8] 55 stx %o3, [%i1 + 3 * 8] 56 ret 57 restore 58 .size callVirtualMethod, . - callVirtualMethod 59 .type callVirtualMethod, #function 60