diff src/share/vm/opto/type.hpp @ 14456:abec000618bf

Merge
author kvn
date Tue, 28 Jan 2014 12:25:34 -0800
parents 15120a36272d
children 45467c53f178
line wrap: on
line diff
--- a/src/share/vm/opto/type.hpp	Tue Jan 28 11:21:43 2014 -0800
+++ b/src/share/vm/opto/type.hpp	Tue Jan 28 12:25:34 2014 -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;