Print this page
rev 1083 : [mq]: indy.compiler.inline.patch

Split Close
Expand all
Collapse all
          --- old/src/share/vm/oops/constMethodOop.hpp
          +++ new/src/share/vm/oops/constMethodOop.hpp
↓ open down ↓ 250 lines elided ↑ open up ↑
 251  251  
 252  252    // checked exceptions
 253  253    int checked_exceptions_length() const;
 254  254    CheckedExceptionElement* checked_exceptions_start() const;
 255  255  
 256  256    // localvariable table
 257  257    int localvariable_table_length() const;
 258  258    LocalVariableTableElement* localvariable_table_start() const;
 259  259  
 260  260    // byte codes
      261 +  void    set_code(address code) {
      262 +    if (code_size() > 0) {
      263 +      memcpy(code_base(), code, code_size());
      264 +    }
      265 +  }
 261  266    address code_base() const            { return (address) (this+1); }
 262  267    address code_end() const             { return code_base() + code_size(); }
 263  268    bool    contains(address bcp) const  { return code_base() <= bcp
 264  269                                                       && bcp < code_end(); }
 265  270    // Offset to bytecodes
 266  271    static ByteSize codes_offset()
 267  272                              { return in_ByteSize(sizeof(constMethodOopDesc)); }
 268  273  
 269  274    // interpreter support
 270  275    static ByteSize exception_table_offset()
↓ open down ↓ 28 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX