diff src/share/vm/opto/type.hpp @ 14437:15120a36272d

8028767: PPC64: (part 121): smaller shared changes needed to build C2 Summary: smaller shared changes required to build the C2 compiler on PPC64. Reviewed-by: kvn
author goetz
date Thu, 21 Nov 2013 19:00:57 -0800
parents 6c2f07d1495f
children 45467c53f178
line wrap: on
line diff
--- a/src/share/vm/opto/type.hpp	Thu Nov 21 18:29:34 2013 -0800
+++ b/src/share/vm/opto/type.hpp	Thu Nov 21 19:00:57 2013 -0800
@@ -524,6 +524,9 @@
   bool is_con(int i) const { return is_con() && _lo == i; }
   jlong get_con() const { assert( is_con(), "" ); return _lo; }
 
+  // Check for positive 32-bit value.
+  int is_positive_int() const { return _lo >= 0 && _hi <= (jlong)max_jint; }
+
   virtual bool        is_finite() const;  // Has a finite value
 
   virtual const Type *xmeet( const Type *t ) const;