src/share/vm/opto/addnode.cpp

changeset 9610
f43f77de876a
parent 4357
ad5dd04754ee
child 9637
eef07cd490d4
child 10010
824065fb8b18
     1.1 --- a/src/share/vm/opto/addnode.cpp	Wed Jan 30 17:32:47 2019 +0000
     1.2 +++ b/src/share/vm/opto/addnode.cpp	Fri Feb 01 10:47:30 2019 +0100
     1.3 @@ -344,8 +344,8 @@
     1.4  const Type *AddINode::add_ring( const Type *t0, const Type *t1 ) const {
     1.5    const TypeInt *r0 = t0->is_int(); // Handy access
     1.6    const TypeInt *r1 = t1->is_int();
     1.7 -  int lo = r0->_lo + r1->_lo;
     1.8 -  int hi = r0->_hi + r1->_hi;
     1.9 +  int lo = java_add(r0->_lo, r1->_lo);
    1.10 +  int hi = java_add(r0->_hi, r1->_hi);
    1.11    if( !(r0->is_con() && r1->is_con()) ) {
    1.12      // Not both constants, compute approximate result
    1.13      if( (r0->_lo & r1->_lo) < 0 && lo >= 0 ) {
    1.14 @@ -462,8 +462,8 @@
    1.15  const Type *AddLNode::add_ring( const Type *t0, const Type *t1 ) const {
    1.16    const TypeLong *r0 = t0->is_long(); // Handy access
    1.17    const TypeLong *r1 = t1->is_long();
    1.18 -  jlong lo = r0->_lo + r1->_lo;
    1.19 -  jlong hi = r0->_hi + r1->_hi;
    1.20 +  jlong lo = java_add(r0->_lo, r1->_lo);
    1.21 +  jlong hi = java_add(r0->_hi, r1->_hi);
    1.22    if( !(r0->is_con() && r1->is_con()) ) {
    1.23      // Not both constants, compute approximate result
    1.24      if( (r0->_lo & r1->_lo) < 0 && lo >= 0 ) {

mercurial