Mercurial > hg > graal-compiler
comparison src/share/vm/asm/assembler.hpp @ 14489:f460c6926af7
Merge
author | ehelin |
---|---|
date | Tue, 25 Feb 2014 11:02:11 +0100 |
parents | abec000618bf |
children | 4ca6dc0799b6 |
comparison
equal
deleted
inserted
replaced
14488:60fd6d24f49f | 14489:f460c6926af7 |
---|---|
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; } |