Mercurial > hg > graal-jvmci-8
comparison graal/GraalCompiler/src/com/sun/c1x/gen/LIRGenerator.java @ 2639:8e96b2b3a866
Added stateBefore to Throw instruction.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Wed, 11 May 2011 13:41:35 +0200 |
parents | 152d4a8dc7ad |
children | 9e30cf6dcf96 |
comparison
equal
deleted
inserted
replaced
2638:3e47aeb60ab3 | 2639:8e96b2b3a866 |
---|---|
890 | 890 |
891 @Override | 891 @Override |
892 public void visitThrow(Throw x) { | 892 public void visitThrow(Throw x) { |
893 setNoResult(x); | 893 setNoResult(x); |
894 CiValue exceptionOpr = load(x.exception()); | 894 CiValue exceptionOpr = load(x.exception()); |
895 LIRDebugInfo info = stateFor(x); | 895 LIRDebugInfo info = stateFor(x, x.stateBefore()); |
896 | 896 |
897 // check if the instruction has an xhandler in any of the nested scopes | 897 // check if the instruction has an xhandler in any of the nested scopes |
898 boolean unwind = false; | 898 boolean unwind = false; |
899 if (x.exceptionHandlers().size() == 0) { | 899 if (x.exceptionHandlers().size() == 0) { |
900 // this throw is not inside an xhandler | 900 // this throw is not inside an xhandler |