comparison graal/GraalCompiler/src/com/sun/c1x/asm/TargetMethodAssembler.java @ 2833:1cd59ca9ac86

Removed Throw HIR instruction. Removed special handling for exceptions in register allocator.
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Tue, 31 May 2011 13:30:23 +0200
parents c1ce2a53d6c3
children
comparison
equal deleted inserted replaced
2832:775c31be565c 2833:1cd59ca9ac86
138 return targetMethod; 138 return targetMethod;
139 } 139 }
140 140
141 public void recordExceptionHandlers(int pcOffset, LIRDebugInfo info) { 141 public void recordExceptionHandlers(int pcOffset, LIRDebugInfo info) {
142 if (info != null) { 142 if (info != null) {
143 if (info.exceptionEdge != null) { 143 if (info.exceptionEdge() != null) {
144 if (exceptionInfoList == null) { 144 if (exceptionInfoList == null) {
145 exceptionInfoList = new ArrayList<ExceptionInfo>(4); 145 exceptionInfoList = new ArrayList<ExceptionInfo>(4);
146 } 146 }
147 exceptionInfoList.add(new ExceptionInfo(pcOffset, info.exceptionEdge, info.state.bci)); 147 exceptionInfoList.add(new ExceptionInfo(pcOffset, info.exceptionEdge(), info.state.bci));
148 } 148 }
149 } 149 }
150 } 150 }
151 151
152 public void recordImplicitException(int pcOffset, LIRDebugInfo info) { 152 public void recordImplicitException(int pcOffset, LIRDebugInfo info) {
153 // record an implicit exception point 153 // record an implicit exception point
154 if (info != null) { 154 if (info != null) {
155 assert lastSafepointPos < pcOffset; 155 assert lastSafepointPos < pcOffset;
156 lastSafepointPos = pcOffset; 156 lastSafepointPos = pcOffset;
157 targetMethod.recordSafepoint(pcOffset, info.debugInfo()); 157 targetMethod.recordSafepoint(pcOffset, info.debugInfo());
158 recordExceptionHandlers(pcOffset, info); 158 assert info.exceptionEdge() == null;
159 } 159 }
160 } 160 }
161 161
162 public void recordDirectCall(int posBefore, int posAfter, Object target, LIRDebugInfo info) { 162 public void recordDirectCall(int posBefore, int posAfter, Object target, LIRDebugInfo info) {
163 CiDebugInfo debugInfo = info != null ? info.debugInfo() : null; 163 CiDebugInfo debugInfo = info != null ? info.debugInfo() : null;