2 * This file is part of the LibreOffice project.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 * This file incorporates work covered by the following license notice:
10 * Licensed to the Apache Software Foundation (ASF) under one or more
11 * contributor license agreements. See the NOTICE file distributed
12 * with this work for additional information regarding copyright
13 * ownership. The ASF licenses this file to you under the Apache
14 * License, Version 2.0 (the "License"); you may not use this file
15 * except in compliance with the License. You may obtain a copy of
16 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
21 .globl privateSnippetExecutor
22 .type privateSnippetExecutor, @function
23 privateSnippetExecutor
:
25 #if defined(END_BRANCH_INS_SUPPORT)
34 movq
%r10, -152(%rbp
) # Save (nVtableOffset << 32) + nFunctionIndex
36 movq
%rdi
, -112(%rbp
) # Save GP registers
43 movsd
%xmm0
, -64(%rbp
) # Save FP registers
44 movsd
%xmm1
, -56(%rbp
)
45 movsd
%xmm2
, -48(%rbp
)
46 movsd
%xmm3
, -40(%rbp
)
47 movsd
%xmm4
, -32(%rbp
)
48 movsd
%xmm5
, -24(%rbp
)
49 movsd
%xmm6
, -16(%rbp
)
52 leaq
-144(%rbp
), %r9 # 6th param: sal_uInt64 * pRegisterReturn
53 leaq
16(%rbp
), %r8 # 5rd param: void ** ovrflw
54 leaq
-64(%rbp
), %rcx
# 4th param: void ** fpreg
55 leaq
-112(%rbp
), %rdx
# 3rd param: void ** gpreg
56 movl
-148(%rbp
), %esi
# 2nd param: sal_int32 nVtableOffset
57 movl
-152(%rbp
), %edi
# 1st param: sal_int32 nFunctionIndex
65 movq
-144(%rbp
), %rax
# Potential return value (general case)
66 movq
-136(%rbp
), %rdx
# Potential return value (general case)
67 movq
-144(%rbp
), %xmm0
# Potential return value (general case)
68 movq
-136(%rbp
), %xmm1
# Potential return value (general case)
71 movq
-144(%rbp
), %xmm0
# Return value (special fp and integer case)
72 movq
-136(%rbp
), %rax
# Return value (special fp and integer case)
75 movq
-144(%rbp
), %rax
# Return value (special integer and fp case)
76 movq
-136(%rbp
), %xmm0
# Return value (special integer and fp case)
82 .size privateSnippetExecutor, .-privateSnippetExecutor
83 # see http://refspecs.linuxfoundation.org/LSB_3.0.0/LSB-Core-generic/LSB-Core-generic/ehframechpt.html
84 # for details of the .eh_frame, the "Common Information Entry" and "Frame Description Entry" formats
85 # and http://mentorembedded.github.io/cxx-abi/exceptions.pdf for more info
86 .section .eh_frame,"a",@unwind
88 .long .LECIE1-.LSCIE1 # CIE Length
91 .byte 0x1 # CIE Version
92 .string "zR" # CIE Augmentation String
93 .uleb128 0x1 # CIE Code Alignment Factor
94 .sleb128 -8 # CIE Data Alignment Factor
95 .byte 0x10 # CIE Return Address Register: pseudo "Return Address RA"
96 .uleb128 0x1 # CIE Augmentation Data Length
97 .byte 0x1b # CIE Augmentation Data
98 # CIE Initial Instructions:
99 .byte 0xc # DW_CFA_def_cfa %rsp +8
102 .byte 0x90 # DW_CFA_offset (pseudo "Return Address RA") +1 (i.e., -8)
107 .long .LEFDE1-.LASFDE1 # FDE Length
109 .long .LASFDE1-.Lframe1 # FDE CIE Pointer
110 .long .LFB3-. # FDE PC Begin
111 .long .LFE3-.LFB3 # FDE PC Range
112 .uleb128 0x0 # FDE Augmentation Data Length
113 # FDE Call Frame Instructions:
114 .byte 0x4 # DW_CFA_advance_loc4 .LCFI0
116 .byte 0xe # DW_CFA_def_cfa_offset +16
118 .byte 0x86 # DW_CFA_offset %rbp +2 (i.e., -16)
120 .byte 0x4 # DW_CFA_advance_loc4 .LCFI1
122 .byte 0xd # DW_CFA_def_cfa_register %rbp
126 .section .note.GNU-stack,"",@progbits
127 .section .note.gnu.property,"a"