hotspot/src/share/vm/opto/node.cpp
changeset 17384 4e6ea5fa04ad
parent 17383 3665c0901a0d
child 19708 64e8c91f5f3e
equal deleted inserted replaced
17383:3665c0901a0d 17384:4e6ea5fa04ad
  1396     return this->bottom_type()->isa_long();
  1396     return this->bottom_type()->isa_long();
  1397   }
  1397   }
  1398   return NULL;
  1398   return NULL;
  1399 }
  1399 }
  1400 
  1400 
       
  1401 
       
  1402 /**
       
  1403  * Return a ptr type for nodes which should have it.
       
  1404  */
       
  1405 const TypePtr* Node::get_ptr_type() const {
       
  1406   const TypePtr* tp = this->bottom_type()->make_ptr();
       
  1407 #ifdef ASSERT
       
  1408   if (tp == NULL) {
       
  1409     this->dump(1);
       
  1410     assert((tp != NULL), "unexpected node type");
       
  1411   }
       
  1412 #endif
       
  1413   return tp;
       
  1414 }
       
  1415 
  1401 // Get a double constant from a ConstNode.
  1416 // Get a double constant from a ConstNode.
  1402 // Returns the constant if it is a double ConstNode
  1417 // Returns the constant if it is a double ConstNode
  1403 jdouble Node::getd() const {
  1418 jdouble Node::getd() const {
  1404   assert( Opcode() == Op_ConD, "" );
  1419   assert( Opcode() == Op_ConD, "" );
  1405   return ((ConDNode*)this)->type()->is_double_constant()->getd();
  1420   return ((ConDNode*)this)->type()->is_double_constant()->getd();