src/share/vm/c1/c1_InstructionPrinter.cpp

Print this page
rev 3419 : 7023898: Intrinsify AtomicLongFieldUpdater.getAndIncrement()
Summary: use shorter instruction sequences for atomic add and atomic exchange when possible.
Reviewed-by:


 799   print_unsafe_raw_op(x, "UnsafePutRaw");
 800   output()->print(", value ");
 801   print_value(x->value());
 802   output()->put(')');
 803 }
 804 
 805 
 806 void InstructionPrinter::do_UnsafeGetObject(UnsafeGetObject* x) {
 807   print_unsafe_object_op(x, "UnsafeGetObject");
 808   output()->put(')');
 809 }
 810 
 811 
 812 void InstructionPrinter::do_UnsafePutObject(UnsafePutObject* x) {
 813   print_unsafe_object_op(x, "UnsafePutObject");
 814   output()->print(", value ");
 815   print_value(x->value());
 816   output()->put(')');
 817 }
 818 






 819 
 820 void InstructionPrinter::do_UnsafePrefetchRead(UnsafePrefetchRead* x) {
 821   print_unsafe_object_op(x, "UnsafePrefetchRead");
 822   output()->put(')');
 823 }
 824 
 825 
 826 void InstructionPrinter::do_UnsafePrefetchWrite(UnsafePrefetchWrite* x) {
 827   print_unsafe_object_op(x, "UnsafePrefetchWrite");
 828   output()->put(')');
 829 }
 830 
 831 void InstructionPrinter::do_ProfileCall(ProfileCall* x) {
 832   output()->print("profile ");
 833   print_value(x->recv());
 834   output()->print(" %s.%s", x->method()->holder()->name()->as_utf8(), x->method()->name()->as_utf8());
 835   if (x->known_holder() != NULL) {
 836     output()->print(", ");
 837     print_klass(x->known_holder());
 838   }




 799   print_unsafe_raw_op(x, "UnsafePutRaw");
 800   output()->print(", value ");
 801   print_value(x->value());
 802   output()->put(')');
 803 }
 804 
 805 
 806 void InstructionPrinter::do_UnsafeGetObject(UnsafeGetObject* x) {
 807   print_unsafe_object_op(x, "UnsafeGetObject");
 808   output()->put(')');
 809 }
 810 
 811 
 812 void InstructionPrinter::do_UnsafePutObject(UnsafePutObject* x) {
 813   print_unsafe_object_op(x, "UnsafePutObject");
 814   output()->print(", value ");
 815   print_value(x->value());
 816   output()->put(')');
 817 }
 818 
 819 void InstructionPrinter::do_UnsafeGetAndSetObject(UnsafeGetAndSetObject* x) {
 820   print_unsafe_object_op(x, x->is_add()?"UnsafeGetAndSetObject (add)":"UnsafeGetAndSetObject");
 821   output()->print(", value ");
 822   print_value(x->value());
 823   output()->put(')');
 824 }
 825 
 826 void InstructionPrinter::do_UnsafePrefetchRead(UnsafePrefetchRead* x) {
 827   print_unsafe_object_op(x, "UnsafePrefetchRead");
 828   output()->put(')');
 829 }
 830 
 831 
 832 void InstructionPrinter::do_UnsafePrefetchWrite(UnsafePrefetchWrite* x) {
 833   print_unsafe_object_op(x, "UnsafePrefetchWrite");
 834   output()->put(')');
 835 }
 836 
 837 void InstructionPrinter::do_ProfileCall(ProfileCall* x) {
 838   output()->print("profile ");
 839   print_value(x->recv());
 840   output()->print(" %s.%s", x->method()->holder()->name()->as_utf8(), x->method()->name()->as_utf8());
 841   if (x->known_holder() != NULL) {
 842     output()->print(", ");
 843     print_klass(x->known_holder());
 844   }