Lines Matching refs:p
181 uint8_t *p; /* Pointer to next address in obj.space. */ member
195 uint8_t *p = ctx->p; in zend_gdbjit_strz() local
196 uint32_t ofs = (uint32_t)(p - ctx->startp); in zend_gdbjit_strz()
198 *p++ = (uint8_t)*str; in zend_gdbjit_strz()
200 ctx->p = p; in zend_gdbjit_strz()
207 uint8_t *p = ctx->p; in zend_gdbjit_uleb128() local
209 *p++ = (uint8_t)((v & 0x7f) | 0x80); in zend_gdbjit_uleb128()
210 *p++ = (uint8_t)v; in zend_gdbjit_uleb128()
211 ctx->p = p; in zend_gdbjit_uleb128()
217 uint8_t *p = ctx->p; in zend_gdbjit_sleb128() local
219 *p++ = (uint8_t)((v & 0x7f) | 0x80); in zend_gdbjit_sleb128()
220 *p++ = (uint8_t)(v & 0x7f); in zend_gdbjit_sleb128()
221 ctx->p = p; in zend_gdbjit_sleb128()
228 *ctx->p++ = '\0'; in zend_gdbjit_secthdr()
266 *ctx->p++ = '\0'; in zend_gdbjit_symtab()
281 #define SECTALIGN(p, a) \ argument
282 ((p) = (uint8_t *)(((uintptr_t)(p) + ((a)-1)) & ~(uintptr_t)((a)-1)))
285 #define DB(x) (*p++ = (x))
286 #define DI8(x) (*(int8_t *)p = (x), p++)
287 #define DU16(x) (*(uint16_t *)p = (x), p += 2)
288 #define DU32(x) (*(uint32_t *)p = (x), p += 4)
289 #define DADDR(x) (*(uintptr_t *)p = (x), p += sizeof(uintptr_t))
290 #define DUV(x) (ctx->p = p, zend_gdbjit_uleb128(ctx, (x)), p = ctx->p)
291 #define DSV(x) (ctx->p = p, zend_gdbjit_sleb128(ctx, (x)), p = ctx->p)
292 #define DSTR(str) (ctx->p = p, zend_gdbjit_strz(ctx, (str)), p = ctx->p)
293 #define DALIGNNOP(s) while ((uintptr_t)p & ((s)-1)) *p++ = DW_CFA_nop
295 { uint32_t *szp_##name = (uint32_t *)p; p += 4; stmt \
296 *szp_##name = (uint32_t)((p-(uint8_t *)szp_##name)-4); }
300 uint8_t *p = ctx->p; in zend_gdbjit_ehframe() local
301 uint8_t *framep = p; in zend_gdbjit_ehframe()
319 DU32((uint32_t)(p-framep)); /* Offset to CIE Pointer. */ in zend_gdbjit_ehframe()
336 ctx->p = p; in zend_gdbjit_ehframe()
341 uint8_t *p = ctx->p; in zend_gdbjit_debuginfo() local
355 ctx->p = p; in zend_gdbjit_debuginfo()
360 uint8_t *p = ctx->p; in zend_gdbjit_debugabbrev() local
377 ctx->p = p; in zend_gdbjit_debugabbrev()
384 uint8_t *p = ctx->p; in zend_gdbjit_debugline() local
409 ctx->p = p; in zend_gdbjit_debugline()
431 ctx->startp = ctx->p; in zend_gdbjit_initsect()
432 ctx->obj.sect[sect].ofs = (uintptr_t)((char *)ctx->p - (char *)&ctx->obj); in zend_gdbjit_initsect()
434 ctx->obj.sect[sect].size = (uintptr_t)(ctx->p - ctx->startp); in zend_gdbjit_initsect()
447 ctx->p = obj->space; in zend_gdbjit_buildobj()
453 SECTALIGN(ctx->p, sizeof(uintptr_t)); in zend_gdbjit_buildobj()
455 ctx->objsize = (size_t)((char *)ctx->p - (char *)obj); in zend_gdbjit_buildobj()