comparison graal/com.oracle.graal.hotspot.sparc/src/com/oracle/graal/hotspot/sparc/SPARCHotSpotLIRGenerator.java @ 12503:d7f8dd4fe876

minor reformatting based on 'mx eclipseformat'
author Doug Simon <doug.simon@oracle.com>
date Mon, 21 Oct 2013 18:10:32 +0200
parents f87c68d79f07
children ae412befde21
comparison
equal deleted inserted replaced
12502:28f56bf7c06a 12503:d7f8dd4fe876
152 setResult(x, result); 152 setResult(x, result);
153 } 153 }
154 154
155 @Override 155 @Override
156 public void emitTailcall(Value[] args, Value address) { 156 public void emitTailcall(Value[] args, Value address) {
157 // append(new AMD64TailcallOp(args, address)); 157 // append(new AMD64TailcallOp(args, address));
158 throw GraalInternalError.unimplemented(); 158 throw GraalInternalError.unimplemented();
159 } 159 }
160 160
161 @Override 161 @Override
162 protected void emitDirectCall(DirectCallTargetNode callTarget, Value result, Value[] parameters, Value[] temps, LIRFrameState callState) { 162 protected void emitDirectCall(DirectCallTargetNode callTarget, Value result, Value[] parameters, Value[] temps, LIRFrameState callState) {
240 SPARCAddressValue loadAddress = asAddressValue(address); 240 SPARCAddressValue loadAddress = asAddressValue(address);
241 Variable result = newVariable(kind); 241 Variable result = newVariable(kind);
242 assert access == null || access instanceof HeapAccess; 242 assert access == null || access instanceof HeapAccess;
243 if (isCompressCandidate(access)) { 243 if (isCompressCandidate(access)) {
244 if (config.useCompressedOops && kind == Kind.Object) { 244 if (config.useCompressedOops && kind == Kind.Object) {
245 // append(new LoadCompressedPointer(kind, result, loadAddress, access != null ? state(access) : 245 // append(new LoadCompressedPointer(kind, result, loadAddress, access != null ?
246 // null, config.narrowOopBase, config.narrowOopShift, 246 // state(access) :
247 // config.logMinObjAlignment)); 247 // null, config.narrowOopBase, config.narrowOopShift,
248 // config.logMinObjAlignment));
248 throw GraalInternalError.unimplemented(); 249 throw GraalInternalError.unimplemented();
249 } else if (config.useCompressedClassPointers && kind == Kind.Long) { 250 } else if (config.useCompressedClassPointers && kind == Kind.Long) {
250 // append(new LoadCompressedPointer(kind, result, loadAddress, access != null ? state(access) : 251 // append(new LoadCompressedPointer(kind, result, loadAddress, access != null ?
251 // null, config.narrowKlassBase, config.narrowKlassShift, 252 // state(access) :
252 // config.logKlassAlignment)); 253 // null, config.narrowKlassBase, config.narrowKlassShift,
254 // config.logKlassAlignment));
253 throw GraalInternalError.unimplemented(); 255 throw GraalInternalError.unimplemented();
254 } else { 256 } else {
255 append(new LoadOp(kind, result, loadAddress, access != null ? state(access) : null)); 257 append(new LoadOp(kind, result, loadAddress, access != null ? state(access) : null));
256 } 258 }
257 } else { 259 } else {
278 } 280 }
279 } 281 }
280 Variable input = load(inputVal); 282 Variable input = load(inputVal);
281 if (isCompressCandidate(access)) { 283 if (isCompressCandidate(access)) {
282 if (config.useCompressedOops && kind == Kind.Object) { 284 if (config.useCompressedOops && kind == Kind.Object) {
283 // if (input.getKind() == Kind.Object) { 285 // if (input.getKind() == Kind.Object) {
284 // Variable scratch = newVariable(Kind.Long); 286 // Variable scratch = newVariable(Kind.Long);
285 // append(new StoreCompressedPointer(kind, storeAddress, input, scratch, state, 287 // append(new StoreCompressedPointer(kind, storeAddress, input, scratch, state,
286 // config.narrowOopBase, config.narrowOopShift, 288 // config.narrowOopBase, config.narrowOopShift,
287 // config.logMinObjAlignment)); 289 // config.logMinObjAlignment));
288 // } else { 290 // } else {
289 // // the input oop is already compressed 291 // // the input oop is already compressed
290 // append(new StoreOp(input.getKind(), storeAddress, input, state)); 292 // append(new StoreOp(input.getKind(), storeAddress, input, state));
291 // } 293 // }
292 throw GraalInternalError.unimplemented(); 294 throw GraalInternalError.unimplemented();
293 } else if (config.useCompressedClassPointers && kind == Kind.Long) { 295 } else if (config.useCompressedClassPointers && kind == Kind.Long) {
294 // Variable scratch = newVariable(Kind.Long); 296 // Variable scratch = newVariable(Kind.Long);
295 // append(new StoreCompressedPointer(kind, storeAddress, input, scratch, state, 297 // append(new StoreCompressedPointer(kind, storeAddress, input, scratch, state,
296 // config.narrowKlassBase, config.narrowKlassShift, 298 // config.narrowKlassBase, config.narrowKlassShift,
297 // config.logKlassAlignment)); 299 // config.logKlassAlignment));
298 throw GraalInternalError.unimplemented(); 300 throw GraalInternalError.unimplemented();
299 } else { 301 } else {
300 append(new StoreOp(kind, storeAddress, input, state)); 302 append(new StoreOp(kind, storeAddress, input, state));
301 } 303 }
302 } else { 304 } else {