public class ImplicitExceptionsPlugin extends Object implements org.graalvm.compiler.nodes.graphbuilderconf.NodePlugin
NullPointerException, are
thrown frequently in nearly all methods. Having an explicit object allocation in every method
would lead to code explosion. Therefore, we have one cached instance of every such exception
class. To keep the generated code as small as possible, the cached exception is thrown by a
runtime method.| Constructor and Description |
|---|
ImplicitExceptionsPlugin(jdk.vm.ci.meta.MetaAccessProvider metaAccess,
org.graalvm.compiler.core.common.spi.ForeignCallsProvider foreignCalls) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
handleInvoke(org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderContext b,
jdk.vm.ci.meta.ResolvedJavaMethod method,
org.graalvm.compiler.nodes.ValueNode[] args) |
boolean |
handleNewInstance(org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderContext b,
jdk.vm.ci.meta.ResolvedJavaType type) |
public ImplicitExceptionsPlugin(jdk.vm.ci.meta.MetaAccessProvider metaAccess,
org.graalvm.compiler.core.common.spi.ForeignCallsProvider foreignCalls)
public boolean handleNewInstance(org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderContext b,
jdk.vm.ci.meta.ResolvedJavaType type)
handleNewInstance in interface org.graalvm.compiler.nodes.graphbuilderconf.NodePluginpublic boolean handleInvoke(org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderContext b,
jdk.vm.ci.meta.ResolvedJavaMethod method,
org.graalvm.compiler.nodes.ValueNode[] args)
handleInvoke in interface org.graalvm.compiler.nodes.graphbuilderconf.NodePlugin