hotspot/src/share/vm/opto/node.cpp
changeset 35551 36ef3841fb34
parent 35545 a8f29dfd62b2
child 35574 2b25eb88c8d6
equal deleted inserted replaced
35550:633a22d66bd7 35551:36ef3841fb34
  1069   }
  1069   }
  1070 }
  1070 }
  1071 
  1071 
  1072 //------------------------------Identity---------------------------------------
  1072 //------------------------------Identity---------------------------------------
  1073 // Return a node that the given node is equivalent to.
  1073 // Return a node that the given node is equivalent to.
  1074 Node *Node::Identity( PhaseTransform * ) {
  1074 Node* Node::Identity(PhaseGVN* phase) {
  1075   return this;                  // Default to no identities
  1075   return this;                  // Default to no identities
  1076 }
  1076 }
  1077 
  1077 
  1078 //------------------------------Value------------------------------------------
  1078 //------------------------------Value------------------------------------------
  1079 // Compute a new Type for a node using the Type of the inputs.
  1079 // Compute a new Type for a node using the Type of the inputs.
  1080 const Type *Node::Value( PhaseTransform * ) const {
  1080 const Type* Node::Value(PhaseGVN* phase) const {
  1081   return bottom_type();         // Default to worst-case Type
  1081   return bottom_type();         // Default to worst-case Type
  1082 }
  1082 }
  1083 
  1083 
  1084 //------------------------------Ideal------------------------------------------
  1084 //------------------------------Ideal------------------------------------------
  1085 //
  1085 //
  2454   return Node::hash() + _type->hash();
  2454   return Node::hash() + _type->hash();
  2455 }
  2455 }
  2456 uint TypeNode::cmp( const Node &n ) const
  2456 uint TypeNode::cmp( const Node &n ) const
  2457 { return !Type::cmp( _type, ((TypeNode&)n)._type ); }
  2457 { return !Type::cmp( _type, ((TypeNode&)n)._type ); }
  2458 const Type *TypeNode::bottom_type() const { return _type; }
  2458 const Type *TypeNode::bottom_type() const { return _type; }
  2459 const Type *TypeNode::Value( PhaseTransform * ) const { return _type; }
  2459 const Type* TypeNode::Value(PhaseGVN* phase) const { return _type; }
  2460 
  2460 
  2461 //------------------------------ideal_reg--------------------------------------
  2461 //------------------------------ideal_reg--------------------------------------
  2462 uint TypeNode::ideal_reg() const {
  2462 uint TypeNode::ideal_reg() const {
  2463   return _type->ideal_reg();
  2463   return _type->ideal_reg();
  2464 }
  2464 }