equal
deleted
inserted
replaced
171 bool contains(address pc) const { return pc >= _start && pc < _end; } |
171 bool contains(address pc) const { return pc >= _start && pc < _end; } |
172 bool contains2(address pc) const { return pc >= _start && pc <= _end; } |
172 bool contains2(address pc) const { return pc >= _start && pc <= _end; } |
173 bool allocates(address pc) const { return pc >= _start && pc < _limit; } |
173 bool allocates(address pc) const { return pc >= _start && pc < _limit; } |
174 bool allocates2(address pc) const { return pc >= _start && pc <= _limit; } |
174 bool allocates2(address pc) const { return pc >= _start && pc <= _limit; } |
175 |
175 |
176 void set_end(address pc) { assert(allocates2(pc), err_msg("not in CodeBuffer memory: " INTPTR_FORMAT " <= " INTPTR_FORMAT " <= " INTPTR_FORMAT, p2i(_start), p2i(pc), p2i(_limit))); _end = pc; } |
176 void set_end(address pc) { assert(allocates2(pc), "not in CodeBuffer memory: " INTPTR_FORMAT " <= " INTPTR_FORMAT " <= " INTPTR_FORMAT, p2i(_start), p2i(pc), p2i(_limit)); _end = pc; } |
177 void set_mark(address pc) { assert(contains2(pc), "not in codeBuffer"); |
177 void set_mark(address pc) { assert(contains2(pc), "not in codeBuffer"); |
178 _mark = pc; } |
178 _mark = pc; } |
179 void set_mark_off(int offset) { assert(contains2(offset+_start),"not in codeBuffer"); |
179 void set_mark_off(int offset) { assert(contains2(offset+_start),"not in codeBuffer"); |
180 _mark = offset + _start; } |
180 _mark = offset + _start; } |
181 void set_mark() { _mark = _end; } |
181 void set_mark() { _mark = _end; } |