src/share/vm/oops/constMethodOop.hpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File 6893268 Sdiff src/share/vm/oops

src/share/vm/oops/constMethodOop.hpp

Print this page
rev 1026 : imported patch indy.compiler.inline.patch


 241            "u2 is too small to hold method code size in general");
 242     assert(0 <= size && size <= max_method_code_size, "invalid code size");
 243     _code_size = size;
 244   }
 245 
 246   // linenumber table - note that length is unknown until decompression,
 247   // see class CompressedLineNumberReadStream.
 248   u_char* compressed_linenumber_table() const;         // not preserved by gc
 249   u2* checked_exceptions_length_addr() const;
 250   u2* localvariable_table_length_addr() const;
 251 
 252   // checked exceptions
 253   int checked_exceptions_length() const;
 254   CheckedExceptionElement* checked_exceptions_start() const;
 255 
 256   // localvariable table
 257   int localvariable_table_length() const;
 258   LocalVariableTableElement* localvariable_table_start() const;
 259 
 260   // byte codes





 261   address code_base() const            { return (address) (this+1); }
 262   address code_end() const             { return code_base() + code_size(); }
 263   bool    contains(address bcp) const  { return code_base() <= bcp
 264                                                      && bcp < code_end(); }
 265   // Offset to bytecodes
 266   static ByteSize codes_offset()
 267                             { return in_ByteSize(sizeof(constMethodOopDesc)); }
 268 
 269   // interpreter support
 270   static ByteSize exception_table_offset()
 271                { return byte_offset_of(constMethodOopDesc, _exception_table); }
 272 
 273   // Garbage collection support
 274   oop*  adr_method() const             { return (oop*)&_method;          }
 275   oop*  adr_stackmap_data() const      { return (oop*)&_stackmap_data;   }
 276   oop*  adr_exception_table() const    { return (oop*)&_exception_table; }
 277   bool is_conc_safe() { return _is_conc_safe; }
 278   void set_is_conc_safe(bool v) { _is_conc_safe = v; }
 279 
 280   // Unique id for the method


 241            "u2 is too small to hold method code size in general");
 242     assert(0 <= size && size <= max_method_code_size, "invalid code size");
 243     _code_size = size;
 244   }
 245 
 246   // linenumber table - note that length is unknown until decompression,
 247   // see class CompressedLineNumberReadStream.
 248   u_char* compressed_linenumber_table() const;         // not preserved by gc
 249   u2* checked_exceptions_length_addr() const;
 250   u2* localvariable_table_length_addr() const;
 251 
 252   // checked exceptions
 253   int checked_exceptions_length() const;
 254   CheckedExceptionElement* checked_exceptions_start() const;
 255 
 256   // localvariable table
 257   int localvariable_table_length() const;
 258   LocalVariableTableElement* localvariable_table_start() const;
 259 
 260   // byte codes
 261   void    set_code(address code) {
 262     if (code_size() > 0) {
 263       memcpy(code_base(), code, code_size());
 264     }
 265   }
 266   address code_base() const            { return (address) (this+1); }
 267   address code_end() const             { return code_base() + code_size(); }
 268   bool    contains(address bcp) const  { return code_base() <= bcp
 269                                                      && bcp < code_end(); }
 270   // Offset to bytecodes
 271   static ByteSize codes_offset()
 272                             { return in_ByteSize(sizeof(constMethodOopDesc)); }
 273 
 274   // interpreter support
 275   static ByteSize exception_table_offset()
 276                { return byte_offset_of(constMethodOopDesc, _exception_table); }
 277 
 278   // Garbage collection support
 279   oop*  adr_method() const             { return (oop*)&_method;          }
 280   oop*  adr_stackmap_data() const      { return (oop*)&_stackmap_data;   }
 281   oop*  adr_exception_table() const    { return (oop*)&_exception_table; }
 282   bool is_conc_safe() { return _is_conc_safe; }
 283   void set_is_conc_safe(bool v) { _is_conc_safe = v; }
 284 
 285   // Unique id for the method
src/share/vm/oops/constMethodOop.hpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File