diff graal/com.oracle.max.graal.graph/src/com/oracle/max/graal/graph/Node.java @ 2960:49a8b14e9d24

Tentative change that adds successor tags.
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Tue, 14 Jun 2011 16:41:27 +0200
parents 9b8f30608e62
children 0966a5a904ad
line wrap: on
line diff
--- a/graal/com.oracle.max.graal.graph/src/com/oracle/max/graal/graph/Node.java	Tue Jun 14 15:10:46 2011 +0200
+++ b/graal/com.oracle.max.graal.graph/src/com/oracle/max/graal/graph/Node.java	Tue Jun 14 16:41:27 2011 +0200
@@ -40,6 +40,7 @@
     final ArrayList<Node> usages;
     final ArrayList<Node> predecessors;
     final ArrayList<Integer> predecessorsIndex;
+    final int[] successorTags;
 
     public Node(int inputCount, int successorCount, Graph graph) {
         assert graph != null : "cannot create a node for a null graph";
@@ -47,6 +48,7 @@
         this.id = graph.register(this);
         this.inputs = new NodeArray(this, inputCount);
         this.successors = new NodeArray(this, successorCount);
+        this.successorTags = new int[successorCount];
         this.predecessors = new ArrayList<Node>();
         this.usages = new ArrayList<Node>();
         this.predecessorsIndex = new ArrayList<Integer>();
@@ -71,6 +73,10 @@
     public NodeArray successors() {
         return successors;
     }
+    
+    public int[] successorTags() {
+        return successorTags;
+    }
 
     public int id() {
         return id;