/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
switch (pReturnTypeDescr->eTypeClass)
{ case typelib_TypeClass_HYPER: case typelib_TypeClass_UNSIGNED_HYPER:
pRegisterReturn[1] = ret1; case typelib_TypeClass_LONG: case typelib_TypeClass_UNSIGNED_LONG: case typelib_TypeClass_ENUM: case typelib_TypeClass_CHAR: case typelib_TypeClass_SHORT: case typelib_TypeClass_UNSIGNED_SHORT: case typelib_TypeClass_BOOLEAN: case typelib_TypeClass_BYTE:
pRegisterReturn[0] = ret0; break; case typelib_TypeClass_FLOAT:
*(float*)pRegisterReturn = fret; break; case typelib_TypeClass_DOUBLE:
*(double*)pRegisterReturn = dret; break; case typelib_TypeClass_STRUCT: case typelib_TypeClass_EXCEPTION:
{ if (bRegisterReturn)
{
pRegisterReturn[0] = ret0;
pRegisterReturn[1] = ret1;
} break;
} default: break;
}
}
//Moved callVirtual into this .cxx so that I can do this and get gcc to not //touch r28 without having to learn any more pa-risc assembly than is //strictly necessary register sal_uInt32 r28 __asm__("%r28");
#if OSL_DEBUG_LEVEL > 2
fprintf(stderr, "this is %p\n", pGPR[0]); for (int i = 0; i < hppa::MAX_GPR_REGS ; ++i)
fprintf(stderr, "normal reg %d is %d %x\n", i, pGPR[i], pGPR[i]);
for (int i = 0; i < hppa::MAX_SSE_REGS ; ++i)
fprintf(stderr, "float reg %d is %x\n", i, pFPR[i]);
for (int i = 0; i < nStack; ++i)
fprintf(stderr, "stack bytes are %x\n", pStack[i]); #endif
//Always reserve 4 slots, and align to 8 bytes
sal_uInt32 nStackBytes = ( ( nStack + 4 + 1 ) >> 1 ) * 8;
__builtin_alloca(nStackBytes);
sal_uInt32 *stack = sp-8; int o = -5; for (sal_uInt32 i = 0; i < nStack; ++i, --o)
stack[o] = pStack[i];
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.