< prev index next >
src/share/vm/opto/node.cpp
Print this page
*** 1064,1080 ****
}
}
//------------------------------Identity---------------------------------------
// Return a node that the given node is equivalent to.
! Node *Node::Identity( PhaseTransform * ) {
return this; // Default to no identities
}
//------------------------------Value------------------------------------------
// Compute a new Type for a node using the Type of the inputs.
! const Type *Node::Value( PhaseTransform * ) const {
return bottom_type(); // Default to worst-case Type
}
//------------------------------Ideal------------------------------------------
//
--- 1064,1080 ----
}
}
//------------------------------Identity---------------------------------------
// Return a node that the given node is equivalent to.
! Node* Node::Identity(PhaseGVN* phase) {
return this; // Default to no identities
}
//------------------------------Value------------------------------------------
// Compute a new Type for a node using the Type of the inputs.
! const Type* Node::Value(PhaseGVN* phase) const {
return bottom_type(); // Default to worst-case Type
}
//------------------------------Ideal------------------------------------------
//
*** 2449,2459 ****
return Node::hash() + _type->hash();
}
uint TypeNode::cmp( const Node &n ) const
{ return !Type::cmp( _type, ((TypeNode&)n)._type ); }
const Type *TypeNode::bottom_type() const { return _type; }
! const Type *TypeNode::Value( PhaseTransform * ) const { return _type; }
//------------------------------ideal_reg--------------------------------------
uint TypeNode::ideal_reg() const {
return _type->ideal_reg();
}
--- 2449,2459 ----
return Node::hash() + _type->hash();
}
uint TypeNode::cmp( const Node &n ) const
{ return !Type::cmp( _type, ((TypeNode&)n)._type ); }
const Type *TypeNode::bottom_type() const { return _type; }
! const Type* TypeNode::Value(PhaseGVN* phase) const { return _type; }
//------------------------------ideal_reg--------------------------------------
uint TypeNode::ideal_reg() const {
return _type->ideal_reg();
}
< prev index next >