Search in sources :

Example 1 with VerifyInstanceOfUsage

use of org.graalvm.compiler.phases.verify.VerifyInstanceOfUsage in project graal by oracle.

the class CheckGraalInvariants method checkGraph.

/**
 * Checks the invariants for a single graph.
 */
private static void checkGraph(HighTierContext context, StructuredGraph graph) {
    if (shouldVerifyEquals(graph.method())) {
        // If you add a new type to test here, be sure to add appropriate
        // methods to the BadUsageWithEquals class below
        new VerifyUsageWithEquals(Value.class).apply(graph, context);
        new VerifyUsageWithEquals(Register.class).apply(graph, context);
        new VerifyUsageWithEquals(RegisterCategory.class).apply(graph, context);
        new VerifyUsageWithEquals(JavaType.class).apply(graph, context);
        new VerifyUsageWithEquals(JavaMethod.class).apply(graph, context);
        new VerifyUsageWithEquals(JavaField.class).apply(graph, context);
        new VerifyUsageWithEquals(LocationIdentity.class).apply(graph, context);
        new VerifyUsageWithEquals(LIRKind.class).apply(graph, context);
        new VerifyUsageWithEquals(ArithmeticOpTable.class).apply(graph, context);
        new VerifyUsageWithEquals(ArithmeticOpTable.Op.class).apply(graph, context);
    }
    new VerifyDebugUsage().apply(graph, context);
    new VerifyCallerSensitiveMethods().apply(graph, context);
    new VerifyVirtualizableUsage().apply(graph, context);
    new VerifyUpdateUsages().apply(graph, context);
    new VerifyBailoutUsage().apply(graph, context);
    new VerifyInstanceOfUsage().apply(graph, context);
    new VerifyGraphAddUsage().apply(graph, context);
    new VerifyGetOptionsUsage().apply(graph, context);
    if (graph.method().isBridge()) {
        BridgeMethodUtils.getBridgedMethod(graph.method());
    }
}
Also used : RegisterCategory(jdk.vm.ci.code.Register.RegisterCategory) VerifyBailoutUsage(org.graalvm.compiler.phases.verify.VerifyBailoutUsage) VerifyGraphAddUsage(org.graalvm.compiler.phases.verify.VerifyGraphAddUsage) VerifyUsageWithEquals(org.graalvm.compiler.phases.verify.VerifyUsageWithEquals) VerifyUpdateUsages(org.graalvm.compiler.phases.verify.VerifyUpdateUsages) VerifyDebugUsage(org.graalvm.compiler.phases.verify.VerifyDebugUsage) VerifyVirtualizableUsage(org.graalvm.compiler.phases.verify.VerifyVirtualizableUsage) VerifyInstanceOfUsage(org.graalvm.compiler.phases.verify.VerifyInstanceOfUsage) ArithmeticOpTable(org.graalvm.compiler.core.common.type.ArithmeticOpTable) ResolvedJavaType(jdk.vm.ci.meta.ResolvedJavaType) JavaType(jdk.vm.ci.meta.JavaType) JavaField(jdk.vm.ci.meta.JavaField) Register(jdk.vm.ci.code.Register) VerifyGetOptionsUsage(org.graalvm.compiler.phases.verify.VerifyGetOptionsUsage) Value(jdk.vm.ci.meta.Value) JavaMethod(jdk.vm.ci.meta.JavaMethod) ResolvedJavaMethod(jdk.vm.ci.meta.ResolvedJavaMethod) LocationIdentity(org.graalvm.word.LocationIdentity) LIRKind(org.graalvm.compiler.core.common.LIRKind) VerifyCallerSensitiveMethods(org.graalvm.compiler.phases.verify.VerifyCallerSensitiveMethods)

Aggregations

Register (jdk.vm.ci.code.Register)1 RegisterCategory (jdk.vm.ci.code.Register.RegisterCategory)1 JavaField (jdk.vm.ci.meta.JavaField)1 JavaMethod (jdk.vm.ci.meta.JavaMethod)1 JavaType (jdk.vm.ci.meta.JavaType)1 ResolvedJavaMethod (jdk.vm.ci.meta.ResolvedJavaMethod)1 ResolvedJavaType (jdk.vm.ci.meta.ResolvedJavaType)1 Value (jdk.vm.ci.meta.Value)1 LIRKind (org.graalvm.compiler.core.common.LIRKind)1 ArithmeticOpTable (org.graalvm.compiler.core.common.type.ArithmeticOpTable)1 VerifyBailoutUsage (org.graalvm.compiler.phases.verify.VerifyBailoutUsage)1 VerifyCallerSensitiveMethods (org.graalvm.compiler.phases.verify.VerifyCallerSensitiveMethods)1 VerifyDebugUsage (org.graalvm.compiler.phases.verify.VerifyDebugUsage)1 VerifyGetOptionsUsage (org.graalvm.compiler.phases.verify.VerifyGetOptionsUsage)1 VerifyGraphAddUsage (org.graalvm.compiler.phases.verify.VerifyGraphAddUsage)1 VerifyInstanceOfUsage (org.graalvm.compiler.phases.verify.VerifyInstanceOfUsage)1 VerifyUpdateUsages (org.graalvm.compiler.phases.verify.VerifyUpdateUsages)1 VerifyUsageWithEquals (org.graalvm.compiler.phases.verify.VerifyUsageWithEquals)1 VerifyVirtualizableUsage (org.graalvm.compiler.phases.verify.VerifyVirtualizableUsage)1 LocationIdentity (org.graalvm.word.LocationIdentity)1