Mercurial > hg > graal-compiler
comparison graal/com.oracle.graal.hotspot.hsail/src/com/oracle/graal/hotspot/hsail/HSAILHotSpotLoweringProvider.java @ 16895:06c15e88d383
added factory method to all Node classes; replaced Node classes instantiation with calls to factory methods; replaced identity tests on Node classes with ' == <node class>.getGenClass()' idiom
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 18 Aug 2014 14:04:21 +0200 |
parents | cbd42807a31f |
children | a85d43d86ea1 |
comparison
equal
deleted
inserted
replaced
16894:cc7aaa92c27d | 16895:06c15e88d383 |
---|---|
92 reason = DeoptimizationReason.NullCheckException; | 92 reason = DeoptimizationReason.NullCheckException; |
93 break; | 93 break; |
94 default: | 94 default: |
95 reason = DeoptimizationReason.None; | 95 reason = DeoptimizationReason.None; |
96 } | 96 } |
97 unwind.replaceAtPredecessor(graph.add(new DeoptimizeNode(DeoptimizationAction.InvalidateReprofile, reason))); | 97 unwind.replaceAtPredecessor(graph.add(DeoptimizeNode.create(DeoptimizationAction.InvalidateReprofile, reason))); |
98 unwind.safeDelete(); | 98 unwind.safeDelete(); |
99 } else { | 99 } else { |
100 // unwind whose exception is not an instance of ForeignCallNode | 100 // unwind whose exception is not an instance of ForeignCallNode |
101 throw new GraalInternalError("UnwindNode seen without ForeignCallNode: " + exception); | 101 throw new GraalInternalError("UnwindNode seen without ForeignCallNode: " + exception); |
102 } | 102 } |