128 #endif
129 };
130
131 //------------------------------FastLockNode-----------------------------------
132 class FastLockNode: public CmpNode {
133 public:
134 FastLockNode(Node *ctrl, Node *oop, Node *box) : CmpNode(oop,box) {
135 init_req(0,ctrl);
136 init_class_id(Class_FastLock);
137 }
138 Node* obj_node() const { return in(1); }
139 Node* box_node() const { return in(2); }
140 void set_box_node(Node* box) { set_req(2, box); }
141
142 // FastLock and FastUnlockNode do not hash, we need one for each corresponding
143 // LockNode/UnLockNode to avoid creating Phi's.
144 virtual uint hash() const ; // { return NO_HASH; }
145 virtual uint size_of() const;
146 virtual bool cmp( const Node &n ) const ; // Always fail, except on self
147 virtual int Opcode() const;
148 virtual const Type* Value(PhaseGVN* phase) const { return TypeInt::CC; }
149 const Type *sub(const Type *t1, const Type *t2) const { return TypeInt::CC;}
150 };
151
152
153 //------------------------------FastUnlockNode---------------------------------
154 class FastUnlockNode: public CmpNode {
155 public:
156 FastUnlockNode(Node *ctrl, Node *oop, Node *box) : CmpNode(oop,box) {
157 init_req(0,ctrl);
158 init_class_id(Class_FastUnlock);
159 }
160 Node* obj_node() const { return in(1); }
161 Node* box_node() const { return in(2); }
162
163
164 // FastLock and FastUnlockNode do not hash, we need one for each corresponding
165 // LockNode/UnLockNode to avoid creating Phi's.
166 virtual uint hash() const ; // { return NO_HASH; }
167 virtual bool cmp( const Node &n ) const ; // Always fail, except on self
168 virtual int Opcode() const;
|
128 #endif
129 };
130
131 //------------------------------FastLockNode-----------------------------------
132 class FastLockNode: public CmpNode {
133 public:
134 FastLockNode(Node *ctrl, Node *oop, Node *box) : CmpNode(oop,box) {
135 init_req(0,ctrl);
136 init_class_id(Class_FastLock);
137 }
138 Node* obj_node() const { return in(1); }
139 Node* box_node() const { return in(2); }
140 void set_box_node(Node* box) { set_req(2, box); }
141
142 // FastLock and FastUnlockNode do not hash, we need one for each corresponding
143 // LockNode/UnLockNode to avoid creating Phi's.
144 virtual uint hash() const ; // { return NO_HASH; }
145 virtual uint size_of() const;
146 virtual bool cmp( const Node &n ) const ; // Always fail, except on self
147 virtual int Opcode() const;
148 virtual const Type* Value(PhaseGVN* phase) const;
149 const Type *sub(const Type *t1, const Type *t2) const { return TypeInt::CC;}
150 };
151
152
153 //------------------------------FastUnlockNode---------------------------------
154 class FastUnlockNode: public CmpNode {
155 public:
156 FastUnlockNode(Node *ctrl, Node *oop, Node *box) : CmpNode(oop,box) {
157 init_req(0,ctrl);
158 init_class_id(Class_FastUnlock);
159 }
160 Node* obj_node() const { return in(1); }
161 Node* box_node() const { return in(2); }
162
163
164 // FastLock and FastUnlockNode do not hash, we need one for each corresponding
165 // LockNode/UnLockNode to avoid creating Phi's.
166 virtual uint hash() const ; // { return NO_HASH; }
167 virtual bool cmp( const Node &n ) const ; // Always fail, except on self
168 virtual int Opcode() const;
|