hg: mlvm/mlvm/hotspot: indy-args: update patch; also, introduce patches for 6981788 and 6994093

2010-10-22 Thread john . r . rose
Changeset: 746340da63d2 Author:jrose Date: 2010-10-21 23:42 -0700 URL: http://hg.openjdk.java.net/mlvm/mlvm/hotspot/rev/746340da63d2 indy-args: update patch; also, introduce patches for 6981788 and 6994093 + cpindex-6981788.patch ! indy-args-6984311.patch + meth-ing-6994093.patch

optional arguments for bootstrap methods

2010-10-22 Thread John Rose
Based partly on our discussions at the Summit about live constants, and also based on the likely requirements of Project Lambda, the JSR 292 EG is likely to allow any single invokedynamic instruction to pass one or more extra constant values into the bootstrap method invocation. Here is the

Re: optional arguments for bootstrap methods

2010-10-22 Thread Rémi Forax
Le 22/10/2010 10:43, John Rose a écrit : Based partly on our discussions at the Summit about live constants, and also based on the likely requirements of Project Lambda, the JSR 292 EG is likely to allow any single invokedynamic instruction to pass one or more extra constant values into

Re: optional arguments for bootstrap methods

2010-10-22 Thread John Rose
On Oct 22, 2010, at 2:19 AM, Rémi Forax wrote: And also: CallSite myBSM(MethodHandles.Lookup look, String name, MethodType type); CallSite myBSM(MethodHandles.Lookup look, String name, MethodType type, Object arg); CallSite myBSM(MethodHandles.Lookup look, String name, MethodType

inner classes mixed with method handles: does it matter?

2010-10-22 Thread John Rose
The JSR 292 EG is discussing access rules for method handles. The draft spec. say that CONSTANT_MethodHandles in the constant pool, and dynamically looked up method handles, are accessible to related nested classes: * In general, the conditions under which a method handle may be *

Re: optional arguments for bootstrap methods

2010-10-22 Thread Helmut Eller
* John Rose [2010-10-22 08:43] writes: MethodHandle myBSM(MethodHandles.Lookup look, String name, MethodType type); MethodHandle myBSM(MethodHandles.Lookup look, String name, MethodType type, Object arg); MethodHandle myBSM(MethodHandles.Lookup look, String name, MethodType type,

Re: optional arguments for bootstrap methods

2010-10-22 Thread John Rose
On Oct 22, 2010, at 4:03 AM, Helmut Eller wrote: Why is the name a required and not an optional argument? The name is part of the fixed structure of CONSTANT_InvokeDynamic, which is modeled on CONSTANT_Methodref, and therefore contains a CONSTANT_NameAndType. Whether you want the name or