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
f7087b0e
Kaydet (Commit)
f7087b0e
authored
May 11, 2012
tarafından
Pedro Giffuni
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Update i386 bridge code on FreeBSD to USE_DOUBLE_MMAP.
üst
755d5acc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
cpp2uno.cxx
bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx
+9
-9
No files found.
bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx
Dosyayı görüntüle @
f7087b0e
...
...
@@ -355,7 +355,7 @@ extern "C" typedef void (*PrivateSnippetExecutor)();
int
const
codeSnippetSize
=
16
;
unsigned
char
*
codeSnippet
(
unsigned
char
*
code
,
sal_Int32
functionIndex
,
sal_Int32
vtableOffset
,
unsigned
char
*
code
,
sal_
PtrDiff
writetoexecdiff
,
sal_
Int32
functionIndex
,
sal_Int32
vtableOffset
,
typelib_TypeClass
returnTypeClass
)
{
if
(
!
bridges
::
cpp_uno
::
shared
::
isSimpleType
(
returnTypeClass
))
{
...
...
@@ -401,7 +401,7 @@ unsigned char * codeSnippet(
// jmp privateSnippetExecutor:
*
p
++
=
0xE9
;
*
reinterpret_cast
<
sal_Int32
*
>
(
p
)
=
((
unsigned
char
*
)
exec
)
-
p
-
sizeof
(
sal_Int32
);
=
((
unsigned
char
*
)
exec
)
-
p
-
sizeof
(
sal_Int32
)
-
writetoexecdiff
;
p
+=
sizeof
(
sal_Int32
);
OSL_ASSERT
(
p
-
code
<=
codeSnippetSize
);
return
code
+
codeSnippetSize
;
...
...
@@ -434,7 +434,7 @@ bridges::cpp_uno::shared::VtableFactory::initializeBlock(
}
unsigned
char
*
bridges
::
cpp_uno
::
shared
::
VtableFactory
::
addLocalFunctions
(
Slot
**
slots
,
unsigned
char
*
code
,
Slot
**
slots
,
unsigned
char
*
code
,
sal_PtrDiff
writetoexecdiff
,
typelib_InterfaceTypeDescription
const
*
type
,
sal_Int32
functionOffset
,
sal_Int32
functionCount
,
sal_Int32
vtableOffset
)
{
...
...
@@ -447,9 +447,9 @@ unsigned char * bridges::cpp_uno::shared::VtableFactory::addLocalFunctions(
switch
(
member
->
eTypeClass
)
{
case
typelib_TypeClass_INTERFACE_ATTRIBUTE
:
// Getter:
(
s
++
)
->
fn
=
code
;
(
s
++
)
->
fn
=
code
+
writetoexecdiff
;
code
=
codeSnippet
(
code
,
functionOffset
++
,
vtableOffset
,
code
,
writetoexecdiff
,
functionOffset
++
,
vtableOffset
,
reinterpret_cast
<
typelib_InterfaceAttributeTypeDescription
*
>
(
member
)
->
pAttributeTypeRef
->
eTypeClass
);
// Setter:
...
...
@@ -457,17 +457,17 @@ unsigned char * bridges::cpp_uno::shared::VtableFactory::addLocalFunctions(
typelib_InterfaceAttributeTypeDescription
*
>
(
member
)
->
bReadOnly
)
{
(
s
++
)
->
fn
=
code
;
(
s
++
)
->
fn
=
code
+
writetoexecdiff
;
code
=
codeSnippet
(
code
,
functionOffset
++
,
vtableOffset
,
code
,
writetoexecdiff
,
functionOffset
++
,
vtableOffset
,
typelib_TypeClass_VOID
);
}
break
;
case
typelib_TypeClass_INTERFACE_METHOD
:
(
s
++
)
->
fn
=
code
;
(
s
++
)
->
fn
=
code
+
writetoexecdiff
;
code
=
codeSnippet
(
code
,
functionOffset
++
,
vtableOffset
,
code
,
writetoexecdiff
,
functionOffset
++
,
vtableOffset
,
reinterpret_cast
<
typelib_InterfaceMethodTypeDescription
*
>
(
member
)
->
pReturnTypeRef
->
eTypeClass
);
break
;
...
...
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