edu.ustc.cs.compile.arch.mips.regalloc
类 RegPool

java.lang.Object
  继承者 java.util.AbstractCollection<E>
      继承者 java.util.AbstractList<E>
          继承者 java.util.AbstractSequentialList<E>
              继承者 java.util.LinkedList<MIPSRegister>
                  继承者 edu.ustc.cs.compile.arch.mips.regalloc.RegPool
所有已实现的接口:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<MIPSRegister>, java.util.Collection<MIPSRegister>, java.util.List<MIPSRegister>, java.util.Queue<MIPSRegister>

public class RegPool
extends java.util.LinkedList<MIPSRegister>

Register Pool.

All hard registers that can be allocated to pseudo registers are put in a register pool. All hard registers in the register pool are equivalent.

另请参见:
序列化表格

字段摘要
 
从类 java.util.AbstractList 继承的字段
modCount
 
构造函数摘要
RegPool()
           
 
方法摘要
 java.lang.Object clone()
          Get a shadow copy of this register pool.
 MIPSRegister get()
          Remove a hard register from this register pool.
 boolean isEmpty()
          Indicates whether this register pool is empty.
 void put(MIPSRegister reg)
          Put a hard register in the this reigster pool.
 
从类 java.util.LinkedList 继承的方法
add, add, addAll, addAll, addFirst, addLast, clear, contains, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, peek, poll, remove, remove, remove, removeFirst, removeLast, set, size, toArray, toArray
 
从类 java.util.AbstractSequentialList 继承的方法
iterator
 
从类 java.util.AbstractList 继承的方法
equals, hashCode, listIterator, removeRange, subList
 
从类 java.util.AbstractCollection 继承的方法
containsAll, removeAll, retainAll, toString
 
从类 java.lang.Object 继承的方法
finalize, getClass, notify, notifyAll, wait, wait, wait
 
从接口 java.util.List 继承的方法
containsAll, equals, hashCode, iterator, listIterator, removeAll, retainAll, subList
 

构造函数详细信息

RegPool

public RegPool()
方法详细信息

put

public void put(MIPSRegister reg)

Put a hard register in the this reigster pool.

参数:
reg - the hard register

get

public MIPSRegister get()

Remove a hard register from this register pool.

返回:
a hard register or null if the register pool is empty.

isEmpty

public boolean isEmpty()

Indicates whether this register pool is empty.

指定者:
接口 java.util.Collection<MIPSRegister> 中的 isEmpty
指定者:
接口 java.util.List<MIPSRegister> 中的 isEmpty
覆盖:
java.util.AbstractCollection<MIPSRegister> 中的 isEmpty
返回:
true if this regiter pool is empty.

clone

public java.lang.Object clone()

Get a shadow copy of this register pool.

The shadow copy and the orignal register pool share the same registers.

覆盖:
java.util.LinkedList<MIPSRegister> 中的 clone
返回:
a shadow copy of this register.