Mercurial > hg > graal-compiler
comparison graal/com.oracle.graal.hotspot.amd64/src/com/oracle/graal/hotspot/amd64/AMD64HotSpotLIRGenerator.java @ 9980:8369c5780c77
Refactoring
author | Christos Kotselidis <christos.kotselidis@oracle.com> |
---|---|
date | Mon, 10 Jun 2013 13:04:38 +0200 |
parents | 70ffc60dbce7 |
children | 1db97e3de11c |
comparison
equal
deleted
inserted
replaced
9979:70ffc60dbce7 | 9980:8369c5780c77 |
---|---|
459 } | 459 } |
460 | 460 |
461 RegisterValue raxRes = AMD64.rax.asValue(kind); | 461 RegisterValue raxRes = AMD64.rax.asValue(kind); |
462 emitMove(raxRes, expected); | 462 emitMove(raxRes, expected); |
463 if (runtime().config.useCompressedOops && node.compress()) { | 463 if (runtime().config.useCompressedOops && node.compress()) { |
464 assert kind == Kind.Object; | |
465 Variable scratch = newVariable(Kind.Long); | 464 Variable scratch = newVariable(Kind.Long); |
466 append(new CompareAndSwapCompressedOp(raxRes, address, raxRes, newValue, scratch, runtime().config.narrowOopBase, runtime().config.narrowOopShift, runtime().config.logMinObjAlignment)); | 465 append(new CompareAndSwapCompressedOp(raxRes, address, raxRes, newValue, scratch, runtime().config.narrowOopBase, runtime().config.narrowOopShift, runtime().config.logMinObjAlignment)); |
467 } else { | 466 } else { |
468 append(new CompareAndSwapOp(raxRes, address, raxRes, newValue)); | 467 append(new CompareAndSwapOp(raxRes, address, raxRes, newValue)); |
469 } | 468 } |