< prev index next >

src/hotspot/share/interpreter/bytecode.hpp

Print this page


 276 
 277 // Abstraction for instanceof
 278 class Bytecode_instanceof: public Bytecode {
 279  public:
 280   Bytecode_instanceof(Method* method, address bcp): Bytecode(method, bcp) { verify(); }
 281   void verify() const { assert(code() == Bytecodes::_instanceof, "check instanceof"); }
 282 
 283   // Returns index
 284   long index() const   { return get_index_u2(Bytecodes::_instanceof); };
 285 };
 286 
 287 class Bytecode_new: public Bytecode {
 288  public:
 289   Bytecode_new(Method* method, address bcp): Bytecode(method, bcp) { verify(); }
 290   void verify() const { assert(java_code() == Bytecodes::_new, "check new"); }
 291 
 292   // Returns index
 293   long index() const   { return get_index_u2(Bytecodes::_new); };
 294 };
 295 









 296 class Bytecode_multianewarray: public Bytecode {
 297  public:
 298   Bytecode_multianewarray(Method* method, address bcp): Bytecode(method, bcp) { verify(); }
 299   void verify() const { assert(java_code() == Bytecodes::_multianewarray, "check new"); }
 300 
 301   // Returns index
 302   long index() const   { return get_index_u2(Bytecodes::_multianewarray); };
 303 };
 304 
 305 class Bytecode_anewarray: public Bytecode {
 306  public:
 307   Bytecode_anewarray(Method* method, address bcp): Bytecode(method, bcp) { verify(); }
 308   void verify() const { assert(java_code() == Bytecodes::_anewarray, "check anewarray"); }
 309 
 310   // Returns index
 311   long index() const   { return get_index_u2(Bytecodes::_anewarray); };
 312 };
 313 
 314 // Abstraction for ldc, ldc_w and ldc2_w
 315 class Bytecode_loadconstant: public Bytecode {




 276 
 277 // Abstraction for instanceof
 278 class Bytecode_instanceof: public Bytecode {
 279  public:
 280   Bytecode_instanceof(Method* method, address bcp): Bytecode(method, bcp) { verify(); }
 281   void verify() const { assert(code() == Bytecodes::_instanceof, "check instanceof"); }
 282 
 283   // Returns index
 284   long index() const   { return get_index_u2(Bytecodes::_instanceof); };
 285 };
 286 
 287 class Bytecode_new: public Bytecode {
 288  public:
 289   Bytecode_new(Method* method, address bcp): Bytecode(method, bcp) { verify(); }
 290   void verify() const { assert(java_code() == Bytecodes::_new, "check new"); }
 291 
 292   // Returns index
 293   long index() const   { return get_index_u2(Bytecodes::_new); };
 294 };
 295 
 296 class Bytecode_defaultvalue: public Bytecode {
 297  public:
 298   Bytecode_defaultvalue(Method* method, address bcp): Bytecode(method, bcp) { verify(); }
 299   void verify() const { assert(java_code() == Bytecodes::_defaultvalue, "check defaultvalue"); }
 300 
 301   // Returns index
 302   long index() const   { return get_index_u2(Bytecodes::_defaultvalue); };
 303 };
 304 
 305 class Bytecode_multianewarray: public Bytecode {
 306  public:
 307   Bytecode_multianewarray(Method* method, address bcp): Bytecode(method, bcp) { verify(); }
 308   void verify() const { assert(java_code() == Bytecodes::_multianewarray, "check new"); }
 309 
 310   // Returns index
 311   long index() const   { return get_index_u2(Bytecodes::_multianewarray); };
 312 };
 313 
 314 class Bytecode_anewarray: public Bytecode {
 315  public:
 316   Bytecode_anewarray(Method* method, address bcp): Bytecode(method, bcp) { verify(); }
 317   void verify() const { assert(java_code() == Bytecodes::_anewarray, "check anewarray"); }
 318 
 319   // Returns index
 320   long index() const   { return get_index_u2(Bytecodes::_anewarray); };
 321 };
 322 
 323 // Abstraction for ldc, ldc_w and ldc2_w
 324 class Bytecode_loadconstant: public Bytecode {


< prev index next >