joeq.Compiler.Quad
Class RegisterFactory
java.lang.Object
joeq.Compiler.Quad.RegisterFactory
public class RegisterFactory
- extends Object
- Version:
- $Id: RegisterFactory.java 1965 2004-10-07 00:07:44Z joewhaley $
- Author:
- John Whaley
RegisterFactory
public RegisterFactory(jq_Method m)
- Creates new RegisterFactory
RegisterFactory
public RegisterFactory(int nStack,
int nLocal)
get
public RegisterFactory.Register get(int i)
makeReg
public RegisterFactory.Register makeReg(jq_Type type)
makeRegOp
public Operand.RegisterOperand makeRegOp(jq_Type type)
makeTempReg
public RegisterFactory.Register makeTempReg(jq_Type type)
makeTempRegOp
public Operand.RegisterOperand makeTempRegOp(jq_Type type)
makeGuardReg
public static Operand.RegisterOperand makeGuardReg()
makeReg
public RegisterFactory.Register makeReg(RegisterFactory.Register r2)
makeRegOp
public Operand.RegisterOperand makeRegOp(RegisterFactory.Register r2,
jq_Type type)
makePairedReg
public RegisterFactory.Register makePairedReg(RegisterFactory that,
RegisterFactory.Register r2)
getOrCreateStack
public RegisterFactory.Register getOrCreateStack(int i,
jq_Type t)
getOrCreateLocal
public RegisterFactory.Register getOrCreateLocal(int i,
jq_Type t)
renumberRegisters
public void renumberRegisters(short n)
addAll
public void addAll(RegisterFactory that)
deepCopy
public RegisterFactory deepCopy()
deepCopyInto
public Map deepCopyInto(RegisterFactory that)
numberOfStackRegisters
public int numberOfStackRegisters()
numberOfLocalRegisters
public int numberOfLocalRegisters()
size
public int size()
iterator
public Iterator iterator()
toString
public String toString()
- Overrides:
toString
in class Object
fullDump
public String fullDump()
Copyright © 2001-2008 John Whaley. All Rights Reserved.