equal
deleted
inserted
replaced
569 return true; |
569 return true; |
570 } |
570 } |
571 |
571 |
572 const ImmutableOopMap* ImmutableOopMapSet::find_map_at_offset(int pc_offset) const { |
572 const ImmutableOopMap* ImmutableOopMapSet::find_map_at_offset(int pc_offset) const { |
573 ImmutableOopMapPair* pairs = get_pairs(); |
573 ImmutableOopMapPair* pairs = get_pairs(); |
574 ImmutableOopMapPair* last = NULL; |
574 |
575 |
575 int i; |
576 for (int i = 0; i < _count; ++i) { |
576 for (i = 0; i < _count; ++i) { |
577 if (pairs[i].pc_offset() >= pc_offset) { |
577 if (pairs[i].pc_offset() >= pc_offset) { |
578 last = &pairs[i]; |
|
579 break; |
578 break; |
580 } |
579 } |
581 } |
580 } |
|
581 ImmutableOopMapPair* last = &pairs[i]; |
582 |
582 |
583 assert(last->pc_offset() == pc_offset, "oopmap not found"); |
583 assert(last->pc_offset() == pc_offset, "oopmap not found"); |
584 return last->get_from(this); |
584 return last->get_from(this); |
585 } |
585 } |
586 |
586 |