1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
4 * This file is part of the LibreOffice project.
6 * This Source Code Form is subject to the terms of the Mozilla Public
7 * License, v. 2.0. If a copy of the MPL was not distributed with this
8 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 * This file incorporates work covered by the following license notice:
12 * Licensed to the Apache Software Foundation (ASF) under one or more
13 * contributor license agreements. See the NOTICE file distributed
14 * with this work for additional information regarding copyright
15 * ownership. The ASF licenses this file to you under the Apache
16 * License, Version 2.0 (the "License"); you may not use this file
17 * except in compliance with the License. You may obtain a copy of
18 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
21 #include <sal/config.h>
25 void privateSnippetExecutor()
31 " movq %r10, -152(%rbp) # Save (nVtableOffset << 32) + nFunctionIndex\n"
33 " movq %rdi, -112(%rbp) # Save GP registers\n"
34 " movq %rsi, -104(%rbp)\n"
35 " movq %rdx, -96(%rbp)\n"
36 " movq %rcx, -88(%rbp)\n"
37 " movq %r8 , -80(%rbp)\n"
38 " movq %r9 , -72(%rbp)\n"
40 " movsd %xmm0, -64(%rbp) # Save FP registers\n"
41 " movsd %xmm1, -56(%rbp)\n"
42 " movsd %xmm2, -48(%rbp)\n"
43 " movsd %xmm3, -40(%rbp)\n"
44 " movsd %xmm4, -32(%rbp)\n"
45 " movsd %xmm5, -24(%rbp)\n"
46 " movsd %xmm6, -16(%rbp)\n"
47 " movsd %xmm7, -8(%rbp)\n"
49 " leaq -144(%rbp), %r9 # 6th param: sal_uInt64 * pRegisterReturn\n"
50 " leaq 16(%rbp), %r8 # 5rd param: void ** ovrflw\n"
51 " leaq -64(%rbp), %rcx # 4th param: void ** fpreg\n"
52 " leaq -112(%rbp), %rdx # 3rd param: void ** gpreg\n"
53 " movl -148(%rbp), %esi # 2nd param: sal_int32 nVtableOffset\n"
54 " movl -152(%rbp), %edi # 1st param: sal_int32 nFunctionIndex\n"
56 " call _cpp_vtable_call\n"
58 " cmp $10, %rax # typelib_TypeClass_FLOAT\n"
60 " cmp $11, %rax # typelib_TypeClass_DOUBLE\n"
63 " movq -144(%rbp), %rax # Return value (int case)\n"
64 " movq -136(%rbp), %rdx # Return value (int case)\n"
65 " movq -144(%rbp), %xmm0 # Return value (int case)\n"
66 " movq -136(%rbp), %xmm1 # Return value (int case)\n"
70 " movlpd -144(%rbp), %xmm0 # Return value (float/double case)\n"
76 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */