nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/linker/NashornCallSiteDescriptor.java
equal
deleted
inserted
replaced
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); |