Package objot.bytecode

Examples of objot.bytecode.Instruction.jumpHere()


          s.ins0(DUP);
          s.insU2(GETFIELD, fCis[i]);
          s.ins0(DUP);
          int j = s.insJump(IFNULL);
          s.ins0(ARETURN);
          s.jumpHere(j);
          s.ins0(POP);
        }
        s.switchTableHere(sw, i0 - i);
        s.insU2(NEW, cons.putClass(c.cla));
        s.ins0(DUP);
View Full Code Here


            s.ins0(ALOAD0);
            s.insU2(GETFIELD, fCis[i]);
            int jj = s.insJump(IFNULL);
            s.insU2(LDCW, cons.addString(c.cla.getName()));
            s.jump(s.insJump(GOTO), circle);
            s.jumpHere(jj);
          }
          s.ins0(DUP);
          s.ins0(ALOAD0);
          s.ins0(SWAP); // o, this, o
          s.insU2(PUTFIELD, fCis[i]); // single
View Full Code Here

          }
          s.ins0(DUP);
          s.ins0(ALOAD0);
          s.ins0(SWAP); // o, this, o
          s.insU2(PUTFIELD, fCis[i]); // single
          s.jumpHere(j);
        }
        for (Bind.FM fm: c.fms)
          if (fm.f != null)
          {
            s.ins0(DUP);
View Full Code Here

        s.ins0(DUP);
        s.insU2(GETFIELD, fCis[i]);
        s.ins0(DUP);
        int j = s.insJump(IFNULL);
        s.ins0(ARETURN);
        s.jumpHere(j);
        s.ins0(POP);

        s.switchTableHere(sw, i0 + i);
        int loop = s.addr; // n
        s.insU2(GETFIELD, parentCi); // n
View Full Code Here

    s.ins0(ALOAD1);
    s.ins0(DUP);
    int j = s.insJump(IFNOTNULL);
    s.ins0(POP);
    s.insU2(GETSTATIC, cons.addField(Container.F_null));
    s.jumpHere(j);
    s.insU2(PUTFIELD, parentCi);
    if ( !lazy)
      for (int i = 1; i < csn; i++)
        if (cs[i].mode == Single.class && cs[i].cla != Container.class)
        {
View Full Code Here

        if (e.field != null)
          s.insU2(GETFIELD, p.cons.addField(e.field));
        else
          s.insU2(INVOKEVIRTUAL, p.cons.addProc(e.method));
        s.insU2(INVOKEVIRTUAL, refsCi);
        s.jumpHere(if0);
      }
    s.ins0(RETURN);
    p.getCode().setIns(s, false);
    p.getCode().setLocalN(5);
    p.getCode().setStackN(4);
View Full Code Here

        s.insU2(INVOKEVIRTUAL, doubleVCi);
        s.insU2(INVOKEVIRTUAL, doubleCi);
      }
      else
        s.insU2(INVOKEVIRTUAL, objCi);
      s.jumpHere(if0);
    }
    s.ins0(RETURN);
    p.getCode().setIns(s, false);
    p.getCode().setLocalN(6);
    p.getCode().setStackN(5);
View Full Code Here

        j = s.insJump(IFIL0);
        s.ins0(ILOAD2);
        s.ins0(INEG); // -j
        s.insU2(INVOKEVIRTUAL, get0Ci); // get0
        s.ins0(ARETURN);
        s.jumpHere(j);

        s.ins0(ILOAD2); // j
        s.insU2(INVOKEVIRTUAL, get0Ci); // get0
        s.ins0(DUP);
        s.ins0(ILOAD2);
View Full Code Here

        j = s.insJump(IFIL0);
        s.ins0(ALOAD0);
        s.ins0(SWAP); // o, this, o
        s.insU2(PUTFIELD, fCis[i]); // cache
        s.ins0(ARETURN);
        s.jumpHere(j);
        s.ins0(ARETURN);
      }
      else
        throw new AssertionError();
    }
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.