Lines Matching refs:intptr_t
117 extern "C" void ARMCompilationCallbackC(intptr_t StubAddr) {
119 intptr_t NewVal = (intptr_t)JITCompilerFunction((void*)StubAddr);
129 *(intptr_t *)StubAddr = 0xe51ff004; // ldr pc, [pc, #-4]
130 *(intptr_t *)(StubAddr+4) = NewVal;
146 MachineCodeEmitter::emitWordLEInto(Cur, (intptr_t)Ptr);
149 addIndirectSymAddr(Ptr, (intptr_t)PtrAddr);
165 if (Fn != (void*)(intptr_t)ARMCompilationCallback) {
169 intptr_t LazyPtr = getIndirectSymAddr(Fn);
172 LazyPtr= (intptr_t)emitGlobalValueIndirectSym((GlobalValue*)F, Fn, JCE);
188 JCE.emitWordLE(LazyPtr - (intptr_t(Addr)+4+8)); // func - (L_func$scv+8)
201 JCE.emitWordLE((intptr_t)Fn); // addr of function
229 JCE.emitWordLE((intptr_t)ARMCompilationCallback);
239 intptr_t ARMJITInfo::resolveRelocDestAddr(MachineRelocation *MR) const {
243 return (intptr_t)(MR->getResultPointer());
246 return (intptr_t)(MR->getResultPointer()) - MR->getConstantVal();
259 intptr_t Addr = (intptr_t)(MR->getResultPointer());
273 intptr_t ResultPtr = resolveRelocDestAddr(MR);
280 ResultPtr = ResultPtr - (intptr_t)RelocPos - 8;
283 *((intptr_t*)RelocPos) |= 1 << ARMII::U_BitShift;
286 *((intptr_t*)RelocPos) &= ~(1 << ARMII::U_BitShift);
293 *((intptr_t*)RelocPos) |= ResultPtr;
295 *((intptr_t*)RelocPos) |=
300 ResultPtr = ResultPtr - (intptr_t)RelocPos - 8;
303 *((intptr_t*)RelocPos) |= 1 << ARMII::U_BitShift;
306 *((intptr_t*)RelocPos) &= ~(1 << ARMII::U_BitShift);
308 *((intptr_t*)RelocPos) |= 1 << 22;
314 *((intptr_t*)RelocPos) |= (ARM_AM::getSOImmValRot((unsigned)SoImmVal) >> 1)
316 *((intptr_t*)RelocPos) |= ARM_AM::getSOImmValImm((unsigned)SoImmVal);
318 *((intptr_t*)RelocPos) |=
326 *((intptr_t*)RelocPos) |= (intptr_t)ResultPtr;
335 ResultPtr = ResultPtr - (intptr_t)RelocPos - 8;
338 *((intptr_t*)RelocPos) |= ResultPtr;
343 ResultPtr = ResultPtr - (intptr_t)RelocPos - 8;
344 *((intptr_t*)RelocPos) |= ResultPtr;
349 *((intptr_t*)RelocPos) |= ResultPtr & 0xFFF;
350 *((intptr_t*)RelocPos) |= ((ResultPtr >> 12) & 0xF) << 16;
355 *((intptr_t*)RelocPos) |= ResultPtr & 0xFFF;
356 *((intptr_t*)RelocPos) |= ((ResultPtr >> 12) & 0xF) << 16;