RFR: 8170322: Specialized functions convert booleans to numbers

Jim Laskey (Oracle) james.laskey at oracle.com
Fri Nov 25 12:19:23 UTC 2016


> On Nov 25, 2016, at 7:52 AM, Hannes Wallnöfer <hannes.wallnoefer at oracle.com> wrote:
> Please review: 
> Bug: https://bugs.openjdk.java.net/browse/JDK-8170322
> Webrev: http://cr.openjdk.java.net/~hannesw/8170322/webrev/
> This adds a new „convertsNumericArgs“ property to the SpecializedFunction annotation that defines whether it is safe to convert non-numeric arguments for this function to numbers. This is used at link time to decide whether the specialised function can be used with a boolean parameter. I also removed a few specialised functions with long parameters which are no longer in use.
> Thanks,
> Hannes

More information about the nashorn-dev mailing list