comparison jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotJVMCIRuntime.java @ 23392:b3a816d3b844

Backed out changeset: a920338dd4d4
author Doug Simon <doug.simon@oracle.com>
date Thu, 12 May 2016 11:06:49 +0200
parents dd9f3badc978
children 1d4ce2d19e52
comparison
equal deleted inserted replaced
23391:dd9f3badc978 23392:b3a816d3b844
39 39
40 import jdk.vm.ci.code.Architecture; 40 import jdk.vm.ci.code.Architecture;
41 import jdk.vm.ci.code.CompilationRequestResult; 41 import jdk.vm.ci.code.CompilationRequestResult;
42 import jdk.vm.ci.code.CompiledCode; 42 import jdk.vm.ci.code.CompiledCode;
43 import jdk.vm.ci.code.InstalledCode; 43 import jdk.vm.ci.code.InstalledCode;
44 import jdk.vm.ci.common.JVMCIError;
44 import jdk.vm.ci.hotspot.services.HotSpotJVMCICompilerFactory; 45 import jdk.vm.ci.hotspot.services.HotSpotJVMCICompilerFactory;
45 import jdk.vm.ci.hotspot.services.HotSpotVMEventListener; 46 import jdk.vm.ci.hotspot.services.HotSpotVMEventListener;
46 import jdk.vm.ci.inittimer.InitTimer; 47 import jdk.vm.ci.inittimer.InitTimer;
47 import jdk.vm.ci.inittimer.SuppressFBWarnings; 48 import jdk.vm.ci.inittimer.SuppressFBWarnings;
48 import jdk.vm.ci.meta.JVMCIMetaAccessContext; 49 import jdk.vm.ci.meta.JVMCIMetaAccessContext;
136 if (type == boolean.class) { 137 if (type == boolean.class) {
137 this.value = Boolean.parseBoolean(propertyValue); 138 this.value = Boolean.parseBoolean(propertyValue);
138 } else if (type == String.class) { 139 } else if (type == String.class) {
139 this.value = propertyValue; 140 this.value = propertyValue;
140 } else { 141 } else {
141 throw new InternalError("Unexpected option type " + type); 142 throw new JVMCIError("Unexpected option type " + type);
142 } 143 }
143 this.isDefault = false; 144 this.isDefault = false;
144 } 145 }
145 // Saved properties should not be interned - let's be sure 146 // Saved properties should not be interned - let's be sure
146 assert value != UNINITIALIZED; 147 assert value != UNINITIALIZED;
186 if (factory.getArchitecture().equalsIgnoreCase(architecture)) { 187 if (factory.getArchitecture().equalsIgnoreCase(architecture)) {
187 return factory; 188 return factory;
188 } 189 }
189 } 190 }
190 191
191 throw new InternalError(String.format("No JVMCI runtime available for the %s architecture", architecture)); 192 throw new JVMCIError("No JVMCI runtime available for the %s architecture", architecture);
192 } 193 }
193 194
194 /** 195 /**
195 * Gets the kind of a word value on the {@linkplain #getHostJVMCIBackend() host} backend. 196 * Gets the kind of a word value on the {@linkplain #getHostJVMCIBackend() host} backend.
196 */ 197 */