hotspot/src/share/vm/opto/node.cpp
changeset 360 21d113ecbf6a
parent 238 803c80713999
child 366 449c27706bac
equal deleted inserted replaced
357:f4edb0d9f109 360:21d113ecbf6a
  1167 intptr_t Node::get_ptr() const {
  1167 intptr_t Node::get_ptr() const {
  1168   assert( Opcode() == Op_ConP, "" );
  1168   assert( Opcode() == Op_ConP, "" );
  1169   return ((ConPNode*)this)->type()->is_ptr()->get_con();
  1169   return ((ConPNode*)this)->type()->is_ptr()->get_con();
  1170 }
  1170 }
  1171 
  1171 
       
  1172 // Get a narrow oop constant from a ConNNode.
       
  1173 intptr_t Node::get_narrowcon() const {
       
  1174   assert( Opcode() == Op_ConN, "" );
       
  1175   return ((ConNNode*)this)->type()->is_narrowoop()->get_con();
       
  1176 }
       
  1177 
  1172 // Get a long constant from a ConNode.
  1178 // Get a long constant from a ConNode.
  1173 // Return a default value if there is no apparent constant here.
  1179 // Return a default value if there is no apparent constant here.
  1174 const TypeLong* Node::find_long_type() const {
  1180 const TypeLong* Node::find_long_type() const {
  1175   if (this->is_Type()) {
  1181   if (this->is_Type()) {
  1176     return this->as_Type()->type()->isa_long();
  1182     return this->as_Type()->type()->isa_long();