hotspot/src/share/vm/asm/assembler.hpp
changeset 22872 b6902ee5bc8d
parent 22234 da823d78ad65
parent 22853 308672304981
child 25715 d5a8dbdc5150
equal deleted inserted replaced
22511:fae90cb64946 22872:b6902ee5bc8d
   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; }