Package macromedia.asc.util

Examples of macromedia.asc.util.BitSet


    return (items.size() != 0) ? items.last().pos() : 0;
  }

  public BitSet getGenBits()
  {
    BitSet genbits = null;

    for (Node n : items)
      genbits = reset_set(genbits, n.getKillBits(), n.getGenBits());

    return genbits;
View Full Code Here


    return genbits;
  }

  public BitSet getKillBits()
  {
    BitSet killbits = null;

    for (Node n : items)
      killbits = reset_set(killbits, n.getGenBits(), n.getKillBits());

    return killbits;
View Full Code Here

    return or(expr.getGenBits(), gen_bits); // union of expr and cv bits.
  }

  public BitSet getKillBits()
  {
    BitSet kb = expr.getKillBits();

    // Union kill bits of the embedded expression and
    // the kill bits of the completion value definition.

    if (ref != null && ref.slot != null)
View Full Code Here

    return items.isEmpty() ? null : items.last();
  }

  public BitSet getGenBits()
  {
    BitSet genbits = null;

    for (Node n : items)
    {
      genbits = reset_set(genbits, n.getKillBits(), n.getGenBits());
      // ISSUE: this has changed, test!
View Full Code Here

    return genbits;
  }

  public BitSet getKillBits()
  {
    BitSet killbits = null;

    for (Node n : items)
    {
      killbits = reset_set(killbits, n.getGenBits(), n.getKillBits());
    }
View Full Code Here

  }

  public BitSet NewDef(Node node)
  {

    BitSet def_mask = null;

    // ISSUE: make it so if this limit is exceeded, the
    // flow analysis still works, by using a bit vector.

    if (def_count >= Node.MAX_DEF_BITS)
View Full Code Here

    blocks.add(cx.newBlock());
  }

  public void calcGenAndKill(Context cx)
  {
    BitSet gen_bits = null;
    BitSet kill_bits = null;

    for (int i = 0, size = blocks.size(); i < size; i++)
    {
      Block block = blocks.get(i);

      final BitSet defbits = block.def_bits;
   
      // Iterate only over set bits
      for(int n=nextSetBit(defbits,0); n>=0; n=nextSetBit(defbits,n+1))
      {
        Node node = defs.get(n);
View Full Code Here

          block.is_terminal = true;
          block.preds.clear();
          change = true;
        }

        BitSet out_bits = copy(block.in_bits);
        out_bits = reset_set(out_bits, block.kill_bits, block.gen_bits);
        if (!BitSet.equals(block.out_bits, out_bits))
        {
          change = true;
          block.out_bits = out_bits;
View Full Code Here

  public void printBlocks(Context cx)
  {

    for (int i = 0, size = blocks.size(); i < size; ++i)
    {
      BitSet bits;
      int n;

      Block block = blocks.get(i);

      // Pred
View Full Code Here

        {
            return noType().getDefaultTypeInfo();
        }

        // Check type defined types until there are no more.
        final BitSet bits = def;

        // Iterate only over set bits
        for(int i=nextSetBit(bits,0); i>=0; i=nextSetBit(bits,i+1))
        {
            int diff = 0;
View Full Code Here

TOP

Related Classes of macromedia.asc.util.BitSet

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.