Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
4c5bbbf0
Kaydet (Commit)
4c5bbbf0
authored
Agu 21, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Related: rhbz#1125588 get as far as privateSnippetExecutor
Change-Id: Icc386083ecd9faefbedebbb9d2496a4eddfa0b2b
üst
8daebc0c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
cpp2uno.cxx
bridges/source/cpp_uno/gcc3_linux_powerpc64/cpp2uno.cxx
+17
-0
No files found.
bridges/source/cpp_uno/gcc3_linux_powerpc64/cpp2uno.cxx
Dosyayı görüntüle @
4c5bbbf0
...
@@ -588,7 +588,11 @@ extern "C" void privateSnippetExecutor( ... )
...
@@ -588,7 +588,11 @@ extern "C" void privateSnippetExecutor( ... )
}
}
}
}
#if _CALL_ELF == 2
const
int
codeSnippetSize
=
32
;
#else
const
int
codeSnippetSize
=
24
;
const
int
codeSnippetSize
=
24
;
#endif
unsigned
char
*
codeSnippet
(
unsigned
char
*
code
,
sal_Int32
nFunctionIndex
,
sal_Int32
nVtableOffset
,
unsigned
char
*
codeSnippet
(
unsigned
char
*
code
,
sal_Int32
nFunctionIndex
,
sal_Int32
nVtableOffset
,
bool
simpleRetType
)
bool
simpleRetType
)
...
@@ -603,9 +607,22 @@ unsigned char * codeSnippet( unsigned char * code, sal_Int32 nFunctionIndex, sa
...
@@ -603,9 +607,22 @@ unsigned char * codeSnippet( unsigned char * code, sal_Int32 nFunctionIndex, sa
if
(
!
simpleRetType
)
if
(
!
simpleRetType
)
nOffsetAndIndex
|=
0x80000000
;
nOffsetAndIndex
|=
0x80000000
;
#if _CALL_ELF == 2
unsigned
int
*
raw
=
(
unsigned
int
*
)
&
code
[
0
];
raw
[
0
]
=
0xe96c0018
;
/* 0: ld 11,2f-0b(12) */
raw
[
1
]
=
0xe98c0010
;
/* ld 12,1f-0b(12) */
raw
[
2
]
=
0x7d8903a6
;
/* mtctr 12 */
raw
[
3
]
=
0x4e800420
;
/* bctr */
/* 1: .quad function_addr */
/* 2: .quad context */
*
(
void
**
)
&
raw
[
4
]
=
(
void
*
)
privateSnippetExecutor
;
*
(
void
**
)
&
raw
[
6
]
=
(
void
*
)
nOffsetAndIndex
;
#else
void
**
raw
=
(
void
**
)
&
code
[
0
];
void
**
raw
=
(
void
**
)
&
code
[
0
];
memcpy
(
raw
,
(
char
*
)
privateSnippetExecutor
,
16
);
memcpy
(
raw
,
(
char
*
)
privateSnippetExecutor
,
16
);
raw
[
2
]
=
(
void
*
)
nOffsetAndIndex
;
raw
[
2
]
=
(
void
*
)
nOffsetAndIndex
;
#endif
#if OSL_DEBUG_LEVEL > 2
#if OSL_DEBUG_LEVEL > 2
fprintf
(
stderr
,
"in: offset/index is %x %x %d, %lx
\n
"
,
fprintf
(
stderr
,
"in: offset/index is %x %x %d, %lx
\n
"
,
nFunctionIndex
,
nVtableOffset
,
!
simpleRetType
,
raw
[
2
]);
nFunctionIndex
,
nVtableOffset
,
!
simpleRetType
,
raw
[
2
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment