comparison graal/GraalCompiler/src/com/sun/c1x/ir/ExceptionObject.java @ 2602:0c6564c254af

new node layout: BlockBegin, BlockEnd -Dc1x.dot=regex for pdf output escape dot graph labels (<, >, &)
author Lukas Stadler <lukas.stadler@jku.at>
date Fri, 06 May 2011 10:25:37 +0200
parents e1b3db8031ee
children 91d3952f7eb7
comparison
equal deleted inserted replaced
2601:224e8b4007bd 2602:0c6564c254af
20 * or visit www.oracle.com if you need additional information or have any 20 * or visit www.oracle.com if you need additional information or have any
21 * questions. 21 * questions.
22 */ 22 */
23 package com.sun.c1x.ir; 23 package com.sun.c1x.ir;
24 24
25 import com.oracle.graal.graph.*;
25 import com.sun.c1x.debug.*; 26 import com.sun.c1x.debug.*;
26 import com.sun.c1x.value.*; 27 import com.sun.c1x.value.*;
27 import com.sun.cri.ci.*; 28 import com.sun.cri.ci.*;
28 29
29 /** 30 /**
30 * The {@code ExceptionObject} instruction represents the incoming exception object to an exception handler. 31 * The {@code ExceptionObject} instruction represents the incoming exception object to an exception handler.
31 */ 32 */
32 public final class ExceptionObject extends Instruction { 33 public final class ExceptionObject extends Instruction {
33 34
35 private static final int INPUT_COUNT = 0;
36 private static final int SUCCESSOR_COUNT = 0;
37
34 /** 38 /**
35 * Debug info is required if safepoints are placed at exception handlers. 39 * Debug info is required if safepoints are placed at exception handlers.
36 */ 40 */
37 public final FrameState stateBefore; 41 public final FrameState stateBefore;
38 42
39 /** 43 /**
40 * Constructs a new ExceptionObject instruction. 44 * Constructs a new ExceptionObject instruction.
41 * @param stateBefore TODO 45 * @param stateBefore TODO
46 * @param graph
42 */ 47 */
43 public ExceptionObject(FrameState stateBefore) { 48 public ExceptionObject(FrameState stateBefore, Graph graph) {
44 super(CiKind.Object); 49 super(CiKind.Object, INPUT_COUNT, SUCCESSOR_COUNT, graph);
45 setFlag(Flag.NonNull); 50 setFlag(Flag.NonNull);
46 this.stateBefore = stateBefore; 51 this.stateBefore = stateBefore;
47 } 52 }
48 53
49 @Override 54 @Override