src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.nodes/src/org/graalvm/compiler/nodes/graphbuilderconf/InlineInvokePlugin.java
equal
deleted
inserted
replaced
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. |