< prev index next >

src/hotspot/share/oops/method.hpp

Print this page




 257   // code size
 258   int code_size() const                  { return constMethod()->code_size(); }
 259 
 260   // method size in words
 261   int method_size() const                { return sizeof(Method)/wordSize + ( is_native() ? 2 : 0 ); }
 262 
 263   // constant pool for Klass* holding this method
 264   ConstantPool* constants() const              { return constMethod()->constants(); }
 265   void set_constants(ConstantPool* c)          { constMethod()->set_constants(c); }
 266 
 267   // max stack
 268   // return original max stack size for method verification
 269   int  verifier_max_stack() const                { return constMethod()->max_stack(); }
 270   int           max_stack() const                { return constMethod()->max_stack() + extra_stack_entries(); }
 271   void      set_max_stack(int size)              {        constMethod()->set_max_stack(size); }
 272 
 273   // max locals
 274   int  max_locals() const                        { return constMethod()->max_locals(); }
 275   void set_max_locals(int size)                  { constMethod()->set_max_locals(size); }
 276 
 277   // value type buffering
 278   void initialize_max_vt_buffer();
 279   int max_vt_buffer() const                      { return _max_vt_buffer; }
 280   void set_max_vt_buffer(int size)               { _max_vt_buffer = size; }
 281 
 282 
 283   int highest_comp_level() const;
 284   void set_highest_comp_level(int level);
 285   int highest_osr_comp_level() const;
 286   void set_highest_osr_comp_level(int level);
 287 
 288 #if COMPILER2_OR_JVMCI
 289   // Count of times method was exited via exception while interpreting
 290   void interpreter_throwout_increment(TRAPS) {
 291     MethodCounters* mcs = get_method_counters(CHECK);
 292     if (mcs != NULL) {
 293       mcs->interpreter_throwout_increment();
 294     }
 295   }
 296 #endif
 297 
 298   int  interpreter_throwout_count() const        {
 299     MethodCounters* mcs = method_counters();
 300     if (mcs == NULL) {
 301       return 0;
 302     } else {




 257   // code size
 258   int code_size() const                  { return constMethod()->code_size(); }
 259 
 260   // method size in words
 261   int method_size() const                { return sizeof(Method)/wordSize + ( is_native() ? 2 : 0 ); }
 262 
 263   // constant pool for Klass* holding this method
 264   ConstantPool* constants() const              { return constMethod()->constants(); }
 265   void set_constants(ConstantPool* c)          { constMethod()->set_constants(c); }
 266 
 267   // max stack
 268   // return original max stack size for method verification
 269   int  verifier_max_stack() const                { return constMethod()->max_stack(); }
 270   int           max_stack() const                { return constMethod()->max_stack() + extra_stack_entries(); }
 271   void      set_max_stack(int size)              {        constMethod()->set_max_stack(size); }
 272 
 273   // max locals
 274   int  max_locals() const                        { return constMethod()->max_locals(); }
 275   void set_max_locals(int size)                  { constMethod()->set_max_locals(size); }
 276 






 277   int highest_comp_level() const;
 278   void set_highest_comp_level(int level);
 279   int highest_osr_comp_level() const;
 280   void set_highest_osr_comp_level(int level);
 281 
 282 #if COMPILER2_OR_JVMCI
 283   // Count of times method was exited via exception while interpreting
 284   void interpreter_throwout_increment(TRAPS) {
 285     MethodCounters* mcs = get_method_counters(CHECK);
 286     if (mcs != NULL) {
 287       mcs->interpreter_throwout_increment();
 288     }
 289   }
 290 #endif
 291 
 292   int  interpreter_throwout_count() const        {
 293     MethodCounters* mcs = method_counters();
 294     if (mcs == NULL) {
 295       return 0;
 296     } else {


< prev index next >