Review request for JDK-8135190: Method code too large in Babel browser.js script

Sundararajan Athijegannathan sundararajan.athijegannathan at oracle.com
Fri Sep 18 13:09:22 UTC 2015


* On naming: how about getHigh and getLow in Splittable?

* Types.typeFor can fallback to name pattern (JO subclass) and use 
JO.class (when getting CNFE) or context's sharedloader to do Class.forName

Other than that +1

-Sundar

On 9/18/2015 6:33 PM, Attila Szegedi wrote:
> Few minor remarks:
>
> * AssignSymbols.isSplitLiteral uses !(splitRanges == null || splitRanges.isEmpty()) while everywhere else in the code the check is (ranges != null).
> * loadSplitLiteral: seems like there's a stray comment: // method.load(literalType, literalSlot);
> * Terminology: Splittable is described as a "marker interface” yet it has a method.
>
> Other than these small things, +1.
>
> Attila.
>
>> On Sep 18, 2015, at 12:03 PM, Hannes Wallnoefer <hannes.wallnoefer at oracle.com> wrote:
>>
>> Please review JDK-8135190: Method code too large in Babel browser.js script:
>>
>> http://cr.openjdk.java.net/~hannesw/8135190/
>>
>> This makes object literals splittable. I tried to share as much code as possible with array literal splitting so I had to introduce a couple of new interfaces.
>>
>> Hannes



More information about the nashorn-dev mailing list