Mercurial > hg > graal-compiler
comparison graal/GraalCompiler/src/com/sun/c1x/ir/RegisterFinalizer.java @ 2628:569228710be8
More FrameState work
author | Gilles Duboscq <gilles.duboscq@oracle.com> |
---|---|
date | Tue, 10 May 2011 16:49:50 +0200 |
parents | 91d3952f7eb7 |
children | d8601d421b96 |
comparison
equal
deleted
inserted
replaced
2623:b129b7da1397 | 2628:569228710be8 |
---|---|
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.oracle.graal.graph.*; |
26 import com.sun.c1x.debug.*; | 26 import com.sun.c1x.debug.*; |
27 import com.sun.c1x.value.*; | |
28 import com.sun.cri.ci.*; | 27 import com.sun.cri.ci.*; |
29 | 28 |
30 /** | 29 /** |
31 * This instruction is used to perform the finalizer registration at the end of the java.lang.Object constructor. | 30 * This instruction is used to perform the finalizer registration at the end of the java.lang.Object constructor. |
32 */ | 31 */ |
56 | 55 |
57 public Value setObject(Value n) { | 56 public Value setObject(Value n) { |
58 return (Value) inputs().set(super.inputCount() + INPUT_OBJECT, n); | 57 return (Value) inputs().set(super.inputCount() + INPUT_OBJECT, n); |
59 } | 58 } |
60 | 59 |
61 public RegisterFinalizer(Value object, FrameState stateAfter, Graph graph) { | 60 public RegisterFinalizer(Value object, Graph graph) { |
62 super(CiKind.Void, stateAfter, INPUT_COUNT, SUCCESSOR_COUNT, graph); | 61 super(CiKind.Void, INPUT_COUNT, SUCCESSOR_COUNT, graph); |
63 setObject(object); | 62 setObject(object); |
64 } | 63 } |
65 | 64 |
66 @Override | 65 @Override |
67 public void accept(ValueVisitor v) { | 66 public void accept(ValueVisitor v) { |