hotspot/src/share/vm/oops/constMethodOop.hpp
changeset 4567 7fc02fbe5c7a
parent 2105 347008ce7984
child 5547 f4b087cbb361
equal deleted inserted replaced
4566:b363f6ef4068 4567:7fc02fbe5c7a
   256   // localvariable table
   256   // localvariable table
   257   int localvariable_table_length() const;
   257   int localvariable_table_length() const;
   258   LocalVariableTableElement* localvariable_table_start() const;
   258   LocalVariableTableElement* localvariable_table_start() const;
   259 
   259 
   260   // byte codes
   260   // byte codes
       
   261   void    set_code(address code) {
       
   262     if (code_size() > 0) {
       
   263       memcpy(code_base(), code, code_size());
       
   264     }
       
   265   }
   261   address code_base() const            { return (address) (this+1); }
   266   address code_base() const            { return (address) (this+1); }
   262   address code_end() const             { return code_base() + code_size(); }
   267   address code_end() const             { return code_base() + code_size(); }
   263   bool    contains(address bcp) const  { return code_base() <= bcp
   268   bool    contains(address bcp) const  { return code_base() <= bcp
   264                                                      && bcp < code_end(); }
   269                                                      && bcp < code_end(); }
   265   // Offset to bytecodes
   270   // Offset to bytecodes