src/share/vm/ci/ciMethod.cpp

Print this page




1245 // ------------------------------------------------------------------
1246 // ciMethod::print_codes
1247 //
1248 // Print the bytecodes for this method.
1249 void ciMethod::print_codes_on(outputStream* st) {
1250   check_is_loaded();
1251   GUARDED_VM_ENTRY(get_Method()->print_codes_on(st);)
1252 }
1253 
1254 
1255 #define FETCH_FLAG_FROM_VM(flag_accessor) { \
1256   check_is_loaded(); \
1257   VM_ENTRY_MARK; \
1258   return get_Method()->flag_accessor(); \
1259 }
1260 
1261 bool ciMethod::is_empty_method() const {         FETCH_FLAG_FROM_VM(is_empty_method); }
1262 bool ciMethod::is_vanilla_constructor() const {  FETCH_FLAG_FROM_VM(is_vanilla_constructor); }
1263 bool ciMethod::has_loops      () const {         FETCH_FLAG_FROM_VM(has_loops); }
1264 bool ciMethod::has_jsrs       () const {         FETCH_FLAG_FROM_VM(has_jsrs);  }


1265 bool ciMethod::is_accessor    () const {         FETCH_FLAG_FROM_VM(is_accessor); }
1266 bool ciMethod::is_initializer () const {         FETCH_FLAG_FROM_VM(is_initializer); }
1267 
1268 bool ciMethod::is_boxing_method() const {
1269   if (holder()->is_box_klass()) {
1270     switch (intrinsic_id()) {
1271       case vmIntrinsics::_Boolean_valueOf:
1272       case vmIntrinsics::_Byte_valueOf:
1273       case vmIntrinsics::_Character_valueOf:
1274       case vmIntrinsics::_Short_valueOf:
1275       case vmIntrinsics::_Integer_valueOf:
1276       case vmIntrinsics::_Long_valueOf:
1277       case vmIntrinsics::_Float_valueOf:
1278       case vmIntrinsics::_Double_valueOf:
1279         return true;
1280       default:
1281         return false;
1282     }
1283   }
1284   return false;




1245 // ------------------------------------------------------------------
1246 // ciMethod::print_codes
1247 //
1248 // Print the bytecodes for this method.
1249 void ciMethod::print_codes_on(outputStream* st) {
1250   check_is_loaded();
1251   GUARDED_VM_ENTRY(get_Method()->print_codes_on(st);)
1252 }
1253 
1254 
1255 #define FETCH_FLAG_FROM_VM(flag_accessor) { \
1256   check_is_loaded(); \
1257   VM_ENTRY_MARK; \
1258   return get_Method()->flag_accessor(); \
1259 }
1260 
1261 bool ciMethod::is_empty_method() const {         FETCH_FLAG_FROM_VM(is_empty_method); }
1262 bool ciMethod::is_vanilla_constructor() const {  FETCH_FLAG_FROM_VM(is_vanilla_constructor); }
1263 bool ciMethod::has_loops      () const {         FETCH_FLAG_FROM_VM(has_loops); }
1264 bool ciMethod::has_jsrs       () const {         FETCH_FLAG_FROM_VM(has_jsrs);  }
1265 bool ciMethod::is_getter      () const {         FETCH_FLAG_FROM_VM(is_getter); }
1266 bool ciMethod::is_setter      () const {         FETCH_FLAG_FROM_VM(is_setter); }
1267 bool ciMethod::is_accessor    () const {         FETCH_FLAG_FROM_VM(is_accessor); }
1268 bool ciMethod::is_initializer () const {         FETCH_FLAG_FROM_VM(is_initializer); }
1269 
1270 bool ciMethod::is_boxing_method() const {
1271   if (holder()->is_box_klass()) {
1272     switch (intrinsic_id()) {
1273       case vmIntrinsics::_Boolean_valueOf:
1274       case vmIntrinsics::_Byte_valueOf:
1275       case vmIntrinsics::_Character_valueOf:
1276       case vmIntrinsics::_Short_valueOf:
1277       case vmIntrinsics::_Integer_valueOf:
1278       case vmIntrinsics::_Long_valueOf:
1279       case vmIntrinsics::_Float_valueOf:
1280       case vmIntrinsics::_Double_valueOf:
1281         return true;
1282       default:
1283         return false;
1284     }
1285   }
1286   return false;