comparison graal/GraalCompiler/src/com/sun/c1x/ir/MonitorAddress.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 0f9eeb15e636
children 5526d82388be
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.cri.ci.*; 27 import com.sun.cri.ci.*;
27 28
28 /** 29 /**
29 * Instruction that is used to refer to the address of an on-stack monitor. 30 * Instruction that is used to refer to the address of an on-stack monitor.
30 *
31 * @author Lukas Stadler
32 */ 31 */
33 public final class MonitorAddress extends Instruction { 32 public final class MonitorAddress extends Instruction {
34 33
34 private static final int INPUT_COUNT = 0;
35 private static final int SUCCESSOR_COUNT = 0;
36
35 private int monitor; 37 private int monitor;
36 38
37 public MonitorAddress(int monitor) { 39 public MonitorAddress(int monitor, Graph graph) {
38 super(CiKind.Word); 40 super(CiKind.Word, INPUT_COUNT, SUCCESSOR_COUNT, graph);
39 this.monitor = monitor; 41 this.monitor = monitor;
40 setFlag(Flag.NonNull); 42 setFlag(Flag.NonNull);
41 } 43 }
42 44
43 @Override 45 @Override