Mercurial > hg > graal-compiler
comparison graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/nodes/JumpToExceptionHandlerInCallerNode.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 | f90dcdbbb75e |
comparison
equal
deleted
inserted
replaced
16894:cc7aaa92c27d | 16895:06c15e88d383 |
---|---|
38 | 38 |
39 @Input private ValueNode handlerInCallerPc; | 39 @Input private ValueNode handlerInCallerPc; |
40 @Input private ValueNode exception; | 40 @Input private ValueNode exception; |
41 @Input private ValueNode exceptionPc; | 41 @Input private ValueNode exceptionPc; |
42 | 42 |
43 public JumpToExceptionHandlerInCallerNode(ValueNode handlerInCallerPc, ValueNode exception, ValueNode exceptionPc) { | 43 public static JumpToExceptionHandlerInCallerNode create(ValueNode handlerInCallerPc, ValueNode exception, ValueNode exceptionPc) { |
44 return new JumpToExceptionHandlerInCallerNodeGen(handlerInCallerPc, exception, exceptionPc); | |
45 } | |
46 | |
47 protected JumpToExceptionHandlerInCallerNode(ValueNode handlerInCallerPc, ValueNode exception, ValueNode exceptionPc) { | |
44 super(StampFactory.forVoid()); | 48 super(StampFactory.forVoid()); |
45 this.handlerInCallerPc = handlerInCallerPc; | 49 this.handlerInCallerPc = handlerInCallerPc; |
46 this.exception = exception; | 50 this.exception = exception; |
47 this.exceptionPc = exceptionPc; | 51 this.exceptionPc = exceptionPc; |
48 } | 52 } |