com.apple.internal.jobjc.generator.utils.Fp.Pair Java Examples

The following examples show how to use com.apple.internal.jobjc.generator.utils.Fp.Pair. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TypeCache.java    From dragonwell8_jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * When a new Type is discovered, pass it through here to
 * hit the cache, potentially merge with other types, etc.
 *
 * Always do:
 *
 *   Type type = TypeCache.inst().pingType(new Type(a,b,c));
 *
 * because this should return a better merge for you.
 */
public Type pingType(final Type type_){
    Type typex = type_;

    // XXX Exception for void* clashes: void* (^{OpaqueCMProfileRef}), void* (^{X}), etc
    if("void*".equals(typex.name) && getTypeByName(typex.name)!=null)
        return getTypeByName(typex.name);

    if(typex.name != null)
        typex = Type.merge(typex, getTypeByName(typex.name));
    else // type.name == null
        typex = Type.merge(typex, getTypeByNTypes(new Pair(typex.type32, typex.type64)));
    putTypeByName(typex.name, typex);
    putTypeByNTypes(new Pair(typex.type32, typex.type64), typex);
    return typex;
}
 
Example #2
Source File: TypeCache.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
/**
 * When a new Type is discovered, pass it through here to
 * hit the cache, potentially merge with other types, etc.
 *
 * Always do:
 *
 *   Type type = TypeCache.inst().pingType(new Type(a,b,c));
 *
 * because this should return a better merge for you.
 */
public Type pingType(final Type type_){
    Type typex = type_;

    // XXX Exception for void* clashes: void* (^{OpaqueCMProfileRef}), void* (^{X}), etc
    if("void*".equals(typex.name) && getTypeByName(typex.name)!=null)
        return getTypeByName(typex.name);

    if(typex.name != null)
        typex = Type.merge(typex, getTypeByName(typex.name));
    else // type.name == null
        typex = Type.merge(typex, getTypeByNTypes(new Pair(typex.type32, typex.type64)));
    putTypeByName(typex.name, typex);
    putTypeByNTypes(new Pair(typex.type32, typex.type64), typex);
    return typex;
}
 
Example #3
Source File: TypeCache.java    From jdk8u-jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * When a new Type is discovered, pass it through here to
 * hit the cache, potentially merge with other types, etc.
 *
 * Always do:
 *
 *   Type type = TypeCache.inst().pingType(new Type(a,b,c));
 *
 * because this should return a better merge for you.
 */
public Type pingType(final Type type_){
    Type typex = type_;

    // XXX Exception for void* clashes: void* (^{OpaqueCMProfileRef}), void* (^{X}), etc
    if("void*".equals(typex.name) && getTypeByName(typex.name)!=null)
        return getTypeByName(typex.name);

    if(typex.name != null)
        typex = Type.merge(typex, getTypeByName(typex.name));
    else // type.name == null
        typex = Type.merge(typex, getTypeByNTypes(new Pair(typex.type32, typex.type64)));
    putTypeByName(typex.name, typex);
    putTypeByNTypes(new Pair(typex.type32, typex.type64), typex);
    return typex;
}
 
Example #4
Source File: TypeCache.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
/**
 * When a new Type is discovered, pass it through here to
 * hit the cache, potentially merge with other types, etc.
 *
 * Always do:
 *
 *   Type type = TypeCache.inst().pingType(new Type(a,b,c));
 *
 * because this should return a better merge for you.
 */
public Type pingType(final Type type_){
    Type typex = type_;

    // XXX Exception for void* clashes: void* (^{OpaqueCMProfileRef}), void* (^{X}), etc
    if("void*".equals(typex.name) && getTypeByName(typex.name)!=null)
        return getTypeByName(typex.name);

    if(typex.name != null)
        typex = Type.merge(typex, getTypeByName(typex.name));
    else // type.name == null
        typex = Type.merge(typex, getTypeByNTypes(new Pair(typex.type32, typex.type64)));
    putTypeByName(typex.name, typex);
    putTypeByNTypes(new Pair(typex.type32, typex.type64), typex);
    return typex;
}
 
Example #5
Source File: TypeCache.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
/**
 * When a new Type is discovered, pass it through here to
 * hit the cache, potentially merge with other types, etc.
 *
 * Always do:
 *
 *   Type type = TypeCache.inst().pingType(new Type(a,b,c));
 *
 * because this should return a better merge for you.
 */
public Type pingType(final Type type_){
    Type typex = type_;

    // XXX Exception for void* clashes: void* (^{OpaqueCMProfileRef}), void* (^{X}), etc
    if("void*".equals(typex.name) && getTypeByName(typex.name)!=null)
        return getTypeByName(typex.name);

    if(typex.name != null)
        typex = Type.merge(typex, getTypeByName(typex.name));
    else // type.name == null
        typex = Type.merge(typex, getTypeByNTypes(new Pair(typex.type32, typex.type64)));
    putTypeByName(typex.name, typex);
    putTypeByNTypes(new Pair(typex.type32, typex.type64), typex);
    return typex;
}
 
Example #6
Source File: TypeCache.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
/**
 * When a new Type is discovered, pass it through here to
 * hit the cache, potentially merge with other types, etc.
 *
 * Always do:
 *
 *   Type type = TypeCache.inst().pingType(new Type(a,b,c));
 *
 * because this should return a better merge for you.
 */
public Type pingType(final Type type_){
    Type typex = type_;

    // XXX Exception for void* clashes: void* (^{OpaqueCMProfileRef}), void* (^{X}), etc
    if("void*".equals(typex.name) && getTypeByName(typex.name)!=null)
        return getTypeByName(typex.name);

    if(typex.name != null)
        typex = Type.merge(typex, getTypeByName(typex.name));
    else // type.name == null
        typex = Type.merge(typex, getTypeByNTypes(new Pair(typex.type32, typex.type64)));
    putTypeByName(typex.name, typex);
    putTypeByNTypes(new Pair(typex.type32, typex.type64), typex);
    return typex;
}
 
Example #7
Source File: TypeCache.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * When a new Type is discovered, pass it through here to
 * hit the cache, potentially merge with other types, etc.
 *
 * Always do:
 *
 *   Type type = TypeCache.inst().pingType(new Type(a,b,c));
 *
 * because this should return a better merge for you.
 */
public Type pingType(final Type type_){
    Type typex = type_;

    // XXX Exception for void* clashes: void* (^{OpaqueCMProfileRef}), void* (^{X}), etc
    if("void*".equals(typex.name) && getTypeByName(typex.name)!=null)
        return getTypeByName(typex.name);

    if(typex.name != null)
        typex = Type.merge(typex, getTypeByName(typex.name));
    else // type.name == null
        typex = Type.merge(typex, getTypeByNTypes(new Pair(typex.type32, typex.type64)));
    putTypeByName(typex.name, typex);
    putTypeByNTypes(new Pair(typex.type32, typex.type64), typex);
    return typex;
}
 
Example #8
Source File: TypeCache.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * When a new Type is discovered, pass it through here to
 * hit the cache, potentially merge with other types, etc.
 *
 * Always do:
 *
 *   Type type = TypeCache.inst().pingType(new Type(a,b,c));
 *
 * because this should return a better merge for you.
 */
public Type pingType(final Type type_){
    Type typex = type_;

    // XXX Exception for void* clashes: void* (^{OpaqueCMProfileRef}), void* (^{X}), etc
    if("void*".equals(typex.name) && getTypeByName(typex.name)!=null)
        return getTypeByName(typex.name);

    if(typex.name != null)
        typex = Type.merge(typex, getTypeByName(typex.name));
    else // type.name == null
        typex = Type.merge(typex, getTypeByNTypes(new Pair(typex.type32, typex.type64)));
    putTypeByName(typex.name, typex);
    putTypeByNTypes(new Pair(typex.type32, typex.type64), typex);
    return typex;
}
 
Example #9
Source File: TypeCache.java    From jdk8u_jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * When a new Type is discovered, pass it through here to
 * hit the cache, potentially merge with other types, etc.
 *
 * Always do:
 *
 *   Type type = TypeCache.inst().pingType(new Type(a,b,c));
 *
 * because this should return a better merge for you.
 */
public Type pingType(final Type type_){
    Type typex = type_;

    // XXX Exception for void* clashes: void* (^{OpaqueCMProfileRef}), void* (^{X}), etc
    if("void*".equals(typex.name) && getTypeByName(typex.name)!=null)
        return getTypeByName(typex.name);

    if(typex.name != null)
        typex = Type.merge(typex, getTypeByName(typex.name));
    else // type.name == null
        typex = Type.merge(typex, getTypeByNTypes(new Pair(typex.type32, typex.type64)));
    putTypeByName(typex.name, typex);
    putTypeByNTypes(new Pair(typex.type32, typex.type64), typex);
    return typex;
}
 
Example #10
Source File: TypeCache.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * When a new Type is discovered, pass it through here to
 * hit the cache, potentially merge with other types, etc.
 *
 * Always do:
 *
 *   Type type = TypeCache.inst().pingType(new Type(a,b,c));
 *
 * because this should return a better merge for you.
 */
public Type pingType(final Type type_){
    Type typex = type_;

    // XXX Exception for void* clashes: void* (^{OpaqueCMProfileRef}), void* (^{X}), etc
    if("void*".equals(typex.name) && getTypeByName(typex.name)!=null)
        return getTypeByName(typex.name);

    if(typex.name != null)
        typex = Type.merge(typex, getTypeByName(typex.name));
    else // type.name == null
        typex = Type.merge(typex, getTypeByNTypes(new Pair(typex.type32, typex.type64)));
    putTypeByName(typex.name, typex);
    putTypeByNTypes(new Pair(typex.type32, typex.type64), typex);
    return typex;
}
 
Example #11
Source File: TypeCache.java    From jdk8u-jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * When a new Type is discovered, pass it through here to
 * hit the cache, potentially merge with other types, etc.
 *
 * Always do:
 *
 *   Type type = TypeCache.inst().pingType(new Type(a,b,c));
 *
 * because this should return a better merge for you.
 */
public Type pingType(final Type type_){
    Type typex = type_;

    // XXX Exception for void* clashes: void* (^{OpaqueCMProfileRef}), void* (^{X}), etc
    if("void*".equals(typex.name) && getTypeByName(typex.name)!=null)
        return getTypeByName(typex.name);

    if(typex.name != null)
        typex = Type.merge(typex, getTypeByName(typex.name));
    else // type.name == null
        typex = Type.merge(typex, getTypeByNTypes(new Pair(typex.type32, typex.type64)));
    putTypeByName(typex.name, typex);
    putTypeByNTypes(new Pair(typex.type32, typex.type64), typex);
    return typex;
}
 
Example #12
Source File: TypeCache.java    From jdk8u-dev-jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * When a new Type is discovered, pass it through here to
 * hit the cache, potentially merge with other types, etc.
 *
 * Always do:
 *
 *   Type type = TypeCache.inst().pingType(new Type(a,b,c));
 *
 * because this should return a better merge for you.
 */
public Type pingType(final Type type_){
    Type typex = type_;

    // XXX Exception for void* clashes: void* (^{OpaqueCMProfileRef}), void* (^{X}), etc
    if("void*".equals(typex.name) && getTypeByName(typex.name)!=null)
        return getTypeByName(typex.name);

    if(typex.name != null)
        typex = Type.merge(typex, getTypeByName(typex.name));
    else // type.name == null
        typex = Type.merge(typex, getTypeByNTypes(new Pair(typex.type32, typex.type64)));
    putTypeByName(typex.name, typex);
    putTypeByNTypes(new Pair(typex.type32, typex.type64), typex);
    return typex;
}
 
Example #13
Source File: ComplexCoderDescriptor.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public static ComplexCoderDescriptor getCoderDescriptorFor(final NType nt32, final NType nt64) {
    Pair<NType,NType> cacheKey = new Pair(nt32, nt64);
    if(cache.containsKey(cacheKey)) return cache.get(cacheKey);

    final PrimitiveCoderDescriptor desc32 = PrimitiveCoderDescriptor.getCoderDescriptorFor((NPrimitive) nt32);
    final PrimitiveCoderDescriptor desc64 = PrimitiveCoderDescriptor.getCoderDescriptorFor((NPrimitive) nt64);

    final ComplexCoderDescriptor newDesc = nt32.equals(nt64) ? new ComplexCoderDescriptor(desc64) : new MixedEncodingDescriptor(desc32, desc64);
    cache.put(cacheKey, newDesc);
    if(newDesc instanceof MixedEncodingDescriptor)
        mixedEncodingDescriptors.add((MixedEncodingDescriptor) newDesc);

    return newDesc;
}
 
Example #14
Source File: ComplexCoderDescriptor.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public static ComplexCoderDescriptor getCoderDescriptorFor(final NType nt32, final NType nt64) {
    Pair<NType,NType> cacheKey = new Pair(nt32, nt64);
    if(cache.containsKey(cacheKey)) return cache.get(cacheKey);

    final PrimitiveCoderDescriptor desc32 = PrimitiveCoderDescriptor.getCoderDescriptorFor((NPrimitive) nt32);
    final PrimitiveCoderDescriptor desc64 = PrimitiveCoderDescriptor.getCoderDescriptorFor((NPrimitive) nt64);

    final ComplexCoderDescriptor newDesc = nt32.equals(nt64) ? new ComplexCoderDescriptor(desc64) : new MixedEncodingDescriptor(desc32, desc64);
    cache.put(cacheKey, newDesc);
    if(newDesc instanceof MixedEncodingDescriptor)
        mixedEncodingDescriptors.add((MixedEncodingDescriptor) newDesc);

    return newDesc;
}
 
Example #15
Source File: ComplexCoderDescriptor.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
public static ComplexCoderDescriptor getCoderDescriptorFor(final NType nt32, final NType nt64) {
    Pair<NType,NType> cacheKey = new Pair(nt32, nt64);
    if(cache.containsKey(cacheKey)) return cache.get(cacheKey);

    final PrimitiveCoderDescriptor desc32 = PrimitiveCoderDescriptor.getCoderDescriptorFor((NPrimitive) nt32);
    final PrimitiveCoderDescriptor desc64 = PrimitiveCoderDescriptor.getCoderDescriptorFor((NPrimitive) nt64);

    final ComplexCoderDescriptor newDesc = nt32.equals(nt64) ? new ComplexCoderDescriptor(desc64) : new MixedEncodingDescriptor(desc32, desc64);
    cache.put(cacheKey, newDesc);
    if(newDesc instanceof MixedEncodingDescriptor)
        mixedEncodingDescriptors.add((MixedEncodingDescriptor) newDesc);

    return newDesc;
}
 
Example #16
Source File: ComplexCoderDescriptor.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public static ComplexCoderDescriptor getCoderDescriptorFor(final NType nt32, final NType nt64) {
    Pair<NType,NType> cacheKey = new Pair(nt32, nt64);
    if(cache.containsKey(cacheKey)) return cache.get(cacheKey);

    final PrimitiveCoderDescriptor desc32 = PrimitiveCoderDescriptor.getCoderDescriptorFor((NPrimitive) nt32);
    final PrimitiveCoderDescriptor desc64 = PrimitiveCoderDescriptor.getCoderDescriptorFor((NPrimitive) nt64);

    final ComplexCoderDescriptor newDesc = nt32.equals(nt64) ? new ComplexCoderDescriptor(desc64) : new MixedEncodingDescriptor(desc32, desc64);
    cache.put(cacheKey, newDesc);
    if(newDesc instanceof MixedEncodingDescriptor)
        mixedEncodingDescriptors.add((MixedEncodingDescriptor) newDesc);

    return newDesc;
}
 
Example #17
Source File: ComplexCoderDescriptor.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
public static ComplexCoderDescriptor getCoderDescriptorFor(final NType nt32, final NType nt64) {
    Pair<NType,NType> cacheKey = new Pair(nt32, nt64);
    if(cache.containsKey(cacheKey)) return cache.get(cacheKey);

    final PrimitiveCoderDescriptor desc32 = PrimitiveCoderDescriptor.getCoderDescriptorFor((NPrimitive) nt32);
    final PrimitiveCoderDescriptor desc64 = PrimitiveCoderDescriptor.getCoderDescriptorFor((NPrimitive) nt64);

    final ComplexCoderDescriptor newDesc = nt32.equals(nt64) ? new ComplexCoderDescriptor(desc64) : new MixedEncodingDescriptor(desc32, desc64);
    cache.put(cacheKey, newDesc);
    if(newDesc instanceof MixedEncodingDescriptor)
        mixedEncodingDescriptors.add((MixedEncodingDescriptor) newDesc);

    return newDesc;
}
 
Example #18
Source File: ComplexCoderDescriptor.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
public static ComplexCoderDescriptor getCoderDescriptorFor(final NType nt32, final NType nt64) {
    Pair<NType,NType> cacheKey = new Pair(nt32, nt64);
    if(cache.containsKey(cacheKey)) return cache.get(cacheKey);

    final PrimitiveCoderDescriptor desc32 = PrimitiveCoderDescriptor.getCoderDescriptorFor((NPrimitive) nt32);
    final PrimitiveCoderDescriptor desc64 = PrimitiveCoderDescriptor.getCoderDescriptorFor((NPrimitive) nt64);

    final ComplexCoderDescriptor newDesc = nt32.equals(nt64) ? new ComplexCoderDescriptor(desc64) : new MixedEncodingDescriptor(desc32, desc64);
    cache.put(cacheKey, newDesc);
    if(newDesc instanceof MixedEncodingDescriptor)
        mixedEncodingDescriptors.add((MixedEncodingDescriptor) newDesc);

    return newDesc;
}
 
Example #19
Source File: ComplexCoderDescriptor.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public static ComplexCoderDescriptor getCoderDescriptorFor(final NType nt32, final NType nt64) {
    Pair<NType,NType> cacheKey = new Pair(nt32, nt64);
    if(cache.containsKey(cacheKey)) return cache.get(cacheKey);

    final PrimitiveCoderDescriptor desc32 = PrimitiveCoderDescriptor.getCoderDescriptorFor((NPrimitive) nt32);
    final PrimitiveCoderDescriptor desc64 = PrimitiveCoderDescriptor.getCoderDescriptorFor((NPrimitive) nt64);

    final ComplexCoderDescriptor newDesc = nt32.equals(nt64) ? new ComplexCoderDescriptor(desc64) : new MixedEncodingDescriptor(desc32, desc64);
    cache.put(cacheKey, newDesc);
    if(newDesc instanceof MixedEncodingDescriptor)
        mixedEncodingDescriptors.add((MixedEncodingDescriptor) newDesc);

    return newDesc;
}
 
Example #20
Source File: ComplexCoderDescriptor.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
public static ComplexCoderDescriptor getCoderDescriptorFor(final NType nt32, final NType nt64) {
    Pair<NType,NType> cacheKey = new Pair(nt32, nt64);
    if(cache.containsKey(cacheKey)) return cache.get(cacheKey);

    final PrimitiveCoderDescriptor desc32 = PrimitiveCoderDescriptor.getCoderDescriptorFor((NPrimitive) nt32);
    final PrimitiveCoderDescriptor desc64 = PrimitiveCoderDescriptor.getCoderDescriptorFor((NPrimitive) nt64);

    final ComplexCoderDescriptor newDesc = nt32.equals(nt64) ? new ComplexCoderDescriptor(desc64) : new MixedEncodingDescriptor(desc32, desc64);
    cache.put(cacheKey, newDesc);
    if(newDesc instanceof MixedEncodingDescriptor)
        mixedEncodingDescriptors.add((MixedEncodingDescriptor) newDesc);

    return newDesc;
}
 
Example #21
Source File: ComplexCoderDescriptor.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public static ComplexCoderDescriptor getCoderDescriptorFor(final NType nt32, final NType nt64) {
    Pair<NType,NType> cacheKey = new Pair(nt32, nt64);
    if(cache.containsKey(cacheKey)) return cache.get(cacheKey);

    final PrimitiveCoderDescriptor desc32 = PrimitiveCoderDescriptor.getCoderDescriptorFor((NPrimitive) nt32);
    final PrimitiveCoderDescriptor desc64 = PrimitiveCoderDescriptor.getCoderDescriptorFor((NPrimitive) nt64);

    final ComplexCoderDescriptor newDesc = nt32.equals(nt64) ? new ComplexCoderDescriptor(desc64) : new MixedEncodingDescriptor(desc32, desc64);
    cache.put(cacheKey, newDesc);
    if(newDesc instanceof MixedEncodingDescriptor)
        mixedEncodingDescriptors.add((MixedEncodingDescriptor) newDesc);

    return newDesc;
}
 
Example #22
Source File: ComplexCoderDescriptor.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
public static ComplexCoderDescriptor getCoderDescriptorFor(final NType nt32, final NType nt64) {
    Pair<NType,NType> cacheKey = new Pair(nt32, nt64);
    if(cache.containsKey(cacheKey)) return cache.get(cacheKey);

    final PrimitiveCoderDescriptor desc32 = PrimitiveCoderDescriptor.getCoderDescriptorFor((NPrimitive) nt32);
    final PrimitiveCoderDescriptor desc64 = PrimitiveCoderDescriptor.getCoderDescriptorFor((NPrimitive) nt64);

    final ComplexCoderDescriptor newDesc = nt32.equals(nt64) ? new ComplexCoderDescriptor(desc64) : new MixedEncodingDescriptor(desc32, desc64);
    cache.put(cacheKey, newDesc);
    if(newDesc instanceof MixedEncodingDescriptor)
        mixedEncodingDescriptors.add((MixedEncodingDescriptor) newDesc);

    return newDesc;
}
 
Example #23
Source File: ComplexCoderDescriptor.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public static ComplexCoderDescriptor getCoderDescriptorFor(final NType nt32, final NType nt64) {
    Pair<NType,NType> cacheKey = new Pair(nt32, nt64);
    if(cache.containsKey(cacheKey)) return cache.get(cacheKey);

    final PrimitiveCoderDescriptor desc32 = PrimitiveCoderDescriptor.getCoderDescriptorFor((NPrimitive) nt32);
    final PrimitiveCoderDescriptor desc64 = PrimitiveCoderDescriptor.getCoderDescriptorFor((NPrimitive) nt64);

    final ComplexCoderDescriptor newDesc = nt32.equals(nt64) ? new ComplexCoderDescriptor(desc64) : new MixedEncodingDescriptor(desc32, desc64);
    cache.put(cacheKey, newDesc);
    if(newDesc instanceof MixedEncodingDescriptor)
        mixedEncodingDescriptors.add((MixedEncodingDescriptor) newDesc);

    return newDesc;
}
 
Example #24
Source File: ComplexCoderDescriptor.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public static ComplexCoderDescriptor getCoderDescriptorFor(final NType nt32, final NType nt64) {
    Pair<NType,NType> cacheKey = new Pair(nt32, nt64);
    if(cache.containsKey(cacheKey)) return cache.get(cacheKey);

    final PrimitiveCoderDescriptor desc32 = PrimitiveCoderDescriptor.getCoderDescriptorFor((NPrimitive) nt32);
    final PrimitiveCoderDescriptor desc64 = PrimitiveCoderDescriptor.getCoderDescriptorFor((NPrimitive) nt64);

    final ComplexCoderDescriptor newDesc = nt32.equals(nt64) ? new ComplexCoderDescriptor(desc64) : new MixedEncodingDescriptor(desc32, desc64);
    cache.put(cacheKey, newDesc);
    if(newDesc instanceof MixedEncodingDescriptor)
        mixedEncodingDescriptors.add((MixedEncodingDescriptor) newDesc);

    return newDesc;
}
 
Example #25
Source File: Type.java    From dragonwell8_jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override public String toString() {
    return _toString != null ? _toString : (_toString = name + " " + new Pair(type32, type64).toString());
}
 
Example #26
Source File: Type.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
@Override public String toString() {
    return _toString != null ? _toString : (_toString = name + " " + new Pair(type32, type64).toString());
}
 
Example #27
Source File: Type.java    From jdk8u-dev-jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override public String toString() {
    return _toString != null ? _toString : (_toString = name + " " + new Pair(type32, type64).toString());
}
 
Example #28
Source File: Type.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override public String toString() {
    return _toString != null ? _toString : (_toString = name + " " + new Pair(type32, type64).toString());
}
 
Example #29
Source File: Type.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
@Override public String toString() {
    return _toString != null ? _toString : (_toString = name + " " + new Pair(type32, type64).toString());
}
 
Example #30
Source File: Type.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override public String toString() {
    return _toString != null ? _toString : (_toString = name + " " + new Pair(type32, type64).toString());
}