Java Code Examples for com.apple.internal.jobjc.generator.utils.QA

The following examples show how to use com.apple.internal.jobjc.generator.utils.QA. These examples are extracted from open source projects. 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 Project: dragonwell8_jdk   Source File: Type.java    License: GNU General Public License v2.0 6 votes vote down vote up
public static Type merge(Type a, Type b) throws MergeFailed{
    if(a!=null && b==null) return a;
    if(a==null && b!=null) return b;
    if(QA.bothNullOrEquals(a, b)) return a;
    if (exceptions.containsKey(a.name)) return exceptions.get(a.name); // HACK BS bug
    if(a.name != null && b.name != null && !a.name.equals(b.name)){
        System.out.println("Merging:");
        System.out.println("\ta.....: " + a.toString());
        System.out.println("\tb.....: " + b.toString());
    }
    final Type merged = new Type(NTypeMerger.inst().mergeName(a.name, b.name),
            NTypeMerger.inst().merge(a.type32, b.type32),
            NTypeMerger.inst().merge(a.type64, b.type64));
    if(a.name != null && b.name != null && !a.name.equals(b.name)){
        System.out.println("\tmerged: " + merged.toString());
    }
    return merged;
}
 
Example 2
Source Project: jdk8u_jdk   Source File: Type.java    License: GNU General Public License v2.0 6 votes vote down vote up
public static Type merge(Type a, Type b) throws MergeFailed{
    if(a!=null && b==null) return a;
    if(a==null && b!=null) return b;
    if(QA.bothNullOrEquals(a, b)) return a;
    if (exceptions.containsKey(a.name)) return exceptions.get(a.name); // HACK BS bug
    if(a.name != null && b.name != null && !a.name.equals(b.name)){
        System.out.println("Merging:");
        System.out.println("\ta.....: " + a.toString());
        System.out.println("\tb.....: " + b.toString());
    }
    final Type merged = new Type(NTypeMerger.inst().mergeName(a.name, b.name),
            NTypeMerger.inst().merge(a.type32, b.type32),
            NTypeMerger.inst().merge(a.type64, b.type64));
    if(a.name != null && b.name != null && !a.name.equals(b.name)){
        System.out.println("\tmerged: " + merged.toString());
    }
    return merged;
}
 
Example 3
Source Project: TencentKona-8   Source File: Type.java    License: GNU General Public License v2.0 6 votes vote down vote up
public static Type merge(Type a, Type b) throws MergeFailed{
    if(a!=null && b==null) return a;
    if(a==null && b!=null) return b;
    if(QA.bothNullOrEquals(a, b)) return a;
    if (exceptions.containsKey(a.name)) return exceptions.get(a.name); // HACK BS bug
    if(a.name != null && b.name != null && !a.name.equals(b.name)){
        System.out.println("Merging:");
        System.out.println("\ta.....: " + a.toString());
        System.out.println("\tb.....: " + b.toString());
    }
    final Type merged = new Type(NTypeMerger.inst().mergeName(a.name, b.name),
            NTypeMerger.inst().merge(a.type32, b.type32),
            NTypeMerger.inst().merge(a.type64, b.type64));
    if(a.name != null && b.name != null && !a.name.equals(b.name)){
        System.out.println("\tmerged: " + merged.toString());
    }
    return merged;
}
 
Example 4
Source Project: jdk8u60   Source File: Type.java    License: GNU General Public License v2.0 6 votes vote down vote up
public static Type merge(Type a, Type b) throws MergeFailed{
    if(a!=null && b==null) return a;
    if(a==null && b!=null) return b;
    if(QA.bothNullOrEquals(a, b)) return a;
    if (exceptions.containsKey(a.name)) return exceptions.get(a.name); // HACK BS bug
    if(a.name != null && b.name != null && !a.name.equals(b.name)){
        System.out.println("Merging:");
        System.out.println("\ta.....: " + a.toString());
        System.out.println("\tb.....: " + b.toString());
    }
    final Type merged = new Type(NTypeMerger.inst().mergeName(a.name, b.name),
            NTypeMerger.inst().merge(a.type32, b.type32),
            NTypeMerger.inst().merge(a.type64, b.type64));
    if(a.name != null && b.name != null && !a.name.equals(b.name)){
        System.out.println("\tmerged: " + merged.toString());
    }
    return merged;
}
 
Example 5
Source Project: openjdk-jdk8u   Source File: Type.java    License: GNU General Public License v2.0 6 votes vote down vote up
public static Type merge(Type a, Type b) throws MergeFailed{
    if(a!=null && b==null) return a;
    if(a==null && b!=null) return b;
    if(QA.bothNullOrEquals(a, b)) return a;
    if (exceptions.containsKey(a.name)) return exceptions.get(a.name); // HACK BS bug
    if(a.name != null && b.name != null && !a.name.equals(b.name)){
        System.out.println("Merging:");
        System.out.println("\ta.....: " + a.toString());
        System.out.println("\tb.....: " + b.toString());
    }
    final Type merged = new Type(NTypeMerger.inst().mergeName(a.name, b.name),
            NTypeMerger.inst().merge(a.type32, b.type32),
            NTypeMerger.inst().merge(a.type64, b.type64));
    if(a.name != null && b.name != null && !a.name.equals(b.name)){
        System.out.println("\tmerged: " + merged.toString());
    }
    return merged;
}
 
Example 6
Source Project: openjdk-jdk8u-backup   Source File: Type.java    License: GNU General Public License v2.0 6 votes vote down vote up
public static Type merge(Type a, Type b) throws MergeFailed{
    if(a!=null && b==null) return a;
    if(a==null && b!=null) return b;
    if(QA.bothNullOrEquals(a, b)) return a;
    if (exceptions.containsKey(a.name)) return exceptions.get(a.name); // HACK BS bug
    if(a.name != null && b.name != null && !a.name.equals(b.name)){
        System.out.println("Merging:");
        System.out.println("\ta.....: " + a.toString());
        System.out.println("\tb.....: " + b.toString());
    }
    final Type merged = new Type(NTypeMerger.inst().mergeName(a.name, b.name),
            NTypeMerger.inst().merge(a.type32, b.type32),
            NTypeMerger.inst().merge(a.type64, b.type64));
    if(a.name != null && b.name != null && !a.name.equals(b.name)){
        System.out.println("\tmerged: " + merged.toString());
    }
    return merged;
}
 
Example 7
Source Project: openjdk-8   Source File: Type.java    License: GNU General Public License v2.0 6 votes vote down vote up
public static Type merge(Type a, Type b) throws MergeFailed{
    if(a!=null && b==null) return a;
    if(a==null && b!=null) return b;
    if(QA.bothNullOrEquals(a, b)) return a;
    if (exceptions.containsKey(a.name)) return exceptions.get(a.name); // HACK BS bug
    if(a.name != null && b.name != null && !a.name.equals(b.name)){
        System.out.println("Merging:");
        System.out.println("\ta.....: " + a.toString());
        System.out.println("\tb.....: " + b.toString());
    }
    final Type merged = new Type(NTypeMerger.inst().mergeName(a.name, b.name),
            NTypeMerger.inst().merge(a.type32, b.type32),
            NTypeMerger.inst().merge(a.type64, b.type64));
    if(a.name != null && b.name != null && !a.name.equals(b.name)){
        System.out.println("\tmerged: " + merged.toString());
    }
    return merged;
}
 
Example 8
Source Project: hottub   Source File: Type.java    License: GNU General Public License v2.0 6 votes vote down vote up
public static Type merge(Type a, Type b) throws MergeFailed{
    if(a!=null && b==null) return a;
    if(a==null && b!=null) return b;
    if(QA.bothNullOrEquals(a, b)) return a;
    if (exceptions.containsKey(a.name)) return exceptions.get(a.name); // HACK BS bug
    if(a.name != null && b.name != null && !a.name.equals(b.name)){
        System.out.println("Merging:");
        System.out.println("\ta.....: " + a.toString());
        System.out.println("\tb.....: " + b.toString());
    }
    final Type merged = new Type(NTypeMerger.inst().mergeName(a.name, b.name),
            NTypeMerger.inst().merge(a.type32, b.type32),
            NTypeMerger.inst().merge(a.type64, b.type64));
    if(a.name != null && b.name != null && !a.name.equals(b.name)){
        System.out.println("\tmerged: " + merged.toString());
    }
    return merged;
}
 
Example 9
Source Project: openjdk-8-source   Source File: Type.java    License: GNU General Public License v2.0 6 votes vote down vote up
public static Type merge(Type a, Type b) throws MergeFailed{
    if(a!=null && b==null) return a;
    if(a==null && b!=null) return b;
    if(QA.bothNullOrEquals(a, b)) return a;
    if (exceptions.containsKey(a.name)) return exceptions.get(a.name); // HACK BS bug
    if(a.name != null && b.name != null && !a.name.equals(b.name)){
        System.out.println("Merging:");
        System.out.println("\ta.....: " + a.toString());
        System.out.println("\tb.....: " + b.toString());
    }
    final Type merged = new Type(NTypeMerger.inst().mergeName(a.name, b.name),
            NTypeMerger.inst().merge(a.type32, b.type32),
            NTypeMerger.inst().merge(a.type64, b.type64));
    if(a.name != null && b.name != null && !a.name.equals(b.name)){
        System.out.println("\tmerged: " + merged.toString());
    }
    return merged;
}
 
Example 10
Source Project: dragonwell8_jdk   Source File: Struct.java    License: GNU General Public License v2.0 5 votes vote down vote up
public Field(String name, NField field32, NField field64) {
    QA.nonNull(name);
    this.name = name;
    // TODO <field> really should have a declared_type attr. See if BS patch is possible.
    this.type = Type.getType(null, field32.type, field64.type);
    this.field32 = field32;
    this.field64 = field64;
}
 
Example 11
Source Project: dragonwell8_jdk   Source File: Type.java    License: GNU General Public License v2.0 5 votes vote down vote up
@Override public boolean equals(Object o){
    if(o==null || !(o instanceof Type)) return false;
    Type t = (Type) o;
    return QA.bothNullOrEquals(t.name, this.name)
    && t.type32.equals(this.type32)
    && t.type64.equals(this.type64);
}
 
Example 12
Source Project: TencentKona-8   Source File: Struct.java    License: GNU General Public License v2.0 5 votes vote down vote up
public Field(String name, NField field32, NField field64) {
    QA.nonNull(name);
    this.name = name;
    // TODO <field> really should have a declared_type attr. See if BS patch is possible.
    this.type = Type.getType(null, field32.type, field64.type);
    this.field32 = field32;
    this.field64 = field64;
}
 
Example 13
Source Project: TencentKona-8   Source File: Type.java    License: GNU General Public License v2.0 5 votes vote down vote up
@Override public boolean equals(Object o){
    if(o==null || !(o instanceof Type)) return false;
    Type t = (Type) o;
    return QA.bothNullOrEquals(t.name, this.name)
    && t.type32.equals(this.type32)
    && t.type64.equals(this.type64);
}
 
Example 14
Source Project: jdk8u60   Source File: Struct.java    License: GNU General Public License v2.0 5 votes vote down vote up
public Field(String name, NField field32, NField field64) {
    QA.nonNull(name);
    this.name = name;
    // TODO <field> really should have a declared_type attr. See if BS patch is possible.
    this.type = Type.getType(null, field32.type, field64.type);
    this.field32 = field32;
    this.field64 = field64;
}
 
Example 15
Source Project: jdk8u_jdk   Source File: Type.java    License: GNU General Public License v2.0 5 votes vote down vote up
@Override public boolean equals(Object o){
    if(o==null || !(o instanceof Type)) return false;
    Type t = (Type) o;
    return QA.bothNullOrEquals(t.name, this.name)
    && t.type32.equals(this.type32)
    && t.type64.equals(this.type64);
}
 
Example 16
Source Project: jdk8u60   Source File: Type.java    License: GNU General Public License v2.0 5 votes vote down vote up
@Override public boolean equals(Object o){
    if(o==null || !(o instanceof Type)) return false;
    Type t = (Type) o;
    return QA.bothNullOrEquals(t.name, this.name)
    && t.type32.equals(this.type32)
    && t.type64.equals(this.type64);
}
 
Example 17
Source Project: openjdk-jdk8u   Source File: Struct.java    License: GNU General Public License v2.0 5 votes vote down vote up
public Field(String name, NField field32, NField field64) {
    QA.nonNull(name);
    this.name = name;
    // TODO <field> really should have a declared_type attr. See if BS patch is possible.
    this.type = Type.getType(null, field32.type, field64.type);
    this.field32 = field32;
    this.field64 = field64;
}
 
Example 18
Source Project: openjdk-jdk8u   Source File: Type.java    License: GNU General Public License v2.0 5 votes vote down vote up
@Override public boolean equals(Object o){
    if(o==null || !(o instanceof Type)) return false;
    Type t = (Type) o;
    return QA.bothNullOrEquals(t.name, this.name)
    && t.type32.equals(this.type32)
    && t.type64.equals(this.type64);
}
 
Example 19
Source Project: openjdk-jdk8u-backup   Source File: Struct.java    License: GNU General Public License v2.0 5 votes vote down vote up
public Field(String name, NField field32, NField field64) {
    QA.nonNull(name);
    this.name = name;
    // TODO <field> really should have a declared_type attr. See if BS patch is possible.
    this.type = Type.getType(null, field32.type, field64.type);
    this.field32 = field32;
    this.field64 = field64;
}
 
Example 20
Source Project: openjdk-jdk8u-backup   Source File: Type.java    License: GNU General Public License v2.0 5 votes vote down vote up
@Override public boolean equals(Object o){
    if(o==null || !(o instanceof Type)) return false;
    Type t = (Type) o;
    return QA.bothNullOrEquals(t.name, this.name)
    && t.type32.equals(this.type32)
    && t.type64.equals(this.type64);
}
 
Example 21
Source Project: jdk8u-jdk   Source File: Type.java    License: GNU General Public License v2.0 5 votes vote down vote up
@Override public boolean equals(Object o){
    if(o==null || !(o instanceof Type)) return false;
    Type t = (Type) o;
    return QA.bothNullOrEquals(t.name, this.name)
    && t.type32.equals(this.type32)
    && t.type64.equals(this.type64);
}
 
Example 22
Source Project: hottub   Source File: Struct.java    License: GNU General Public License v2.0 5 votes vote down vote up
public Field(String name, NField field32, NField field64) {
    QA.nonNull(name);
    this.name = name;
    // TODO <field> really should have a declared_type attr. See if BS patch is possible.
    this.type = Type.getType(null, field32.type, field64.type);
    this.field32 = field32;
    this.field64 = field64;
}
 
Example 23
Source Project: hottub   Source File: Type.java    License: GNU General Public License v2.0 5 votes vote down vote up
@Override public boolean equals(Object o){
    if(o==null || !(o instanceof Type)) return false;
    Type t = (Type) o;
    return QA.bothNullOrEquals(t.name, this.name)
    && t.type32.equals(this.type32)
    && t.type64.equals(this.type64);
}
 
Example 24
Source Project: openjdk-8-source   Source File: Struct.java    License: GNU General Public License v2.0 5 votes vote down vote up
public Field(String name, NField field32, NField field64) {
    QA.nonNull(name);
    this.name = name;
    // TODO <field> really should have a declared_type attr. See if BS patch is possible.
    this.type = Type.getType(null, field32.type, field64.type);
    this.field32 = field32;
    this.field64 = field64;
}
 
Example 25
Source Project: jdk8u_jdk   Source File: Struct.java    License: GNU General Public License v2.0 5 votes vote down vote up
public Field(String name, NField field32, NField field64) {
    QA.nonNull(name);
    this.name = name;
    // TODO <field> really should have a declared_type attr. See if BS patch is possible.
    this.type = Type.getType(null, field32.type, field64.type);
    this.field32 = field32;
    this.field64 = field64;
}
 
Example 26
Source Project: openjdk-8-source   Source File: Type.java    License: GNU General Public License v2.0 5 votes vote down vote up
@Override public boolean equals(Object o){
    if(o==null || !(o instanceof Type)) return false;
    Type t = (Type) o;
    return QA.bothNullOrEquals(t.name, this.name)
    && t.type32.equals(this.type32)
    && t.type64.equals(this.type64);
}
 
Example 27
Source Project: openjdk-8   Source File: Struct.java    License: GNU General Public License v2.0 5 votes vote down vote up
public Field(String name, NField field32, NField field64) {
    QA.nonNull(name);
    this.name = name;
    // TODO <field> really should have a declared_type attr. See if BS patch is possible.
    this.type = Type.getType(null, field32.type, field64.type);
    this.field32 = field32;
    this.field64 = field64;
}
 
Example 28
Source Project: openjdk-8   Source File: Type.java    License: GNU General Public License v2.0 5 votes vote down vote up
@Override public boolean equals(Object o){
    if(o==null || !(o instanceof Type)) return false;
    Type t = (Type) o;
    return QA.bothNullOrEquals(t.name, this.name)
    && t.type32.equals(this.type32)
    && t.type64.equals(this.type64);
}
 
Example 29
Source Project: dragonwell8_jdk   Source File: NType.java    License: GNU General Public License v2.0 4 votes vote down vote up
public NPointer(NType subject){
    super(4, 8);
    QA.nonNull(subject);
    this.subject = subject;
}
 
Example 30
Source Project: dragonwell8_jdk   Source File: NType.java    License: GNU General Public License v2.0 4 votes vote down vote up
public NField(String name, NType type, Map<Width,Integer> offset) {
    QA.nonNull(name, type, offset);
    this.name = name;
    this.type = type;
    this.offset = offset;
}