Mercurial > hg > truffle
comparison src/share/vm/opto/phaseX.cpp @ 1017:e715b51789d8
Merge
author | cfang |
---|---|
date | Fri, 16 Oct 2009 14:08:44 -0700 |
parents | 89e0543e1737 03b336640699 |
children | c18cbe5936b8 |
comparison
equal
deleted
inserted
replaced
1005:a2ad635573fb | 1017:e715b51789d8 |
---|---|
1500 } | 1500 } |
1501 | 1501 |
1502 //---------------------------------saturate------------------------------------ | 1502 //---------------------------------saturate------------------------------------ |
1503 const Type* PhaseCCP::saturate(const Type* new_type, const Type* old_type, | 1503 const Type* PhaseCCP::saturate(const Type* new_type, const Type* old_type, |
1504 const Type* limit_type) const { | 1504 const Type* limit_type) const { |
1505 const Type* wide_type = new_type->widen(old_type); | 1505 const Type* wide_type = new_type->widen(old_type, limit_type); |
1506 if (wide_type != new_type) { // did we widen? | 1506 if (wide_type != new_type) { // did we widen? |
1507 // If so, we may have widened beyond the limit type. Clip it back down. | 1507 // If so, we may have widened beyond the limit type. Clip it back down. |
1508 new_type = wide_type->filter(limit_type); | 1508 new_type = wide_type->filter(limit_type); |
1509 } | 1509 } |
1510 return new_type; | 1510 return new_type; |