Package erjang.beam.repr.Operands

Examples of erjang.beam.repr.Operands.Int


            case ATOM12_TAG:
                fnameNo = readSmallIntValue(d1);
                break;

            default:
                Int val = readOperand(d1).testInt();
                lineRecords[++i] = new LineRecord(fnameNo, val.value);
                //                System.err.println("line["+(i)+"] = "+val.value + " ["+fnameNo+"]");
            }
    }
View Full Code Here


            SourceOperand[] srcs = insn.args;
            Arg[] in = src_args(insn_idx, srcs);
            Arg out  = dest_arg(insn_idx, insn.dest);

            // special case for X+1, 1+X, X-1.
            Int lop = null, rop = null;
            if (srcs.length==2
                && (((name==am_plus || name == am_minus) && (rop=srcs[1].testInt()) != null && rop.equals(1))
                 || (name==am_plus && (lop=srcs[0].testInt()) != null && lop.equals(1))))
            {
              if (name == am_plus) {
                Arg src = (lop == null) ? in[0] : in[1];
               
                vis.visitIncrement(src, out);
View Full Code Here

          Insn.LDISIID insn = (Insn.LDISIID) insn_;
          if (!EMATCHSTATE_TYPE.equals(getType(current, insn.dest))) {
            throw new Error("matching without a state");
          }

          Int bits = insn.src4.testInt();
          int unit = insn.i5;
          int flags = insn.i6;
          if (unit == 1 && flags == 0 && bits != null && (bits.value*unit) <= 32 ) {
            return setType(current, insn.dest7, ESMALL_TYPE);
          }
View Full Code Here

TOP

Related Classes of erjang.beam.repr.Operands.Int

Copyright © 2018 www.massapicom. 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.