nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/linker/NashornCallSiteDescriptor.java
changeset 32048 8023426b93ab
parent 31738 5ad3dfcf3507
child 32049 af8f6292d54d
equal deleted inserted replaced
31945:eeea9adfd1e3 32048:8023426b93ab
   148      * @return a call site descriptor with the specified values.
   148      * @return a call site descriptor with the specified values.
   149      */
   149      */
   150     public static NashornCallSiteDescriptor get(final MethodHandles.Lookup lookup, final String name,
   150     public static NashornCallSiteDescriptor get(final MethodHandles.Lookup lookup, final String name,
   151             final MethodType methodType, final int flags) {
   151             final MethodType methodType, final int flags) {
   152         final String[] tokenizedName = CallSiteDescriptorFactory.tokenizeName(name);
   152         final String[] tokenizedName = CallSiteDescriptorFactory.tokenizeName(name);
   153         assert tokenizedName.length == 2 || tokenizedName.length == 3;
   153         assert tokenizedName.length >= 2;
   154         assert "dyn".equals(tokenizedName[0]);
   154         assert "dyn".equals(tokenizedName[0]);
   155         assert tokenizedName[1] != null;
   155         assert tokenizedName[1] != null;
   156         // TODO: see if we can move mangling/unmangling into Dynalink
   156         // TODO: see if we can move mangling/unmangling into Dynalink
   157         return get(lookup, tokenizedName[1], tokenizedName.length == 3 ? tokenizedName[2].intern() : null,
   157         return get(lookup, tokenizedName[1], tokenizedName.length == 3 ? tokenizedName[2].intern() : null,
   158                 methodType, flags);
   158                 methodType, flags);