@@ -157,7 +157,7 @@ public Object compute(MetaAccessProvider metaAccess, ResolvedJavaField original,
157157 return clearedCache ;
158158 }
159159 }
160- throw VMError .shouldNotReachHere ("Cannot find " + DebugContext .class .getName () + ".Immutable" );
160+ throw VMError .shouldNotReachHere (String . format ( "Cannot find %s.Immutable" , DebugContext .class .getName ()) );
161161 }
162162 }
163163
@@ -250,7 +250,7 @@ public static EconomicMap<Class<? extends Node>, List<MatchStatement>> lookup(Cl
250250 @ SuppressWarnings ("unused" ) DebugContext debug ) {
251251 EconomicMap <Class <? extends Node >, List <MatchStatement >> result = GraalSupport .get ().matchRuleRegistry .get (theClass );
252252 if (result == null ) {
253- VMError .shouldNotReachHere ("MatchRuleRegistry.lookup(): unexpected class " + theClass .getName ());
253+ throw VMError .shouldNotReachHere (String . format ( "MatchRuleRegistry.lookup(): unexpected class %s" , theClass .getName () ));
254254 }
255255 return result ;
256256 }
@@ -289,7 +289,7 @@ final class Target_org_graalvm_compiler_phases_BasePhase {
289289 static BasePhase .BasePhaseStatistics getBasePhaseStatistics (Class <?> clazz ) {
290290 BasePhase .BasePhaseStatistics result = GraalSupport .get ().basePhaseStatistics .get (clazz );
291291 if (result == null ) {
292- throw VMError .shouldNotReachHere ("Missing statistics for phase class: " + clazz .getName () + " \n " );
292+ throw VMError .shouldNotReachHere (String . format ( "Missing statistics for phase class: %s \n " , clazz .getName ()) );
293293 }
294294 return result ;
295295 }
@@ -302,7 +302,7 @@ final class Target_org_graalvm_compiler_lir_phases_LIRPhase {
302302 static LIRPhase .LIRPhaseStatistics getLIRPhaseStatistics (Class <?> clazz ) {
303303 LIRPhase .LIRPhaseStatistics result = GraalSupport .get ().lirPhaseStatistics .get (clazz );
304304 if (result == null ) {
305- throw VMError .shouldNotReachHere ("Missing statistics for phase class: " + clazz .getName () + " \n " );
305+ throw VMError .shouldNotReachHere (String . format ( "Missing statistics for phase class: %s \n " , clazz .getName ()) );
306306 }
307307 return result ;
308308 }
@@ -323,7 +323,7 @@ final class Target_org_graalvm_compiler_graph_NodeClass {
323323 public static NodeClass <?> get (Class <?> clazz ) {
324324 NodeClass <?> nodeClass = GraalSupport .get ().nodeClasses .get (clazz );
325325 if (nodeClass == null ) {
326- throw VMError .shouldNotReachHere ("Unknown node class: " + clazz .getName () + " \n " );
326+ throw VMError .shouldNotReachHere (String . format ( "Unknown node class: %s \n " , clazz .getName ()) );
327327 }
328328 return nodeClass ;
329329 }
@@ -347,7 +347,7 @@ final class Target_org_graalvm_compiler_lir_LIRInstructionClass {
347347 public static LIRInstructionClass <?> get (Class <? extends LIRInstruction > clazz ) {
348348 LIRInstructionClass <?> instructionClass = GraalSupport .get ().instructionClasses .get (clazz );
349349 if (instructionClass == null ) {
350- throw VMError .shouldNotReachHere ("Unknown instruction class: " + clazz .getName () + " \n " );
350+ throw VMError .shouldNotReachHere (String . format ( "Unknown instruction class: %s \n " , clazz .getName ()) );
351351 }
352352 return instructionClass ;
353353 }
@@ -362,7 +362,7 @@ final class Target_org_graalvm_compiler_lir_CompositeValueClass {
362362 public static CompositeValueClass <?> get (Class <? extends CompositeValue > clazz ) {
363363 CompositeValueClass <?> compositeValueClass = GraalSupport .get ().compositeValueClasses .get (clazz );
364364 if (compositeValueClass == null ) {
365- throw VMError .shouldNotReachHere ("Unknown composite value class: " + clazz .getName () + " \n " );
365+ throw VMError .shouldNotReachHere (String . format ( "Unknown composite value class: %s \n " , clazz .getName ()) );
366366 }
367367 return compositeValueClass ;
368368 }
0 commit comments