Mercurial > hg > graal-compiler
diff src/share/vm/c1/c1_InstructionPrinter.cpp @ 6795:7eca5de9e0b6
7023898: Intrinsify AtomicLongFieldUpdater.getAndIncrement()
Summary: use shorter instruction sequences for atomic add and atomic exchange when possible.
Reviewed-by: kvn, jrose
author | roland |
---|---|
date | Thu, 20 Sep 2012 16:49:17 +0200 |
parents | da91efe96a93 |
children | 203f64878aab |
line wrap: on
line diff
--- a/src/share/vm/c1/c1_InstructionPrinter.cpp Wed Sep 19 16:50:26 2012 -0700 +++ b/src/share/vm/c1/c1_InstructionPrinter.cpp Thu Sep 20 16:49:17 2012 +0200 @@ -831,6 +831,12 @@ output()->put(')'); } +void InstructionPrinter::do_UnsafeGetAndSetObject(UnsafeGetAndSetObject* x) { + print_unsafe_object_op(x, x->is_add()?"UnsafeGetAndSetObject (add)":"UnsafeGetAndSetObject"); + output()->print(", value "); + print_value(x->value()); + output()->put(')'); +} void InstructionPrinter::do_UnsafePrefetchRead(UnsafePrefetchRead* x) { print_unsafe_object_op(x, "UnsafePrefetchRead");