hotspot/src/share/vm/opto/subnode.cpp
changeset 33089 f4e956ed8b43
parent 32084 7743e6943cdf
child 33465 6063f28a6efb
equal deleted inserted replaced
33088:34fe49ecee13 33089:f4e956ed8b43
  1530   return TypeD::make( StubRoutines::intrinsic_log10( d ) );
  1530   return TypeD::make( StubRoutines::intrinsic_log10( d ) );
  1531 }
  1531 }
  1532 
  1532 
  1533 //=============================================================================
  1533 //=============================================================================
  1534 //------------------------------Value------------------------------------------
  1534 //------------------------------Value------------------------------------------
  1535 // Compute exp
       
  1536 const Type *ExpDNode::Value( PhaseTransform *phase ) const {
       
  1537   const Type *t1 = phase->type( in(1) );
       
  1538   if( t1 == Type::TOP ) return Type::TOP;
       
  1539   if( t1->base() != Type::DoubleCon ) return Type::DOUBLE;
       
  1540   double d = t1->getd();
       
  1541   return TypeD::make( StubRoutines::intrinsic_exp( d ) );
       
  1542 }
       
  1543 
       
  1544 
       
  1545 //=============================================================================
       
  1546 //------------------------------Value------------------------------------------
       
  1547 // Compute pow
  1535 // Compute pow
  1548 const Type *PowDNode::Value( PhaseTransform *phase ) const {
  1536 const Type *PowDNode::Value( PhaseTransform *phase ) const {
  1549   const Type *t1 = phase->type( in(1) );
  1537   const Type *t1 = phase->type( in(1) );
  1550   if( t1 == Type::TOP ) return Type::TOP;
  1538   if( t1 == Type::TOP ) return Type::TOP;
  1551   if( t1->base() != Type::DoubleCon ) return Type::DOUBLE;
  1539   if( t1->base() != Type::DoubleCon ) return Type::DOUBLE;