src/share/vm/oops/constMethod.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Sdiff src/share/vm/oops

src/share/vm/oops/constMethod.cpp

Print this page




 371   }
 372   if (cm->has_parameter_annotations()) {
 373     assert(has_parameter_annotations(), "should be allocated already");
 374     set_parameter_annotations(cm->parameter_annotations());
 375   }
 376   if (cm->has_type_annotations()) {
 377     assert(has_type_annotations(), "should be allocated already");
 378     set_type_annotations(cm->type_annotations());
 379   }
 380   if (cm->has_default_annotations()) {
 381     assert(has_default_annotations(), "should be allocated already");
 382     set_default_annotations(cm->default_annotations());
 383   }
 384 }
 385 
 386 // Printing
 387 
 388 void ConstMethod::print_on(outputStream* st) const {
 389   ResourceMark rm;
 390   assert(is_constMethod(), "must be constMethod");
 391   st->print_cr(internal_name());
 392   st->print(" - method:       " INTPTR_FORMAT " ", (address)method());
 393   method()->print_value_on(st); st->cr();
 394   if (has_stackmap_table()) {
 395     st->print(" - stackmap data:       ");
 396     stackmap_data()->print_value_on(st);
 397     st->cr();
 398   }
 399 }
 400 
 401 // Short version of printing ConstMethod* - just print the name of the
 402 // method it belongs to.
 403 void ConstMethod::print_value_on(outputStream* st) const {
 404   assert(is_constMethod(), "must be constMethod");
 405   st->print(" const part of method " );
 406   method()->print_value_on(st);
 407 }
 408 
 409 #if INCLUDE_SERVICES
 410 // Size Statistics
 411 void ConstMethod::collect_statistics(KlassSizeStats *sz) const {
 412   int n1, n2, n3;




 371   }
 372   if (cm->has_parameter_annotations()) {
 373     assert(has_parameter_annotations(), "should be allocated already");
 374     set_parameter_annotations(cm->parameter_annotations());
 375   }
 376   if (cm->has_type_annotations()) {
 377     assert(has_type_annotations(), "should be allocated already");
 378     set_type_annotations(cm->type_annotations());
 379   }
 380   if (cm->has_default_annotations()) {
 381     assert(has_default_annotations(), "should be allocated already");
 382     set_default_annotations(cm->default_annotations());
 383   }
 384 }
 385 
 386 // Printing
 387 
 388 void ConstMethod::print_on(outputStream* st) const {
 389   ResourceMark rm;
 390   assert(is_constMethod(), "must be constMethod");
 391   st->print_raw_cr(internal_name());
 392   st->print(" - method:       " INTPTR_FORMAT " ", p2i((address)method()));
 393   method()->print_value_on(st); st->cr();
 394   if (has_stackmap_table()) {
 395     st->print(" - stackmap data:       ");
 396     stackmap_data()->print_value_on(st);
 397     st->cr();
 398   }
 399 }
 400 
 401 // Short version of printing ConstMethod* - just print the name of the
 402 // method it belongs to.
 403 void ConstMethod::print_value_on(outputStream* st) const {
 404   assert(is_constMethod(), "must be constMethod");
 405   st->print(" const part of method " );
 406   method()->print_value_on(st);
 407 }
 408 
 409 #if INCLUDE_SERVICES
 410 // Size Statistics
 411 void ConstMethod::collect_statistics(KlassSizeStats *sz) const {
 412   int n1, n2, n3;


src/share/vm/oops/constMethod.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File