subnode.cpp (2972:35acf8f0a2e4) subnode.cpp (3352:6759698e3140)
1/*
2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *

--- 1300 unchanged lines hidden (view full) ---

1309 const Type *t1 = phase->type( in(1) );
1310 if( t1 == Type::TOP ) return Type::TOP;
1311 if( t1->base() != Type::DoubleCon ) return Type::DOUBLE;
1312 const Type *t2 = phase->type( in(2) );
1313 if( t2 == Type::TOP ) return Type::TOP;
1314 if( t2->base() != Type::DoubleCon ) return Type::DOUBLE;
1315 double d1 = t1->getd();
1316 double d2 = t2->getd();
1/*
2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *

--- 1300 unchanged lines hidden (view full) ---

1309 const Type *t1 = phase->type( in(1) );
1310 if( t1 == Type::TOP ) return Type::TOP;
1311 if( t1->base() != Type::DoubleCon ) return Type::DOUBLE;
1312 const Type *t2 = phase->type( in(2) );
1313 if( t2 == Type::TOP ) return Type::TOP;
1314 if( t2->base() != Type::DoubleCon ) return Type::DOUBLE;
1315 double d1 = t1->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 ) );
1320}
1317 return TypeD::make( StubRoutines::intrinsic_pow( d1, d2 ) );
1318}