comparison jvmci/jdk.vm.ci.hotspotvmconfig.processor/src/jdk/vm/ci/hotspotvmconfig/processor/HotSpotVMConfigProcessor.java @ 23387:a920338dd4d4

remove JVMCIError and UnsafeUtil classes (JDK-8156759)
author Doug Simon <doug.simon@oracle.com>
date Wed, 11 May 2016 15:54:36 +0200
parents 4b58c92e939b
children b3a816d3b844
comparison
equal deleted inserted replaced
23386:2625b10989ee 23387:a920338dd4d4
45 import javax.lang.model.element.VariableElement; 45 import javax.lang.model.element.VariableElement;
46 import javax.tools.Diagnostic.Kind; 46 import javax.tools.Diagnostic.Kind;
47 import javax.tools.FileObject; 47 import javax.tools.FileObject;
48 import javax.tools.StandardLocation; 48 import javax.tools.StandardLocation;
49 49
50 import jdk.vm.ci.common.JVMCIError;
51 import jdk.vm.ci.hotspotvmconfig.HotSpotVMConstant; 50 import jdk.vm.ci.hotspotvmconfig.HotSpotVMConstant;
52 import jdk.vm.ci.hotspotvmconfig.HotSpotVMField; 51 import jdk.vm.ci.hotspotvmconfig.HotSpotVMField;
53 import jdk.vm.ci.hotspotvmconfig.HotSpotVMFlag; 52 import jdk.vm.ci.hotspotvmconfig.HotSpotVMFlag;
54 import jdk.vm.ci.hotspotvmconfig.HotSpotVMType; 53 import jdk.vm.ci.hotspotvmconfig.HotSpotVMType;
55 import jdk.vm.ci.hotspotvmconfig.HotSpotVMValue; 54 import jdk.vm.ci.hotspotvmconfig.HotSpotVMValue;
277 break; 276 break;
278 case VALUE: 277 case VALUE:
279 setter = String.format("set_%s(\"%s\", (%s) (intptr_t) %s);", type, field.getSimpleName(), type, name); 278 setter = String.format("set_%s(\"%s\", (%s) (intptr_t) %s);", type, field.getSimpleName(), type, name);
280 break; 279 break;
281 default: 280 default:
282 throw new JVMCIError("unexpected type: " + value.get()); 281 throw new InternalError("unexpected type: " + value.get());
283 } 282 }
284 } 283 }
285 284
286 VMConfigField(VariableElement field, HotSpotVMType value) { 285 VMConfigField(VariableElement field, HotSpotVMType value) {
287 this.field = field; 286 this.field = field;
340 case "sparcv9": 339 case "sparcv9":
341 return "(defined(SPARC) && defined(_LP64))"; 340 return "(defined(SPARC) && defined(_LP64))";
342 case "sparc": 341 case "sparc":
343 return "defined(SPARC)"; 342 return "defined(SPARC)";
344 default: 343 default:
345 throw new JVMCIError("unexpected arch: " + arch); 344 throw new InternalError("unexpected arch: " + arch);
346 } 345 }
347 } 346 }
348 347
349 private static String archDefines(String[] archs) { 348 private static String archDefines(String[] archs) {
350 if (archs == null || archs.length == 0) { 349 if (archs == null || archs.length == 0) {