Lines Matching refs:offset
57 * - BB base as object file offset
60 UInt bb_hash_idx(obj_node* obj, PtrdiffT offset, UInt size)
62 return (((Addr)obj) + offset) % size;
89 new_idx = bb_hash_idx(curr->obj, curr->offset, new_size);
121 static BB* new_bb(obj_node* obj, PtrdiffT offset,
138 bb->offset = offset;
146 bb->sect_kind = VG_(DebugInfo_sect_kind)(NULL, 0, offset + obj->offset);
154 idx = bb_hash_idx(obj, offset, bbs.size);
179 BB* lookup_bb(obj_node* obj, PtrdiffT offset)
184 idx = bb_hash_idx(obj, offset, bbs.size);
188 if ((bb->obj == obj) && (bb->offset == offset)) break;
193 obj->name, offset, bb);
202 PtrdiffT offset;
207 /* Update symbol offset in object if remapped */
208 /* FIXME (or at least check this) 2008 Feb 19: 'offset' is
210 offset = di ? VG_(DebugInfo_get_text_bias)(di):0;
211 if (obj->offset != offset) {
217 /* Size should be the same, and offset diff == start diff */
219 CLG_ASSERT( obj->start - start == obj->offset - offset );
220 obj->offset = offset;
237 * looking up a BB keyed by (obj_node, file offset).
252 bb = lookup_bb(obj, addr - obj->offset);
265 obj->name, obj->offset,
266 addr - obj->offset, n_instrs);
269 bb->obj->name, bb->obj->offset,
270 bb->offset, bb->instr_count);
280 bb = new_bb(obj, addr - obj->offset, n_instrs, n_jmps, cjmp_inverted);
295 PtrdiffT offset = addr - obj->offset;
297 idx = bb_hash_idx(obj, offset, bbs.size);
304 if ((bb->obj == obj) && (bb->offset == offset)) break;
311 obj->name, offset);
332 obj->name, offset, bb, bb->bbcc_list);