diff graal/GraalCompiler/src/com/oracle/max/graal/schedule/Block.java @ 2777:3e4d992fd312

towards replacing computelinearscanorder with scheduler.
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Tue, 24 May 2011 14:40:47 +0200
parents 0fe79e7435c3
children 2ac7b30b7290
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/oracle/max/graal/schedule/Block.java	Tue May 24 13:55:56 2011 +0200
+++ b/graal/GraalCompiler/src/com/oracle/max/graal/schedule/Block.java	Tue May 24 14:40:47 2011 +0200
@@ -24,17 +24,24 @@
 
 import java.util.*;
 
+import com.sun.c1x.ir.*;
+
 
 public class Block {
 
     private int blockID;
     private final List<Block> successors = new ArrayList<Block>();
     private final List<Block> predecessors = new ArrayList<Block>();
+    private final List<Instruction> instructions = new ArrayList<Instruction>();
 
     public List<Block> getSuccessors() {
         return Collections.unmodifiableList(successors);
     }
 
+    public List<Instruction> getInstructions() {
+        return instructions;
+    }
+
     public List<Block> getPredecessors() {
         return Collections.unmodifiableList(predecessors);
     }