RFR: 8170322: Specialized functions convert booleans to numbers
Attila Szegedi
szegedia at gmail.com
Fri Nov 25 13:31:54 UTC 2016
+1.
If I understand it correctly, it was only Array.concat and Array.push that needed this? That’s good, it means it wasn't a really widespread problem.
Attila.
> On 25 Nov 2016, at 12:52, 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