Examples of insSwitchTable()


Examples of objot.bytecode.Instruction.insSwitchTable()

    p.setDescCi(cons.getCprocDesc(get0Ci));
    int i0 = csn - 1;
    Instruction s = new Instruction(cons, 250);
    s.ins0(ALOAD0); // this
    s.ins0(ILOAD1);
    long sw = s.insSwitchTable( -i0, i0);
    s.switchTableHere(sw, -1);
    s.switchTableHere(sw, i0);
    int sw0 = s.addr;
    s.ins0(ACONSTNULL);
    s.ins0(ARETURN);
View Full Code Here

Examples of objot.bytecode.Instruction.insSwitchTable()

    s.ins0(ALOAD1); // class
    s.ins0(DUP); // class
    s.insU2(INVOKEVIRTUAL, cons.addProc(M_hashCode)); // hash code
    s.insS1(BIPUSH, 31);
    s.ins0(IREM);
    long sw = s.insSwitchTable(0, 30);
    for (int i = 0; i < 31; i++)
    {
      s.switchTableHere(sw, i);
      for (int j = 1; j < cs.length; j++)
        if (cs[j].cla.hashCode() % 31 == i)
View Full Code Here

Examples of objot.bytecode.Instruction.insSwitchTable()

    Instruction s = new Instruction(p.cons, 250);
    s.ins0(ALOAD1);
    s.insU2(CHECKCAST, classCi); // object
    s.ins0(type == 0 ? ALOAD3 : type == 1 ? LLOAD3 : DLOAD3);
    s.ins0(ILOAD2);
    long sw = s.insSwitchTable(0, ds.length - 1);
    int sw0 = s.addr; // default
    s.switchTableHere(sw, -1);
    int exCi = p.cons.addClass(ClassCastException.class);
    s.insU2(NEW, exCi);
    s.ins0(DUP);
View Full Code Here

Examples of objot.bytecode.Instruction.insSwitchTable()

    p.setNameCi(cons.getCprocName(set0Ci));
    p.setDescCi(cons.getCprocDesc(set0Ci));
    int i0 = csn - 1;
    Instruction s = new Instruction(cons, 250);
    s.ins0(ILOAD1); // index
    long sw = s.insSwitchTable( -i0, -1);
    s.switchTableHere(sw, -1);
    int sw0 = s.addr;
    s.ins0(ICONST0);
    s.ins0(IRETURN);
    for (int i = 1; i < csn; i++) // always actual bind
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.