src/share/vm/opto/subnode.cpp

changeset 3787
6759698e3140
parent 3407
35acf8f0a2e4
child 3834
8f6ce6f1049b
equal deleted inserted replaced
3760:8f972594effc 3787:6759698e3140
1312 const Type *t2 = phase->type( in(2) ); 1312 const Type *t2 = phase->type( in(2) );
1313 if( t2 == Type::TOP ) return Type::TOP; 1313 if( t2 == Type::TOP ) return Type::TOP;
1314 if( t2->base() != Type::DoubleCon ) return Type::DOUBLE; 1314 if( t2->base() != Type::DoubleCon ) return Type::DOUBLE;
1315 double d1 = t1->getd(); 1315 double d1 = t1->getd();
1316 double d2 = t2->getd(); 1316 double d2 = t2->getd();
1317 if( d1 < 0.0 ) return Type::DOUBLE;
1318 if( d2 < 0.0 ) return Type::DOUBLE;
1319 return TypeD::make( StubRoutines::intrinsic_pow( d1, d2 ) ); 1317 return TypeD::make( StubRoutines::intrinsic_pow( d1, d2 ) );
1320 } 1318 }

mercurial