• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /openjdk10/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.nodes/src/org/graalvm/compiler/nodes/graphbuilderconf/

Lines Matching defs:plugin

220          * Registers a plugin for a method with no arguments.
223 * @param plugin the plugin to be registered
225 public void register0(String name, InvocationPlugin plugin) {
226 plugins.register(plugin, false, allowOverwrite, declaringType, name);
230 * Registers a plugin for a method with 1 argument.
233 * @param plugin the plugin to be registered
235 public void register1(String name, Type arg, InvocationPlugin plugin) {
236 plugins.register(plugin, false, allowOverwrite, declaringType, name, arg);
240 * Registers a plugin for a method with 2 arguments.
243 * @param plugin the plugin to be registered
245 public void register2(String name, Type arg1, Type arg2, InvocationPlugin plugin) {
246 plugins.register(plugin, false, allowOverwrite, declaringType, name, arg1, arg2);
250 * Registers a plugin for a method with 3 arguments.
253 * @param plugin the plugin to be registered
255 public void register3(String name, Type arg1, Type arg2, Type arg3, InvocationPlugin plugin) {
256 plugins.register(plugin, false, allowOverwrite, declaringType, name, arg1, arg2, arg3);
260 * Registers a plugin for a method with 4 arguments.
263 * @param plugin the plugin to be registered
265 public void register4(String name, Type arg1, Type arg2, Type arg3, Type arg4, InvocationPlugin plugin) {
266 plugins.register(plugin, false, allowOverwrite, declaringType, name, arg1, arg2, arg3, arg4);
270 * Registers a plugin for a method with 5 arguments.
273 * @param plugin the plugin to be registered
275 public void register5(String name, Type arg1, Type arg2, Type arg3, Type arg4, Type arg5, InvocationPlugin plugin) {
276 plugins.register(plugin, false, allowOverwrite, declaringType, name, arg1, arg2, arg3, arg4, arg5);
280 * Registers a plugin for a method with 6 arguments.
283 * @param plugin the plugin to be registered
285 public void register6(String name, Type arg1, Type arg2, Type arg3, Type arg4, Type arg5, Type arg6, InvocationPlugin plugin) {
286 plugins.register(plugin, false, allowOverwrite, declaringType, name, arg1, arg2, arg3, arg4, arg5, arg6);
290 * Registers a plugin for a method with 7 arguments.
293 * @param plugin the plugin to be registered
295 public void register7(String name, Type arg1, Type arg2, Type arg3, Type arg4, Type arg5, Type arg6, Type arg7, InvocationPlugin plugin) {
296 plugins.register(plugin, false, allowOverwrite, declaringType, name, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
300 * Registers a plugin for an optional method with no arguments.
303 * @param plugin the plugin to be registered
305 public void registerOptional0(String name, InvocationPlugin plugin) {
306 plugins.register(plugin, true, allowOverwrite, declaringType, name);
310 * Registers a plugin for an optional method with 1 argument.
313 * @param plugin the plugin to be registered
315 public void registerOptional1(String name, Type arg, InvocationPlugin plugin) {
316 plugins.register(plugin, true, allowOverwrite, declaringType, name, arg);
320 * Registers a plugin for an optional method with 2 arguments.
323 * @param plugin the plugin to be registered
325 public void registerOptional2(String name, Type arg1, Type arg2, InvocationPlugin plugin) {
326 plugins.register(plugin, true, allowOverwrite, declaringType, name, arg1, arg2);
330 * Registers a plugin for an optional method with 3 arguments.
333 * @param plugin the plugin to be registered
335 public void registerOptional3(String name, Type arg1, Type arg2, Type arg3, InvocationPlugin plugin) {
336 plugins.register(plugin, true, allowOverwrite, declaringType, name, arg1, arg2, arg3);
340 * Registers a plugin for an optional method with 4 arguments.
343 * @param plugin the plugin to be registered
345 public void registerOptional4(String name, Type arg1, Type arg2, Type arg3, Type arg4, InvocationPlugin plugin) {
346 plugins.register(plugin, true, allowOverwrite, declaringType, name, arg1, arg2, arg3, arg4);
350 * Registers a plugin that implements a method based on the bytecode of a substitute method.
365 * Registers a plugin that implements a method based on the bytecode of a substitute method.
377 MethodSubstitutionPlugin plugin = createMethodSubstitution(substituteDeclaringClass, substituteName, argumentTypes);
378 plugins.register(plugin, false, allowOverwrite, declaringType, name, argumentTypes);
383 MethodSubstitutionPlugin plugin = new MethodSubstitutionPlugin(methodSubstitutionBytecodeProvider, substituteDeclaringClass, substituteName, argumentTypes);
384 return plugin;
413 * Registers an invocation plugin for a given method. There must be no plugin currently
421 public void register(InvocationPlugin plugin, String name, Type... argumentTypes) {
428 Binding binding = new Binding(plugin, isStatic, name, argumentTypes);
448 * The plugin this binding is for.
450 public final InvocationPlugin plugin;
476 this.plugin = data;
490 this.plugin = data;
514 * invocation plugin bindings for the class. Tf non-null, then {@link #resolvedRegistrations}
550 * Gets the invocation plugin for a given method.
552 * @return the invocation plugin for {@code method} or {@code null}
560 return binding.plugin;
584 return b.plugin;
615 * Registers a binding of a method to an invocation plugin.
617 * @param plugin invocation plugin to be associated with the specified method
625 Binding put(InvocationPlugin plugin, boolean isStatic, boolean allowOverwrite, Type declaringClass, String name, Type... argumentTypes) {
636 Binding binding = new Binding(plugin, isStatic, name, argumentTypes);
678 return b.plugin;
908 protected void register(InvocationPlugin plugin, boolean isOptional, boolean allowOverwrite, Type declaringClass, String name, Type... argumentTypes) {
913 Binding binding = put(plugin, isStatic, allowOverwrite, declaringClass, name, argumentTypes);
919 * Registers an invocation plugin for a given method. There must be no plugin currently
927 public void register(InvocationPlugin plugin, Type declaringClass, String name, Type... argumentTypes) {
928 register(plugin, false, false, declaringClass, name, argumentTypes);
931 public void register(InvocationPlugin plugin, String declaringClass, String name, Type... argumentTypes) {
932 register(plugin, false, false, new OptionalLazySymbol(declaringClass), name, argumentTypes);
936 * Registers an invocation plugin for a given, optional method. There must be no plugin
944 public void registerOptional(InvocationPlugin plugin, Type declaringClass, String name, Type... argumentTypes) {
945 register(plugin, true, false, declaringClass, name, argumentTypes);
949 * Gets the plugin for a given method.
952 * @return the plugin associated with {@code method} or {@code null} if none exists
956 InvocationPlugin plugin = parent.lookupInvocation(method);
957 if (plugin != null) {
958 return plugin;
968 * to the invocation plugin bindings for methods in the class
978 * to the invocation plugin bindings for methods in the class
989 InvocationPlugin plugin = cursor.getValue();
996 bindings.add(new Binding(method, plugin));
1124 InvocationPlugin plugin = binding.plugin;
1127 assert !containsBinding(p, declaringType, binding) : "a plugin is already registered for " + binding;
1130 if (plugin instanceof ForeignCallPlugin || plugin instanceof GeneratedInvocationPlugin) {
1133 if (plugin instanceof MethodSubstitutionPlugin) {
1134 MethodSubstitutionPlugin msplugin = (MethodSubstitutionPlugin) plugin;
1141 for (Method m : plugin.getClass().getDeclaredMethods()) {
1149 throw new AssertionError(format("graph builder plugin for %s not found", binding));
1173 * @param b the graph builder that applied the plugin
1174 * @param plugin a plugin that was just applied
1175 * @param newNodes the nodes added to the graph by {@code plugin}
1178 public void checkNewNodes(GraphBuilderContext b, InvocationPlugin plugin, NodeIterable<Node> newNodes) {
1180 parent.checkNewNodes(b, plugin, newNodes);