Search in sources :

Example 16 with Label

use of dyvilx.tools.asm.Label in project Dyvil by Dyvil.

the class SpecialIntrinsicData method getLabels.

@Nullable
public Label[] getLabels() {
    if (this.targets == null) {
        return null;
    }
    final int length = this.targets.length;
    if (length <= 0) {
        return null;
    }
    final Label[] labels = new Label[length];
    for (int i = 0; i < length; i++) {
        if (this.targets[i]) {
            labels[i] = new Label();
        }
    }
    return labels;
}
Also used : Label(dyvilx.tools.asm.Label) Nullable(dyvil.annotation.internal.Nullable)

Aggregations

Label (dyvilx.tools.asm.Label)16 MethodWriterImpl (dyvilx.tools.compiler.backend.MethodWriterImpl)4 IType (dyvilx.tools.compiler.ast.type.IType)3 MethodWriter (dyvilx.tools.compiler.backend.MethodWriter)3 Nullable (dyvil.annotation.internal.Nullable)1 HashSet (dyvil.collection.mutable.HashSet)1 FieldVisitor (dyvilx.tools.asm.FieldVisitor)1 ParameterList (dyvilx.tools.compiler.ast.parameter.ParameterList)1 Pattern (dyvilx.tools.compiler.ast.pattern.Pattern)1 ArrayType (dyvilx.tools.compiler.ast.type.compound.ArrayType)1