1.1 --- a/src/share/vm/opto/type.hpp Tue Apr 29 19:45:22 2008 -0700 1.2 +++ b/src/share/vm/opto/type.hpp Wed May 07 08:06:46 2008 -0700 1.3 @@ -442,6 +442,7 @@ 1.4 1.5 // Check for single integer 1.6 int is_con() const { return _lo==_hi; } 1.7 + bool is_con(int i) const { return is_con() && _lo == i; } 1.8 jlong get_con() const { assert( is_con(), "" ); return _lo; } 1.9 1.10 virtual bool is_finite() const; // Has a finite value