comparison graal/com.oracle.graal.hotspot.sparc/src/com/oracle/graal/hotspot/sparc/SPARCHotSpotLIRGenerator.java @ 13520:fb7b39f07232

Embed compressed constants when possible and use more efficient patterns for encoding
author Tom Rodriguez <tom.rodriguez@oracle.com>
date Mon, 06 Jan 2014 17:19:18 -0800
parents 01fd11e44f73
children 5a9afbf72714
comparison
equal deleted inserted replaced
13519:1ceb90be7bac 13520:fb7b39f07232
273 if (access instanceof DeoptimizingNode) { 273 if (access instanceof DeoptimizingNode) {
274 state = state((DeoptimizingNode) access); 274 state = state((DeoptimizingNode) access);
275 } 275 }
276 if (isConstant(inputVal)) { 276 if (isConstant(inputVal)) {
277 Constant c = asConstant(inputVal); 277 Constant c = asConstant(inputVal);
278 if (canStoreConstant(c)) { 278 if (canStoreConstant(c, isCompressCandidate(access))) {
279 if (inputVal.getKind() == Kind.Object) { 279 if (inputVal.getKind() == Kind.Object) {
280 append(new StoreConstantOp(kind, storeAddress, c, state, config.useCompressedOops && isCompressCandidate(access))); 280 append(new StoreConstantOp(kind, storeAddress, c, state, config.useCompressedOops && isCompressCandidate(access)));
281 } else if (inputVal.getKind() == Kind.Long) { 281 } else if (inputVal.getKind() == Kind.Long) {
282 append(new StoreConstantOp(kind, storeAddress, c, state, config.useCompressedClassPointers && isCompressCandidate(access))); 282 append(new StoreConstantOp(kind, storeAddress, c, state, config.useCompressedClassPointers && isCompressCandidate(access)));
283 } else { 283 } else {