Mercurial > hg > graal-jvmci-8
comparison jvmci/jdk.vm.ci.hotspotvmconfig.processor/src/jdk/vm/ci/hotspotvmconfig/processor/HotSpotVMConfigProcessor.java @ 23392:b3a816d3b844
Backed out changeset: a920338dd4d4
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 12 May 2016 11:06:49 +0200 |
parents | a920338dd4d4 |
children |
comparison
equal
deleted
inserted
replaced
23391:dd9f3badc978 | 23392:b3a816d3b844 |
---|---|
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; | |
50 import jdk.vm.ci.hotspotvmconfig.HotSpotVMConstant; | 51 import jdk.vm.ci.hotspotvmconfig.HotSpotVMConstant; |
51 import jdk.vm.ci.hotspotvmconfig.HotSpotVMField; | 52 import jdk.vm.ci.hotspotvmconfig.HotSpotVMField; |
52 import jdk.vm.ci.hotspotvmconfig.HotSpotVMFlag; | 53 import jdk.vm.ci.hotspotvmconfig.HotSpotVMFlag; |
53 import jdk.vm.ci.hotspotvmconfig.HotSpotVMType; | 54 import jdk.vm.ci.hotspotvmconfig.HotSpotVMType; |
54 import jdk.vm.ci.hotspotvmconfig.HotSpotVMValue; | 55 import jdk.vm.ci.hotspotvmconfig.HotSpotVMValue; |
276 break; | 277 break; |
277 case VALUE: | 278 case VALUE: |
278 setter = String.format("set_%s(\"%s\", (%s) (intptr_t) %s);", type, field.getSimpleName(), type, name); | 279 setter = String.format("set_%s(\"%s\", (%s) (intptr_t) %s);", type, field.getSimpleName(), type, name); |
279 break; | 280 break; |
280 default: | 281 default: |
281 throw new InternalError("unexpected type: " + value.get()); | 282 throw new JVMCIError("unexpected type: " + value.get()); |
282 } | 283 } |
283 } | 284 } |
284 | 285 |
285 VMConfigField(VariableElement field, HotSpotVMType value) { | 286 VMConfigField(VariableElement field, HotSpotVMType value) { |
286 this.field = field; | 287 this.field = field; |
339 case "sparcv9": | 340 case "sparcv9": |
340 return "(defined(SPARC) && defined(_LP64))"; | 341 return "(defined(SPARC) && defined(_LP64))"; |
341 case "sparc": | 342 case "sparc": |
342 return "defined(SPARC)"; | 343 return "defined(SPARC)"; |
343 default: | 344 default: |
344 throw new InternalError("unexpected arch: " + arch); | 345 throw new JVMCIError("unexpected arch: " + arch); |
345 } | 346 } |
346 } | 347 } |
347 | 348 |
348 private static String archDefines(String[] archs) { | 349 private static String archDefines(String[] archs) { |
349 if (archs == null || archs.length == 0) { | 350 if (archs == null || archs.length == 0) { |