LibreOffice Module bridges (master) 1
gcc3_solaris_sparc/uno2cpp.cxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#include <sal/config.h>
21
22#include <exception>
23#include <malloc.h>
24#include <typeinfo>
25
26#include <com/sun/star/uno/Exception.hpp>
27#include <com/sun/star/uno/RuntimeException.hpp>
28#include <com/sun/star/uno/genfunc.hxx>
30#include <uno/data.h>
31
32#include "bridge.hxx"
33#include "types.hxx"
34#include "unointerfaceproxy.hxx"
35#include "vtables.hxx"
36
37#include "share.hxx"
38
39#include <sal/alloca.h>
40
41using namespace com::sun::star::uno;
42
43
44namespace
45{
46// The call instruction within the asm section of callVirtualMethod may throw
47// exceptions. So that the compiler handles this correctly, it is important
48// that (a) callVirtualMethod might call dummy_can_throw_anything (although this
49// never happens at runtime), which in turn can throw exceptions, and (b)
50// callVirtualMethod is not inlined at its call site (so that any exceptions are
51// caught which are thrown from the instruction calling callVirtualMethod):
52
53void callVirtualMethod( void * pAdjustedThisPtr,
54 sal_Int32 nVtableIndex,
55 void * pRegisterReturn,
56 typelib_TypeClass eReturnType,
57 sal_Int32 * pStackLongs,
58 sal_Int32 nStackLongs ) __attribute__((noinline));
59
60void callVirtualMethod( void * pAdjustedThisPtr,
61 sal_Int32 nVtableIndex,
62 void * pRegisterReturn,
63 typelib_TypeClass eReturnType,
64 sal_Int32 * pStackLongs,
65 sal_Int32 nStackLongs )
66{
67 // parameter list is mixed list of * and values
68 // reference parameters are pointers
69
70 assert( pStackLongs && pAdjustedThisPtr);
71 static_assert( (sizeof(void *) == 4) &&
72 (sizeof(sal_Int32) == 4), "### unexpected size of int!" );
73 assert(nStackLongs && pStackLongs && "### no stack in callVirtualMethod !");
74
75 // never called
76 if (! pAdjustedThisPtr) CPPU_CURRENT_NAMESPACE::dummy_can_throw_anything("xxx"); // address something
77
78 long o0, o1; // for register returns
79 double f0d;
80 float f0f;
81 volatile long long saveReg[7];
82
83 __asm__ (
84 // save registers
85 "std %%l0, [%4]\n\t"
86 "mov %4, %%l0\n\t"
87 "mov %%l0, %%l1\n\t"
88 "add %%l0, 8, %%l0\n\t"
89 "std %%l2, [%%l0]\n\t"
90 "add %%l0, 8, %%l0\n\t"
91 "std %%l4, [%%l0]\n\t"
92 "add %%l0, 8, %%l0\n\t"
93 "std %%o0, [%%l0]\n\t"
94 "add %%l0, 8, %%l0\n\t"
95 "std %%o2, [%%l0]\n\t"
96 "add %%l0, 8, %%l0\n\t"
97 "std %%o4, [%%l0]\n\t"
98 "add %%l0, 8, %%l0\n\t"
99 "std %%l6, [%%l0]\n\t"
100 "mov %%l1, %%l7\n\t"
101
102 // increase our own stackframe if necessary
103 "mov %%sp, %%l3\n\t" // save stack ptr for readjustment
104
105 "subcc %%i5, 7, %%l0\n\t"
106 "ble .LmoveOn\n\t"
107 "nop\n\t"
108
109 "sll %%l0, 2, %%l0\n\t"
110 "add %%l0, 96, %%l0\n\t"
111 "mov %%sp, %%l1\n\t" // old stack ptr
112 "sub %%sp, %%l0, %%l0\n\t" // future stack ptr
113 "andcc %%l0, 7, %%g0\n\t" // align stack to 8
114 "be .LisAligned\n\t"
115 "nop\n\t"
116 "sub %%l0, 4, %%l0\n"
117 ".LisAligned:\n\t"
118 "mov %%l0, %%o5\n\t" // save newly computed stack ptr
119 "add %%g0, 16, %%o4\n"
120
121 // now copy longs down to save register window
122 // and local variables
123 ".LcopyDown:\n\t"
124 "ld [%%l1], %%l2\n\t"
125 "st %%l2,[%%l0]\n\t"
126 "add %%l0, 4, %%l0\n\t"
127 "add %%l1, 4, %%l1\n\t"
128 "subcc %%o4, 1, %%o4\n\t"
129 "bne .LcopyDown\n\t"
130
131 "mov %%o5, %%sp\n\t" // move new stack ptr (hopefully) atomically
132 // while register window is valid in both spaces
133 // (scheduling might hit in copyDown loop)
134
135 "sub %%i5, 7, %%l0\n\t" // copy parameters past the sixth to stack
136 "add %%i4, 28, %%l1\n\t"
137 "add %%sp, 92, %%l2\n"
138 ".LcopyLong:\n\t"
139 "ld [%%l1], %%o0\n\t"
140 "st %%o0, [%%l2]\n\t"
141 "add %%l1, 4, %%l1\n\t"
142 "add %%l2, 4, %%l2\n\t"
143 "subcc %%l0, 1, %%l0\n\t"
144 "bne .LcopyLong\n\t"
145 "nop\n"
146
147 ".LmoveOn:\n\t"
148 "mov %%i5, %%l0\n\t" // prepare out registers
149 "mov %%i4, %%l1\n\t"
150
151 "ld [%%l1], %%o0\n\t" // prepare complex return ptr
152 "st %%o0, [%%sp+64]\n\t"
153 "sub %%l0, 1, %%l0\n\t"
154 "add %%l1, 4, %%l1\n\t"
155
156 "ld [%%l1], %%o0\n\t"
157 "subcc %%l0, 1, %%l0\n\t"
158 "be .LdoCall\n\t"
159 "nop\n\t"
160
161 "add %%l1, 4, %%l1\n\t"
162 "ld [%%l1], %%o1\n\t"
163 "subcc %%l0, 1, %%l0\n\t"
164 "be .LdoCall\n\t"
165 "nop\n\t"
166
167 "add %%l1, 4, %%l1\n\t"
168 "ld [%%l1], %%o2\n\t"
169 "subcc %%l0, 1, %%l0\n\t"
170 "be .LdoCall\n\t"
171 "nop\n\t"
172
173 "add %%l1, 4, %%l1\n\t"
174 "ld [%%l1], %%o3\n\t"
175 "subcc %%l0, 1, %%l0\n\t"
176 "be .LdoCall\n\t"
177 "nop\n\t"
178
179 "add %%l1, 4, %%l1\n\t"
180 "ld [%%l1], %%o4\n\t"
181 "subcc %%l0, 1, %%l0\n\t"
182 "be .LdoCall\n\t"
183 "nop\n\t"
184
185 "add %%l1, 4, %%l1\n\t"
186 "ld [%%l1], %%o5\n"
187
188 ".LdoCall:\n\t"
189 "ld [%%i0], %%l0\n\t" // get vtable ptr
190
191"sll %%i1, 2, %%l6\n\t"
192// "add %%l6, 8, %%l6\n\t"
193 "add %%l6, %%l0, %%l0\n\t"
194// // vtable has 8byte wide entries,
195// // upper half contains 2 half words, of which the first
196// // is the this ptr patch !
197// // first entry is (or __tf)
198
199// "ldsh [%%l0], %%l6\n\t" // load this ptr patch
200// "add %%l6, %%o0, %%o0\n\t" // patch this ptr
201
202// "add %%l0, 4, %%l0\n\t" // get virtual function ptr
203 "ld [%%l0], %%l0\n\t"
204
205 "ld [%%i4], %%l2\n\t"
206 "subcc %%l2, %%g0, %%l2\n\t"
207 "bne .LcomplexCall\n\t"
208 "nop\n\t"
209 "call %%l0\n\t"
210 "nop\n\t"
211 "ba .LcallReturned\n\t"
212 "nop\n"
213 ".LcomplexCall:\n\t"
214 "call %%l0\n\t"
215 "nop\n\t"
216 "unimp\n"
217
218 ".LcallReturned:\n\t"
219 "mov %%l3, %%sp\n\t" // readjust stack so that our locals are where they belong
220 "st %%o0, %0\n\t" // save possible return registers into our locals
221 "st %%o1, %1\n\t"
222 "std %%f0, %2\n\t"
223 "st %%f0, %3\n\t"
224
225 // restore registers
226 "ldd [%%l7], %%l0\n\t"
227 "add %%l7, 8, %%l7\n\t"
228 "ldd [%%l7], %%l2\n\t"
229 "add %%l7, 8, %%l7\n\t"
230 "ldd [%%l7], %%l4\n\t"
231 "add %%l7, 8, %%l7\n\t"
232 "ldd [%%l7], %%o0\n\t"
233 "add %%l7, 8, %%l7\n\t"
234 "ldd [%%l7], %%o2\n\t"
235 "add %%l7, 8, %%l7\n\t"
236 "ldd [%%l7], %%o4\n\t"
237 "add %%l7, 8, %%l7\n\t"
238 "ldd [%%l7], %%l6\n\t"
239 :
240 "=m"(o0),
241 "=m"(o1),
242 "=m"(f0d),
243 "=m"(f0f),
244 :
245 "r"(&saveReg[0])
246 : "memory"
247 );
248 switch( eReturnType )
249 {
250 case typelib_TypeClass_HYPER:
251 case typelib_TypeClass_UNSIGNED_HYPER:
252 ((long*)pRegisterReturn)[1] = o1;
253 case typelib_TypeClass_LONG:
254 case typelib_TypeClass_UNSIGNED_LONG:
255 case typelib_TypeClass_ENUM:
256 ((long*)pRegisterReturn)[0] = o0;
257 break;
258 case typelib_TypeClass_CHAR:
259 case typelib_TypeClass_SHORT:
260 case typelib_TypeClass_UNSIGNED_SHORT:
261 *(unsigned short*)pRegisterReturn = (unsigned short)o0;
262 break;
263 case typelib_TypeClass_BOOLEAN:
264 case typelib_TypeClass_BYTE:
265 *(unsigned char*)pRegisterReturn = (unsigned char)o0;
266 break;
267 case typelib_TypeClass_FLOAT:
268 *(float*)pRegisterReturn = f0f;
269 break;
270 case typelib_TypeClass_DOUBLE:
271 *(double*)pRegisterReturn = f0d;
272 break;
273 }
274}
275
276static void cpp_call(
279 typelib_TypeDescriptionReference * pReturnTypeRef,
280 sal_Int32 nParams, typelib_MethodParameter * pParams,
281 void * pUnoReturn, void * pUnoArgs[], uno_Any ** ppUnoExc )
282{
283 // max space for: complex ret ptr, this, values|ptr ...
284 char * pCppStack =
285 (char *)alloca( (nParams+2) * sizeof(sal_Int64) );
286 char * pCppStackStart = pCppStack;
287
288 // return
289 typelib_TypeDescription * pReturnTypeDescr = 0;
290 TYPELIB_DANGER_GET( &pReturnTypeDescr, pReturnTypeRef );
291 assert(pReturnTypeDescr);
292
293 void * pCppReturn = 0; // if != 0 && != pUnoReturn, needs reconversion
294
295 if (pReturnTypeDescr)
296 {
297 if (bridges::cpp_uno::shared::isSimpleType( pReturnTypeDescr ))
298 {
299 pCppReturn = pUnoReturn; // direct way for simple types
300 *(void**)pCppStack = NULL;
301 }
302 else
303 {
304 // complex return via ptr
305 pCppReturn = *(void **)pCppStack = (bridges::cpp_uno::shared::relatesToInterfaceType(pReturnTypeDescr )
306 ? alloca( pReturnTypeDescr->nSize )
307 : pUnoReturn); // direct way
308 }
309 pCppStack += sizeof(void*);
310 }
311 // push this
312 void * pAdjustedThisPtr = reinterpret_cast< void ** >(pThis->getCppI())
313 + aVtableSlot.offset;
314 *(void**)pCppStack = pAdjustedThisPtr;
315 pCppStack += sizeof( void* );
316
317 // stack space
318 static_assert(sizeof(void *) == sizeof(sal_Int32), "### unexpected size!");
319 // args
320 void ** pCppArgs = (void **)alloca( 3 * sizeof(void *) * nParams );
321 // indices of values this have to be converted (interface conversion cpp<=>uno)
322 sal_Int32 * pTempIndices = (sal_Int32 *)(pCppArgs + nParams);
323 // type descriptions for reconversions
324 typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
325
326 sal_Int32 nTempIndices = 0;
327
328 for ( sal_Int32 nPos = 0; nPos < nParams; ++nPos )
329 {
330 const typelib_MethodParameter & rParam = pParams[nPos];
331 typelib_TypeDescription * pParamTypeDescr = 0;
332 TYPELIB_DANGER_GET( &pParamTypeDescr, rParam.pTypeRef );
333 if (!rParam.bOut && bridges::cpp_uno::shared::isSimpleType( pParamTypeDescr ))
334 {
335 pCppArgs[ nPos ] = CPPU_CURRENT_NAMESPACE::adjustPointer(pCppStack, pParamTypeDescr );
336
337 switch (pParamTypeDescr->eTypeClass)
338 {
339 case typelib_TypeClass_HYPER:
340 case typelib_TypeClass_UNSIGNED_HYPER:
341 case typelib_TypeClass_DOUBLE:
342 static_assert(sizeof (double) == sizeof (sal_Int64), "boo");
343 *reinterpret_cast< sal_Int32 * >(pCppStack) =
344 *reinterpret_cast< sal_Int32 const * >(pUnoArgs[ nPos ]);
345 pCppStack += sizeof (sal_Int32);
346 *reinterpret_cast< sal_Int32 * >(pCppStack) =
347 *(reinterpret_cast< sal_Int32 const * >(pUnoArgs[ nPos ] ) + 1);
348 break;
349 default:
351 pCppArgs[nPos], pUnoArgs[nPos], pParamTypeDescr,
352 pThis->getBridge()->getUno2Cpp() );
353 break;
354 }
355 // no longer needed
356 TYPELIB_DANGER_RELEASE( pParamTypeDescr );
357 }
358 else // ptr to complex value | ref
359 {
360 if (! rParam.bIn) // is pure out
361 {
362 // cpp out is constructed mem, uno out is not!
364 *(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
365 pParamTypeDescr );
366 pTempIndices[nTempIndices] = nPos; // default constructed for cpp call
367 // will be released at reconversion
368 ppTempParamTypeDescr[nTempIndices++] = pParamTypeDescr;
369 }
370 // is in/inout
372 pParamTypeDescr ))
373 {
375 *(void **)pCppStack = pCppArgs[nPos] = alloca( pParamTypeDescr->nSize ),
376 pUnoArgs[nPos], pParamTypeDescr,
377 pThis->getBridge()->getUno2Cpp() );
378
379 pTempIndices[nTempIndices] = nPos; // has to be reconverted
380 // will be released at reconversion
381 ppTempParamTypeDescr[nTempIndices++] = pParamTypeDescr;
382 }
383 else // direct way
384 {
385 *(void **)pCppStack = pCppArgs[nPos] = pUnoArgs[nPos];
386 // no longer needed
387 TYPELIB_DANGER_RELEASE( pParamTypeDescr );
388 }
389 }
390 pCppStack += sizeof(sal_Int32); // standard parameter length
391 }
392
393 try
394 {
395 int nStackLongs = (pCppStack - pCppStackStart)/sizeof(sal_Int32);
396 assert( !( (pCppStack - pCppStackStart ) & 3) && "UNALIGNED STACK !!! (Please DO panic");
397
398 if( nStackLongs & 1 )
399 // stack has to be 8 byte aligned
400 nStackLongs++;
401 try {
403 pAdjustedThisPtr,
404 aVtableSlot.index,
405 pCppReturn,
406 pReturnTypeDescr->eTypeClass,
407 (sal_Int32 *)pCppStackStart,
408 nStackLongs);
409 } catch (css::uno::Exception &) {
410 throw;
411 } catch (std::exception & e) {
412 throw css::uno::RuntimeException(
413 "C++ code threw " + o3tl::runtimeToOUString(typeid(e).name()) + ": "
414 + o3tl::runtimeToOUString(e.what()));
415 } catch (...) {
416 throw css::uno::RuntimeException("C++ code threw unknown exception");
417 }
418 // NO exception occurred...
419 *ppUnoExc = 0;
420
421 // reconvert temporary params
422 for ( ; nTempIndices--; )
423 {
424 sal_Int32 nIndex = pTempIndices[nTempIndices];
425 typelib_TypeDescription * pParamTypeDescr = ppTempParamTypeDescr[nTempIndices];
426
427 if (pParams[nIndex].bIn)
428 {
429 if (pParams[nIndex].bOut) // inout
430 {
431 uno_destructData( pUnoArgs[nIndex], pParamTypeDescr, 0 ); // destroy uno value
432 uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
433 pThis->getBridge()->getCpp2Uno() );
434 }
435 }
436 else // pure out
437 {
438 uno_copyAndConvertData( pUnoArgs[nIndex], pCppArgs[nIndex], pParamTypeDescr,
439 pThis->getBridge()->getCpp2Uno() );
440 }
441 // destroy temp cpp param => cpp: every param was constructed
442 uno_destructData( pCppArgs[nIndex], pParamTypeDescr, cpp_release );
443
444 TYPELIB_DANGER_RELEASE( pParamTypeDescr );
445 }
446 // return value
447 if (pCppReturn && pUnoReturn != pCppReturn)
448 {
449 uno_copyAndConvertData( pUnoReturn, pCppReturn, pReturnTypeDescr,
450 pThis->getBridge()->getCpp2Uno() );
451 uno_destructData( pCppReturn, pReturnTypeDescr, cpp_release );
452 }
453 }
454 catch( ... )
455 {
456 // get exception
458
459 // temporary params
460 for ( ; nTempIndices--; )
461 {
462 sal_Int32 nIndex = pTempIndices[nTempIndices];
463 // destroy temp cpp param => cpp: every param was constructed
464 uno_destructData( pCppArgs[nIndex], ppTempParamTypeDescr[nTempIndices], cpp_release );
465 TYPELIB_DANGER_RELEASE( ppTempParamTypeDescr[nTempIndices] );
466 }
467 // return type
468 if (pReturnTypeDescr)
469 TYPELIB_DANGER_RELEASE( pReturnTypeDescr );
470 }
471}
472
473}
474
475namespace bridges::cpp_uno::shared {
476
478 uno_Interface * pUnoI, const typelib_TypeDescription * pMemberDescr,
479 void * pReturn, void * pArgs[], uno_Any ** ppException )
480{
481#if defined BRIDGES_DEBUG
482 OString cstr( OUStringToOString( pMemberDescr->pTypeName, RTL_TEXTENCODING_ASCII_US ) );
483 fprintf( stderr, "received dispatch( %s )\n", cstr.getStr() );
484#endif
485
486 // is my surrogate
488 = static_cast< bridges::cpp_uno::shared::UnoInterfaceProxy * >(pUnoI);
489 typelib_InterfaceTypeDescription * pTypeDescr = pThis->pTypeDescr;
490
491 switch (pMemberDescr->eTypeClass)
492 {
493 case typelib_TypeClass_INTERFACE_ATTRIBUTE:
494 {
495 VtableSlot aVtableSlot(
497 reinterpret_cast<
498 typelib_InterfaceAttributeTypeDescription const * >(
499 pMemberDescr)));
500 if (pReturn)
501 {
502 // dependent dispatch
503 cpp_call(
504 pThis, aVtableSlot,
505 ((typelib_InterfaceAttributeTypeDescription *)pMemberDescr)->pAttributeTypeRef,
506 0, 0, // no params
507 pReturn, pArgs, ppException );
508 }
509 else
510 {
511 // is SET
512 typelib_MethodParameter aParam;
513 aParam.pTypeRef =
514 ((typelib_InterfaceAttributeTypeDescription *)pMemberDescr)->pAttributeTypeRef;
515 aParam.bIn = sal_True;
516 aParam.bOut = sal_False;
517
518 typelib_TypeDescriptionReference * pReturnTypeRef = 0;
519 OUString aVoidName("void");
521 &pReturnTypeRef, typelib_TypeClass_VOID, aVoidName.pData );
522
523 // dependent dispatch
524 aVtableSlot.index += 1; // get, then set method
525 cpp_call(
526 pThis, aVtableSlot,
527 pReturnTypeRef,
528 1, &aParam,
529 pReturn, pArgs, ppException );
530
532 }
533
534 break;
535 }
536 case typelib_TypeClass_INTERFACE_METHOD:
537 {
538 VtableSlot aVtableSlot(
540 reinterpret_cast<
541 typelib_InterfaceMethodTypeDescription const * >(
542 pMemberDescr)));
543 switch (aVtableSlot.index)
544 {
545 // standard calls
546 case 1: // acquire uno interface
547 (*pUnoI->acquire)( pUnoI );
548 *ppException = 0;
549 break;
550 case 2: // release uno interface
551 (*pUnoI->release)( pUnoI );
552 *ppException = 0;
553 break;
554 case 0: // queryInterface() opt
555 {
556 typelib_TypeDescription * pTD = 0;
557 TYPELIB_DANGER_GET( &pTD, reinterpret_cast< Type * >( pArgs[0] )->getTypeLibType() );
558 if (pTD)
559 {
560 uno_Interface * pInterface = 0;
561 (*pThis->pBridge->getUnoEnv()->getRegisteredInterface)(
562 pThis->pBridge->getUnoEnv(),
563 (void **)&pInterface, pThis->oid.pData, (typelib_InterfaceTypeDescription *)pTD );
564
565 if (pInterface)
566 {
567 ::uno_any_construct(
568 reinterpret_cast< uno_Any * >( pReturn ),
569 &pInterface, pTD, 0 );
570 (*pInterface->release)( pInterface );
571 TYPELIB_DANGER_RELEASE( pTD );
572 *ppException = 0;
573 break;
574 }
575 TYPELIB_DANGER_RELEASE( pTD );
576 }
577 } // else perform queryInterface()
578 default:
579 // dependent dispatch
580 cpp_call(
581 pThis, aVtableSlot,
582 ((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->pReturnTypeRef,
583 ((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->nParams,
584 ((typelib_InterfaceMethodTypeDescription *)pMemberDescr)->pParams,
585 pReturn, pArgs, ppException );
586 }
587 break;
588 }
589 default:
590 {
591 ::com::sun::star::uno::RuntimeException aExc(
592 "illegal member type description!",
594
595 Type const & rExcType = cppu::UnoType<decltype(aExc)>::get();
596 // binary identical null reference
597 ::uno_type_any_construct( *ppException, &aExc, rExcType.getTypeLibType(), 0 );
598 }
599 }
600}
601
602}
603
604/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
uno_Mapping * getUno2Cpp()
Definition: bridge.hxx:73
uno_ExtEnvironment * getUnoEnv()
Definition: bridge.hxx:70
uno_Mapping * getCpp2Uno()
Definition: bridge.hxx:72
A uno proxy wrapping a cpp interface.
com::sun::star::uno::XInterface * getCppI()
typelib_InterfaceTypeDescription * pTypeDescr
void SAL_CALL uno_destructData(void *pValue, typelib_TypeDescription *pTypeDescr, uno_ReleaseFunc release) SAL_THROW_EXTERN_C()
void SAL_CALL uno_constructData(void *pMem, typelib_TypeDescription *pTypeDescr) SAL_THROW_EXTERN_C()
void SAL_CALL uno_copyAndConvertData(void *pDest, void *pSource, typelib_TypeDescription *pTypeDescr, uno_Mapping *mapping) SAL_THROW_EXTERN_C()
char const * name
register sal_uInt32 r28 __asm__("%r28")
void callVirtualMethod(void *pThis, sal_uInt32 nVtableIndex, void *pRegisterReturn, typelib_TypeDescription *pReturnTypeDescr, bool bRegisterReturn, sal_uInt32 *pStack, sal_uInt32 nStack, sal_uInt32 *pGPR, double *pFPR) __attribute__((noinline))
static void cpp_call(bridges::cpp_uno::shared::UnoInterfaceProxy *pThis, bridges::cpp_uno::shared::VtableSlot aVtableSlot, typelib_TypeDescriptionReference *pReturnTypeRef, sal_Int32 nParams, typelib_MethodParameter *pParams, void *pUnoReturn, void *pUnoArgs[], uno_Any **ppUnoExc)
sal_Int32 nIndex
sal_uInt16 nPos
struct _typelib_TypeDescription typelib_TypeDescription
Definition: msvc/except.hxx:52
struct _uno_Any uno_Any
Definition: msvc/except.hxx:31
void dummy_can_throw_anything(char const *)
void fillUnoException(uno_Any *pExc, uno_Mapping *pCpp2Uno)
char * adjustPointer(char *pIn, typelib_TypeDescription *pType)
void unoInterfaceProxyDispatch(uno_Interface *pUnoI, const typelib_TypeDescription *pMemberDescr, void *pReturn, void *pArgs[], uno_Any **ppException)
VtableSlot getVtableSlot(typelib_InterfaceAttributeTypeDescription const *ifcMember)
Calculates the vtable slot associated with an interface attribute member.
Definition: vtables.cxx:132
bool isSimpleType(typelib_TypeClass typeClass)
Determines whether a type is a "simple" type (VOID, BOOLEAN, BYTE, SHORT, UNSIGNED SHORT,...
Definition: types.cxx:28
bool relatesToInterfaceType(typelib_TypeDescription const *type)
Determines whether a type relates to an interface type (is itself an interface type,...
Definition: types.cxx:41
Type
OUString runtimeToOUString(char const *runtimeString)
OString OUStringToOString(std::u16string_view str, ConnectionSettings const *settings)
Represents a vtable slot of a C++ class.
Definition: vtables.hxx:60
sal_Int32 index
The index within the vtable.
Definition: vtables.hxx:76
sal_Int32 offset
The offset of the vtable.
Definition: vtables.hxx:68
void SAL_CALL typelib_typedescriptionreference_new(typelib_TypeDescriptionReference **ppTDR, typelib_TypeClass eTypeClass, rtl_uString *pTypeName) SAL_THROW_EXTERN_C()
void SAL_CALL typelib_typedescriptionreference_release(typelib_TypeDescriptionReference *pRef) SAL_THROW_EXTERN_C()
#define sal_True
#define sal_False
unsigned _Unwind_Word __attribute__((__mode__(__word__)))
Definition: unwind-cxx.h:45