src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.nodes/src/org/graalvm/compiler/nodes/graphbuilderconf/InlineInvokePlugin.java
changeset 48861 47f19ff9903c
parent 47798 9fe9292f5931
child 49451 e06f9607f370
equal deleted inserted replaced
48860:5bce1b7e7800 48861:47f19ff9903c
    80          */
    80          */
    81         public ResolvedJavaMethod getMethodToInline() {
    81         public ResolvedJavaMethod getMethodToInline() {
    82             return methodToInline;
    82             return methodToInline;
    83         }
    83         }
    84 
    84 
       
    85         public boolean allowsInlining() {
       
    86             return methodToInline != null;
       
    87         }
       
    88 
    85         /**
    89         /**
    86          * Gets the provider of bytecode to be parsed for {@link #getMethodToInline()} if is is an
    90          * Gets the provider of bytecode to be parsed for {@link #getMethodToInline()} if is is an
    87          * intrinsic for the original method (i.e., the {@code method} passed to
    91          * intrinsic for the original method (i.e., the {@code method} passed to
    88          * {@link InlineInvokePlugin#shouldInlineInvoke}). A {@code null} return value indicates
    92          * {@link InlineInvokePlugin#shouldInlineInvoke}). A {@code null} return value indicates
    89          * that this is not an intrinsic inlining.
    93          * that this is not an intrinsic inlining.