< prev index next >

src/hotspot/share/oops/method.hpp

Print this page
rev 56755 : 8233159: Method::result_type should use calculated value in constMethod
Reviewed-by: lfoltan


 591                           { return constMethod()->checked_exceptions_start(); }
 592 
 593   // localvariable table
 594   bool has_localvariable_table() const
 595                           { return constMethod()->has_localvariable_table(); }
 596   int localvariable_table_length() const
 597                         { return constMethod()->localvariable_table_length(); }
 598   LocalVariableTableElement* localvariable_table_start() const
 599                          { return constMethod()->localvariable_table_start(); }
 600 
 601   bool has_linenumber_table() const
 602                               { return constMethod()->has_linenumber_table(); }
 603   u_char* compressed_linenumber_table() const
 604                        { return constMethod()->compressed_linenumber_table(); }
 605 
 606   // method holder (the Klass* holding this method)
 607   InstanceKlass* method_holder() const         { return constants()->pool_holder(); }
 608 
 609   void compute_size_of_parameters(Thread *thread); // word size of parameters (receiver if any + arguments)
 610   Symbol* klass_name() const;                    // returns the name of the method holder
 611   BasicType result_type() const;                 // type of the method result
 612   bool is_returning_oop() const                  { BasicType r = result_type(); return is_reference_type(r); }
 613   bool is_returning_fp() const                   { BasicType r = result_type(); return (r == T_FLOAT || r == T_DOUBLE); }
 614 
 615   // Checked exceptions thrown by this method (resolved to mirrors)
 616   objArrayHandle resolved_checked_exceptions(TRAPS) { return resolved_checked_exceptions_impl(this, THREAD); }
 617 
 618   // Access flags
 619   bool is_public() const                         { return access_flags().is_public();      }
 620   bool is_private() const                        { return access_flags().is_private();     }
 621   bool is_protected() const                      { return access_flags().is_protected();   }
 622   bool is_package_private() const                { return !is_public() && !is_private() && !is_protected(); }
 623   bool is_static() const                         { return access_flags().is_static();      }
 624   bool is_final() const                          { return access_flags().is_final();       }
 625   bool is_synchronized() const                   { return access_flags().is_synchronized();}
 626   bool is_native() const                         { return access_flags().is_native();      }
 627   bool is_abstract() const                       { return access_flags().is_abstract();    }
 628   bool is_strict() const                         { return access_flags().is_strict();      }
 629   bool is_synthetic() const                      { return access_flags().is_synthetic();   }
 630 
 631   // returns true if contains only return operation




 591                           { return constMethod()->checked_exceptions_start(); }
 592 
 593   // localvariable table
 594   bool has_localvariable_table() const
 595                           { return constMethod()->has_localvariable_table(); }
 596   int localvariable_table_length() const
 597                         { return constMethod()->localvariable_table_length(); }
 598   LocalVariableTableElement* localvariable_table_start() const
 599                          { return constMethod()->localvariable_table_start(); }
 600 
 601   bool has_linenumber_table() const
 602                               { return constMethod()->has_linenumber_table(); }
 603   u_char* compressed_linenumber_table() const
 604                        { return constMethod()->compressed_linenumber_table(); }
 605 
 606   // method holder (the Klass* holding this method)
 607   InstanceKlass* method_holder() const         { return constants()->pool_holder(); }
 608 
 609   void compute_size_of_parameters(Thread *thread); // word size of parameters (receiver if any + arguments)
 610   Symbol* klass_name() const;                    // returns the name of the method holder
 611   BasicType result_type() const                  { return constMethod()->result_type(); }
 612   bool is_returning_oop() const                  { BasicType r = result_type(); return is_reference_type(r); }
 613   bool is_returning_fp() const                   { BasicType r = result_type(); return (r == T_FLOAT || r == T_DOUBLE); }
 614 
 615   // Checked exceptions thrown by this method (resolved to mirrors)
 616   objArrayHandle resolved_checked_exceptions(TRAPS) { return resolved_checked_exceptions_impl(this, THREAD); }
 617 
 618   // Access flags
 619   bool is_public() const                         { return access_flags().is_public();      }
 620   bool is_private() const                        { return access_flags().is_private();     }
 621   bool is_protected() const                      { return access_flags().is_protected();   }
 622   bool is_package_private() const                { return !is_public() && !is_private() && !is_protected(); }
 623   bool is_static() const                         { return access_flags().is_static();      }
 624   bool is_final() const                          { return access_flags().is_final();       }
 625   bool is_synchronized() const                   { return access_flags().is_synchronized();}
 626   bool is_native() const                         { return access_flags().is_native();      }
 627   bool is_abstract() const                       { return access_flags().is_abstract();    }
 628   bool is_strict() const                         { return access_flags().is_strict();      }
 629   bool is_synthetic() const                      { return access_flags().is_synthetic();   }
 630 
 631   // returns true if contains only return operation


< prev index next >