Lines Matching refs:offset

323   // Advance the point, noting the offset we'll have to record.
324 csize_t offset = at - locs_point();
331 if (req >= locs_limit() || offset >= relocInfo::offset_limit()) {
332 req += (uint)offset / (uint)relocInfo::offset_limit();
341 // If the offset is giant, emit filler relocs, of type 'none', but
342 // each carrying the largest possible offset, to advance the locs_point.
343 while (offset >= relocInfo::offset_limit()) {
346 offset -= filler_relocInfo().addr_offset();
349 // If it's a simple reloc with no data, we'll just write (rtype | offset).
350 (*end) = relocInfo(rtype, offset, format);
544 // (Don't bother to improve this by editing the first reloc's offset.)
909 void CodeBuffer::block_comment(intptr_t offset, const char * comment) {
910 _strings.add_comment(offset, comment);
932 CodeString(const char * string, intptr_t offset = -1)
933 : _next(NULL), _offset(offset) {
938 intptr_t offset() const { assert(_offset >= 0, "offset for non comment?"); return _offset; }
959 CodeString* CodeStrings::find(intptr_t offset) const {
961 while (a != NULL && a->offset() != offset) {
968 CodeString* CodeStrings::find_last(intptr_t offset) const {
969 CodeString* a = find(offset);
972 while (((c = a->next_comment()) != NULL) && (c->offset() == offset)) {
979 void CodeStrings::add_comment(intptr_t offset, const char * comment) {
980 CodeString* c = new CodeString(comment, offset);
981 CodeString* inspos = (_strings == NULL) ? NULL : find_last(offset);
984 // insert after already existing comments with same offset
988 // no comments with such offset, yet. Insert before anything else.
998 void CodeStrings::print_block_comment(outputStream* stream, intptr_t offset) const {
1000 CodeString* c = find(offset);
1001 while (c && c->offset() == offset) {