Mercurial > hg > graal-jvmci-8
comparison graal/GraalCompiler/src/com/sun/c1x/observer/CompilationEvent.java @ 2781:bda5972a40a5
remove unnecessary BlockBegin nodes in frontend
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Tue, 24 May 2011 15:31:52 +0200 |
parents | 16b9a8b5ad39 |
children | b003ea36fa12 |
comparison
equal
deleted
inserted
replaced
2776:398b8fa5dc81 | 2781:bda5972a40a5 |
---|---|
41 */ | 41 */ |
42 public class CompilationEvent { | 42 public class CompilationEvent { |
43 | 43 |
44 private final C1XCompilation compilation; | 44 private final C1XCompilation compilation; |
45 private final String label; | 45 private final String label; |
46 private BlockBegin startBlock; | 46 private Instruction startBlock; |
47 | 47 |
48 private BlockMap blockMap; | 48 private BlockMap blockMap; |
49 private int codeSize = -1; | 49 private int codeSize = -1; |
50 | 50 |
51 private LinearScan allocator; | 51 private LinearScan allocator; |
65 assert compilation != null; | 65 assert compilation != null; |
66 this.label = label; | 66 this.label = label; |
67 this.compilation = compilation; | 67 this.compilation = compilation; |
68 } | 68 } |
69 | 69 |
70 public CompilationEvent(C1XCompilation compilation, String label, BlockBegin startBlock, boolean hirValid, boolean lirValid) { | 70 public CompilationEvent(C1XCompilation compilation, String label, Instruction startBlock, boolean hirValid, boolean lirValid) { |
71 this(compilation, label); | 71 this(compilation, label); |
72 this.startBlock = startBlock; | 72 this.startBlock = startBlock; |
73 this.hirValid = hirValid; | 73 this.hirValid = hirValid; |
74 this.lirValid = lirValid; | 74 this.lirValid = lirValid; |
75 } | 75 } |
76 | 76 |
77 public CompilationEvent(C1XCompilation compilation, String label, BlockBegin startBlock, boolean hirValid, boolean lirValid, CiTargetMethod targetMethod) { | 77 public CompilationEvent(C1XCompilation compilation, String label, Instruction startBlock, boolean hirValid, boolean lirValid, CiTargetMethod targetMethod) { |
78 this(compilation, label, startBlock, hirValid, lirValid); | 78 this(compilation, label, startBlock, hirValid, lirValid); |
79 this.targetMethod = targetMethod; | 79 this.targetMethod = targetMethod; |
80 } | 80 } |
81 | 81 |
82 public CompilationEvent(C1XCompilation compilation, String label, BlockMap blockMap, int codeSize) { | 82 public CompilationEvent(C1XCompilation compilation, String label, BlockMap blockMap, int codeSize) { |
106 | 106 |
107 public BlockMap getBlockMap() { | 107 public BlockMap getBlockMap() { |
108 return blockMap; | 108 return blockMap; |
109 } | 109 } |
110 | 110 |
111 public BlockBegin getStartBlock() { | 111 public Instruction getStartBlock() { |
112 return startBlock; | 112 return startBlock; |
113 } | 113 } |
114 | 114 |
115 public LinearScan getAllocator() { | 115 public LinearScan getAllocator() { |
116 return allocator; | 116 return allocator; |