src/share/vm/asm/assembler.hpp

changeset 6487
15120a36272d
parent 4767
a5de0cc2f91c
child 6503
a9becfeecd1b
equal deleted inserted replaced
6486:b0133e4187d3 6487:15120a36272d
202 202
203 protected: 203 protected:
204 CodeSection* _code_section; // section within the code buffer 204 CodeSection* _code_section; // section within the code buffer
205 OopRecorder* _oop_recorder; // support for relocInfo::oop_type 205 OopRecorder* _oop_recorder; // support for relocInfo::oop_type
206 206
207 public:
207 // Code emission & accessing 208 // Code emission & accessing
208 address addr_at(int pos) const { return code_section()->start() + pos; } 209 address addr_at(int pos) const { return code_section()->start() + pos; }
209 210
210 211 protected:
211 // This routine is called with a label is used for an address. 212 // This routine is called with a label is used for an address.
212 // Labels and displacements truck in offsets, but target must return a PC. 213 // Labels and displacements truck in offsets, but target must return a PC.
213 address target(Label& L) { return code_section()->target(L, pc()); } 214 address target(Label& L) { return code_section()->target(L, pc()); }
214 215
215 bool is8bit(int x) const { return -0x80 <= x && x < 0x80; } 216 bool is8bit(int x) const { return -0x80 <= x && x < 0x80; }

mercurial