Mercurial > hg > graal-compiler
diff graal/GraalCompiler/src/com/sun/c1x/lir/LIRBlock.java @ 2801:2af109bec0c0
Make block contains a list of nodes instead a list of instructions.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Fri, 27 May 2011 15:11:34 +0200 |
parents | aeccd2af4e9e |
children | c3f64b66fc78 |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/lir/LIRBlock.java Fri May 27 14:58:55 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/lir/LIRBlock.java Fri May 27 15:11:34 2011 +0200 @@ -24,10 +24,10 @@ import java.util.*; +import com.oracle.graal.graph.*; import com.oracle.max.asm.*; import com.sun.c1x.alloc.*; import com.sun.c1x.debug.*; -import com.sun.c1x.ir.*; import com.sun.c1x.util.*; import com.sun.c1x.value.*; import com.sun.cri.ci.*; @@ -41,7 +41,7 @@ private LIRList lir; private final int blockID; private FrameState lastState; - private List<Instruction> instructions = new ArrayList<Instruction>(4); + private List<Node> instructions = new ArrayList<Node>(4); private List<LIRBlock> predecessors = new ArrayList<LIRBlock>(4); private List<LIRBlock> successors = new ArrayList<LIRBlock>(4); private List<LIRBlock> exceptionHandlerSuccessors = new ArrayList<LIRBlock>(4); @@ -89,7 +89,7 @@ linearScanNumber = blockID; } - public List<Instruction> getInstructions() { + public List<Node> getInstructions() { return instructions; } @@ -248,7 +248,7 @@ predecessors.clear(); } - public void setInstructions(List<Instruction> list) { + public void setInstructions(List<Node> list) { instructions = list; }