comparison graal/com.oracle.graal.hotspot.amd64/src/com/oracle/graal/hotspot/amd64/AMD64HotSpotCompare.java @ 18262:f7d45e2426d4

converted HotSpotObjectConstant to an interface
author Doug Simon <doug.simon@oracle.com>
date Wed, 05 Nov 2014 21:07:59 +0100
parents 9619ba4daf4c
children 7acff34abbf7
comparison
equal deleted inserted replaced
18261:d66c79acfeac 18262:f7d45e2426d4
53 assert isRegister(x); 53 assert isRegister(x);
54 if (HotSpotCompressedNullConstant.COMPRESSED_NULL.equals(y)) { 54 if (HotSpotCompressedNullConstant.COMPRESSED_NULL.equals(y)) {
55 // compressed null 55 // compressed null
56 masm.testl(asRegister(x), asRegister(x)); 56 masm.testl(asRegister(x), asRegister(x));
57 } else if (y instanceof HotSpotObjectConstant) { 57 } else if (y instanceof HotSpotObjectConstant) {
58 if (HotSpotObjectConstant.isCompressed(y)) { 58 if (HotSpotObjectConstantImpl.isCompressed(y)) {
59 // compressed oop 59 // compressed oop
60 crb.recordInlineDataInCode(y); 60 crb.recordInlineDataInCode(y);
61 masm.cmpl(asRegister(x), 0xDEADDEAD); 61 masm.cmpl(asRegister(x), 0xDEADDEAD);
62 } else { 62 } else {
63 // uncompressed oop 63 // uncompressed oop
94 protected void emitMemAccess(CompilationResultBuilder crb, AMD64MacroAssembler masm) { 94 protected void emitMemAccess(CompilationResultBuilder crb, AMD64MacroAssembler masm) {
95 if (HotSpotCompressedNullConstant.COMPRESSED_NULL.equals(y)) { 95 if (HotSpotCompressedNullConstant.COMPRESSED_NULL.equals(y)) {
96 // compressed null 96 // compressed null
97 masm.cmpl(address.toAddress(), 0); 97 masm.cmpl(address.toAddress(), 0);
98 } else if (y instanceof HotSpotObjectConstant) { 98 } else if (y instanceof HotSpotObjectConstant) {
99 if (HotSpotObjectConstant.isCompressed(y) && crb.target.inlineObjects) { 99 if (HotSpotObjectConstantImpl.isCompressed(y) && crb.target.inlineObjects) {
100 // compressed oop 100 // compressed oop
101 crb.recordInlineDataInCode(y); 101 crb.recordInlineDataInCode(y);
102 masm.cmpl(address.toAddress(), 0xDEADDEAD); 102 masm.cmpl(address.toAddress(), 0xDEADDEAD);
103 } else { 103 } else {
104 // uncompressed oop 104 // uncompressed oop