equal
deleted
inserted
replaced
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; } |