Mercurial > hg > truffle
comparison graal/GraalCompiler/src/com/sun/c1x/ir/ArithmeticOp.java @ 2662:440ceca8e3d7
Add exception handlers only to Invoke and Throw instructions. Deoptimize if there is an exception in a HotSpot runtime call.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Wed, 11 May 2011 18:16:01 +0200 |
parents | 91d3952f7eb7 |
children | bd17ac598c6e |
comparison
equal
deleted
inserted
replaced
2661:194d93d089bd | 2662:440ceca8e3d7 |
---|---|
59 */ | 59 */ |
60 public boolean isStrictFP() { | 60 public boolean isStrictFP() { |
61 return isStrictFP; | 61 return isStrictFP; |
62 } | 62 } |
63 | 63 |
64 /** | |
65 * Checks whether this instruction can cause a trap. For arithmetic operations, | |
66 * only division and remainder operations can cause traps. | |
67 * @return {@code true} if this instruction can cause a trap | |
68 */ | |
69 @Override | |
70 public boolean canTrap() { | |
71 return canTrap; | |
72 } | |
73 | |
74 @Override | 64 @Override |
75 public void accept(ValueVisitor v) { | 65 public void accept(ValueVisitor v) { |
76 v.visitArithmeticOp(this); | 66 v.visitArithmeticOp(this); |
77 } | 67 } |
78 | 68 |