hotspot/src/share/vm/opto/type.hpp
changeset 392 0b3167e2f2de
parent 360 21d113ecbf6a
child 589 a44a1e70a3e4
--- a/hotspot/src/share/vm/opto/type.hpp	Tue Apr 29 19:45:22 2008 -0700
+++ b/hotspot/src/share/vm/opto/type.hpp	Wed May 07 08:06:46 2008 -0700
@@ -442,6 +442,7 @@
 
   // Check for single integer
   int is_con() const { return _lo==_hi; }
+  bool is_con(int i) const { return is_con() && _lo == i; }
   jlong get_con() const { assert( is_con(), "" ); return _lo; }
 
   virtual bool        is_finite() const;  // Has a finite value