Mercurial > hg > truffle
comparison graal/com.oracle.max.graal.graph/src/com/oracle/max/graal/graph/Node.java @ 2969:8102d939f4f3
Removed successor tags.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Wed, 15 Jun 2011 16:57:59 +0200 |
parents | 0048537e3cd7 |
children | c7ce8d00c33f |
comparison
equal
deleted
inserted
replaced
2968:9133554259c5 | 2969:8102d939f4f3 |
---|---|
38 final NodeArray inputs; | 38 final NodeArray inputs; |
39 final NodeArray successors; | 39 final NodeArray successors; |
40 final ArrayList<Node> usages; | 40 final ArrayList<Node> usages; |
41 final ArrayList<Node> predecessors; | 41 final ArrayList<Node> predecessors; |
42 final ArrayList<Integer> predecessorsIndex; | 42 final ArrayList<Integer> predecessorsIndex; |
43 final int[] successorTags; | |
44 | 43 |
45 public Node(int inputCount, int successorCount, Graph graph) { | 44 public Node(int inputCount, int successorCount, Graph graph) { |
46 assert graph != null : "cannot create a node for a null graph"; | 45 assert graph != null : "cannot create a node for a null graph"; |
47 this.graph = graph; | 46 this.graph = graph; |
48 this.id = graph.register(this); | 47 this.id = graph.register(this); |
49 this.inputs = new NodeArray(this, inputCount); | 48 this.inputs = new NodeArray(this, inputCount); |
50 this.successors = new NodeArray(this, successorCount); | 49 this.successors = new NodeArray(this, successorCount); |
51 this.successorTags = new int[successorCount]; | |
52 this.predecessors = new ArrayList<Node>(); | 50 this.predecessors = new ArrayList<Node>(); |
53 this.usages = new ArrayList<Node>(); | 51 this.usages = new ArrayList<Node>(); |
54 this.predecessorsIndex = new ArrayList<Integer>(); | 52 this.predecessorsIndex = new ArrayList<Integer>(); |
55 } | 53 } |
56 | 54 |
70 return inputs; | 68 return inputs; |
71 } | 69 } |
72 | 70 |
73 public NodeArray successors() { | 71 public NodeArray successors() { |
74 return successors; | 72 return successors; |
75 } | |
76 | |
77 public int[] successorTags() { | |
78 return successorTags; | |
79 } | 73 } |
80 | 74 |
81 public int id() { | 75 public int id() { |
82 return id; | 76 return id; |
83 } | 77 } |