Searched refs:boundArgs (Results 1 - 4 of 4) sorted by relevance
/openjdk10/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/linker/ |
H A D | BoundCallable.java | 39 private final Object[] boundArgs; field in class:BoundCallable 41 BoundCallable(final Object callable, final Object boundThis, final Object[] boundArgs) { argument 44 this.boundArgs = isEmptyArray(boundArgs) ? ScriptRuntime.EMPTY_ARRAY : boundArgs.clone(); 50 this.boundArgs = original.concatenateBoundArgs(extraBoundArgs); 62 return boundArgs; 73 if (boundArgs.length == 0) { 76 final int origBoundArgsLen = boundArgs.length; 79 System.arraycopy(boundArgs, [all...] |
H A D | BoundCallableLinker.java | 78 // Replace arguments (boundCallable[, this], args) => (callable[, boundThis], boundArgs, args) when delegating 80 final Object[] boundArgs = boundCallable.getBoundArgs(); 82 final int boundArgsLen = boundArgs.length; 92 System.arraycopy(boundArgs, 0, newArgs, firstArgIndex, boundArgsLen); 105 for(int i = boundArgs.length; i-- > 0;) { 106 newMethodType = newMethodType.insertParameterTypes(firstArgIndex, boundArgs[i] == null ? Object.class : boundArgs[i].getClass()); 116 // Bind (callable[, boundThis], boundArgs) to the delegate handle 118 Arrays.copyOf(newArgs, firstArgIndex + boundArgs.length));
|
H A D | Bootstrap.java | 383 * @param boundArgs the bound arguments. Can be either null or empty array to signify no arguments are bound. 387 public static Object bindCallable(final Object callable, final Object boundThis, final Object[] boundArgs) { argument 389 return ((ScriptFunction)callable).createBound(boundThis, boundArgs); 391 return ((BoundCallable)callable).bind(boundArgs); 393 return new BoundCallable(callable, boundThis, boundArgs);
|
/openjdk10/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/ |
H A D | ScriptFunctionData.java | 531 final Object[] boundArgs = new Object[Math.min(originalInvoker.type().parameterCount() - argInsertPos, args.length + (isTargetBound ? 0 : needsCallee ? 2 : 1))]; 535 boundArgs[next++] = targetFn; 537 boundArgs[next++] = boundSelf; 540 System.arraycopy(args, 0, boundArgs, next, boundArgs.length - next); 545 boundInvoker = MH.insertArguments(originalInvoker, argInsertPos, boundArgs); 583 final Object[] boundArgs; 587 boundArgs = args; 589 boundArgs = new Object[maxArgCount]; 590 System.arraycopy(args, 0, boundArgs, [all...] |
Completed in 51 milliseconds