comparison graal/GraalCompiler/src/com/sun/c1x/lir/LIRBlock.java @ 2783:9bc0c2eb00d6

Made graph builder removal of BlockBegin work.
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Wed, 25 May 2011 12:04:58 +0200
parents 93ec3f067420
children aeccd2af4e9e
comparison
equal deleted inserted replaced
2782:915456e4959e 2783:9bc0c2eb00d6
27 import com.oracle.max.asm.*; 27 import com.oracle.max.asm.*;
28 import com.sun.c1x.alloc.*; 28 import com.sun.c1x.alloc.*;
29 import com.sun.c1x.debug.*; 29 import com.sun.c1x.debug.*;
30 import com.sun.c1x.ir.*; 30 import com.sun.c1x.ir.*;
31 import com.sun.c1x.util.*; 31 import com.sun.c1x.util.*;
32 import com.sun.c1x.value.*;
32 import com.sun.cri.ci.*; 33 import com.sun.cri.ci.*;
33 34
34 /** 35 /**
35 * The {@code LIRBlock} class definition. 36 * The {@code LIRBlock} class definition.
36 */ 37 */
37 public final class LIRBlock { 38 public final class LIRBlock {
38 39
39 public final Label label = new Label(); 40 public final Label label = new Label();
40 private LIRList lir; 41 private LIRList lir;
41 private final int blockID; 42 private final int blockID;
43 private FrameState lastState;
42 private List<Instruction> instructions = new ArrayList<Instruction>(4); 44 private List<Instruction> instructions = new ArrayList<Instruction>(4);
43 private List<LIRBlock> predecessors = new ArrayList<LIRBlock>(4); 45 private List<LIRBlock> predecessors = new ArrayList<LIRBlock>(4);
44 private List<LIRBlock> successors = new ArrayList<LIRBlock>(4); 46 private List<LIRBlock> successors = new ArrayList<LIRBlock>(4);
45 private List<LIRBlock> exceptionHandlerSuccessors = new ArrayList<LIRBlock>(4); 47 private List<LIRBlock> exceptionHandlerSuccessors = new ArrayList<LIRBlock>(4);
46 48
263 if (predecessors.get(i) == source) { 265 if (predecessors.get(i) == source) {
264 predecessors.set(i, newSucc); 266 predecessors.set(i, newSucc);
265 } 267 }
266 } 268 }
267 } 269 }
270
271 public void setLastState(FrameState fs) {
272 lastState = fs;
273 }
274
275 public FrameState lastState() {
276 return lastState;
277 }
268 } 278 }