Mercurial > hg > truffle
comparison src/share/vm/c1/c1_LIRAssembler.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 | e522a00b91aa f98f5d48f511 |
comparison
equal
deleted
inserted
replaced
6794:8ae8f9dd7099 | 6795:7eca5de9e0b6 |
---|---|
771 | 771 |
772 case lir_throw: | 772 case lir_throw: |
773 throw_op(op->in_opr1(), op->in_opr2(), op->info()); | 773 throw_op(op->in_opr1(), op->in_opr2(), op->info()); |
774 break; | 774 break; |
775 | 775 |
776 case lir_xadd: | |
777 case lir_xchg: | |
778 atomic_op(op->code(), op->in_opr1(), op->in_opr2(), op->result_opr(), op->tmp1_opr()); | |
779 break; | |
780 | |
776 default: | 781 default: |
777 Unimplemented(); | 782 Unimplemented(); |
778 break; | 783 break; |
779 } | 784 } |
780 } | 785 } |