hotspot/src/share/vm/ci/ciMethod.cpp
changeset 46727 6e4a84748e2c
parent 46630 75aa3e39d02c
equal deleted inserted replaced
46726:7801367e3cc9 46727:6e4a84748e2c
    66 
    66 
    67 // ------------------------------------------------------------------
    67 // ------------------------------------------------------------------
    68 // ciMethod::ciMethod
    68 // ciMethod::ciMethod
    69 //
    69 //
    70 // Loaded method.
    70 // Loaded method.
    71 ciMethod::ciMethod(methodHandle h_m, ciInstanceKlass* holder) :
    71 ciMethod::ciMethod(const methodHandle& h_m, ciInstanceKlass* holder) :
    72   ciMetadata(h_m()),
    72   ciMetadata(h_m()),
    73   _holder(holder)
    73   _holder(holder)
    74 {
    74 {
    75   assert(h_m() != NULL, "no null method");
    75   assert(h_m() != NULL, "no null method");
    76 
    76 
   977 // ------------------------------------------------------------------
   977 // ------------------------------------------------------------------
   978 // ciMethod::ensure_method_data
   978 // ciMethod::ensure_method_data
   979 //
   979 //
   980 // Generate new MethodData* objects at compile time.
   980 // Generate new MethodData* objects at compile time.
   981 // Return true if allocation was successful or no MDO is required.
   981 // Return true if allocation was successful or no MDO is required.
   982 bool ciMethod::ensure_method_data(methodHandle h_m) {
   982 bool ciMethod::ensure_method_data(const methodHandle& h_m) {
   983   EXCEPTION_CONTEXT;
   983   EXCEPTION_CONTEXT;
   984   if (is_native() || is_abstract() || h_m()->is_accessor()) {
   984   if (is_native() || is_abstract() || h_m()->is_accessor()) {
   985     return true;
   985     return true;
   986   }
   986   }
   987   if (h_m()->method_data() == NULL) {
   987   if (h_m()->method_data() == NULL) {