Skip to content

Commit f11bd20

Browse files
committed
remove unused substitutions
1 parent 76f4b69 commit f11bd20

File tree

2 files changed

+0
-59
lines changed

2 files changed

+0
-59
lines changed

substratevm/src/com.oracle.svm.graal.hotspot.libgraal/src/com/oracle/svm/graal/hotspot/libgraal/LibGraalSubstitutions.java

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -360,19 +360,6 @@ static final class Target_jdk_graal_compiler_lir_phases_LIRPhase_LIRPhaseStatist
360360
@TargetClass(className = "jdk.graal.compiler.graph.NodeClass", classLoader = LibGraalClassLoaderSupplier.class, onlyWith = LibGraalFeature.IsEnabled.class)
361361
static final class Target_jdk_graal_compiler_graph_NodeClass {
362362

363-
/*
364-
* Redirect method to image build-time pre-computed nodeClasses map in
365-
* LibGraalCompilerSupport.
366-
*/
367-
@Substitute
368-
public static Target_jdk_graal_compiler_graph_NodeClass get(Class<?> clazz) {
369-
Object nodeClass = LibGraalCompilerSupport.get().nodeClasses.get(clazz);
370-
if (nodeClass == null) {
371-
throw VMError.shouldNotReachHere(String.format("Unknown node class: %s%n", clazz.getName()));
372-
}
373-
return SubstrateUtil.cast(nodeClass, Target_jdk_graal_compiler_graph_NodeClass.class);
374-
}
375-
376363
@Alias //
377364
private String shortName;
378365

@@ -387,23 +374,6 @@ public String shortName() {
387374
}
388375
}
389376

390-
@TargetClass(className = "jdk.graal.compiler.lir.LIRInstructionClass", classLoader = LibGraalClassLoaderSupplier.class, onlyWith = LibGraalFeature.IsEnabled.class)
391-
static final class Target_jdk_graal_compiler_lir_LIRInstructionClass {
392-
393-
/*
394-
* Redirect method to image build-time pre-computed instructionClasses map in
395-
* LibGraalCompilerSupport.
396-
*/
397-
@Substitute
398-
public static Target_jdk_graal_compiler_lir_LIRInstructionClass get(Class<?> clazz) {
399-
Object instructionClass = LibGraalCompilerSupport.get().instructionClasses.get(clazz);
400-
if (instructionClass == null) {
401-
throw VMError.shouldNotReachHere(String.format("Unknown instruction class: %s%n", clazz.getName()));
402-
}
403-
return SubstrateUtil.cast(instructionClass, Target_jdk_graal_compiler_lir_LIRInstructionClass.class);
404-
}
405-
}
406-
407377
@TargetClass(className = "jdk.graal.compiler.hotspot.HotSpotGraalOptionValues", classLoader = LibGraalClassLoaderSupplier.class, onlyWith = LibGraalFeature.IsEnabled.class)
408378
static final class Target_jdk_graal_compiler_hotspot_HotSpotGraalOptionValues {
409379

substratevm/src/com.oracle.svm.graal/src/com/oracle/svm/graal/substitutions/GraalSubstitutions.java

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969
import com.oracle.svm.util.ReflectionUtil;
7070

7171
import jdk.graal.compiler.core.common.CompilationIdentifier;
72-
import jdk.graal.compiler.core.common.SuppressFBWarnings;
7372
import jdk.graal.compiler.core.gen.NodeLIRBuilder;
7473
import jdk.graal.compiler.core.match.MatchRuleRegistry;
7574
import jdk.graal.compiler.core.match.MatchStatement;
@@ -81,8 +80,6 @@
8180
import jdk.graal.compiler.debug.TimeSource;
8281
import jdk.graal.compiler.graph.Node;
8382
import jdk.graal.compiler.graph.NodeClass;
84-
import jdk.graal.compiler.lir.LIRInstruction;
85-
import jdk.graal.compiler.lir.LIRInstructionClass;
8683
import jdk.graal.compiler.lir.gen.ArithmeticLIRGeneratorTool;
8784
import jdk.graal.compiler.lir.phases.LIRPhase;
8885
import jdk.graal.compiler.nodes.Invoke;
@@ -362,17 +359,6 @@ final class Target_jdk_graal_compiler_graph_NodeClass {
362359
@RecomputeFieldValue(kind = RecomputeFieldValue.Kind.Custom, declClass = FieldsOffsetsFeature.SuccessorsIterationMaskRecomputation.class)//
363360
private long successorIteration;
364361

365-
@Substitute
366-
@SuppressWarnings("unlikely-arg-type")
367-
@SuppressFBWarnings(value = {"GC_UNRELATED_TYPES"}, justification = "Class is DynamicHub")
368-
public static NodeClass<?> get(Class<?> clazz) {
369-
NodeClass<?> nodeClass = GraalCompilerSupport.get().nodeClasses.get(clazz);
370-
if (nodeClass == null) {
371-
throw VMError.shouldNotReachHere(String.format("Unknown node class: %s%n", clazz.getName()));
372-
}
373-
return nodeClass;
374-
}
375-
376362
@Alias //
377363
private String shortName;
378364

@@ -383,21 +369,6 @@ public String shortName() {
383369
}
384370
}
385371

386-
@TargetClass(value = LIRInstructionClass.class, onlyWith = GraalCompilerFeature.IsEnabled.class)
387-
final class Target_jdk_graal_compiler_lir_LIRInstructionClass {
388-
389-
@Substitute
390-
@SuppressWarnings("unlikely-arg-type")
391-
@SuppressFBWarnings(value = {"GC_UNRELATED_TYPES"}, justification = "Class is DynamicHub")
392-
public static LIRInstructionClass<?> get(Class<? extends LIRInstruction> clazz) {
393-
LIRInstructionClass<?> instructionClass = GraalCompilerSupport.get().instructionClasses.get(clazz);
394-
if (instructionClass == null) {
395-
throw VMError.shouldNotReachHere(String.format("Unknown instruction class: %s%n", clazz.getName()));
396-
}
397-
return instructionClass;
398-
}
399-
}
400-
401372
@TargetClass(value = NoDeadCodeVerifyHandler.class)
402373
final class Target_jdk_graal_compiler_printer_NoDeadCodeVerifyHandler {
403374
@Alias//

0 commit comments

Comments
 (0)