Re-add variable only needed for ARM build and replace references
to removed codeRef variables from QV4::Function.
Change-Id: Id47fe57be2aa653bd8f81996463d970f27427f37
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
JSC::MacroAssemblerCodeRef Assembler::link()
{
#if defined(Q_PROCESSOR_ARM) && !defined(Q_OS_IOS)
+ Label endOfCode = label();
// Let the ARM exception table follow right after that
for (int i = 0, nops = UnwindHelper::unwindInfoSize() / 2; i < nops; ++i)
nop();
if (it == allFunctions.end())
return 0;
- quintptr codeStart = reinterpret_cast<quintptr>(removeThumbBit((*it)->codeRef.code().executableAddress()));
+ quintptr codeStart = reinterpret_cast<quintptr>(removeThumbBit((void*)(*it)->code));
if (key < codeStart || key >= codeStart + (*it)->codeSize)
return 0;
return *it;
QV4::Function *function = QT_PREPEND_NAMESPACE(QV4::lookupFunction(pc));
if (function) {
*entryCount = 1;
- void * codeStart = QT_PREPEND_NAMESPACE(QV4::removeThumbBit(function->codeRef.code().executableAddress()));
+ void * codeStart = QT_PREPEND_NAMESPACE(QV4::removeThumbBit((void*)function->code));
// At the end of the function we store our synthetic exception table entry.
return (char *)codeStart + function->codeSize;
}