Mercurial > hg > truffle
comparison src/share/vm/opto/type.hpp @ 145:f3de1255b035
6603011: RFE: Optimize long division
Summary: Transform long division by constant into multiply
Reviewed-by: never, kvn
author | rasbold |
---|---|
date | Wed, 07 May 2008 08:06:46 -0700 |
parents | ba764ed4b6f2 |
children | 885ed790ecf0 |
comparison
equal
deleted
inserted
replaced
132:60b728ec77c1 | 145:f3de1255b035 |
---|---|
440 // must always specify w | 440 // must always specify w |
441 static const TypeLong *make(jlong lo, jlong hi, int w); | 441 static const TypeLong *make(jlong lo, jlong hi, int w); |
442 | 442 |
443 // Check for single integer | 443 // Check for single integer |
444 int is_con() const { return _lo==_hi; } | 444 int is_con() const { return _lo==_hi; } |
445 bool is_con(int i) const { return is_con() && _lo == i; } | |
445 jlong get_con() const { assert( is_con(), "" ); return _lo; } | 446 jlong get_con() const { assert( is_con(), "" ); return _lo; } |
446 | 447 |
447 virtual bool is_finite() const; // Has a finite value | 448 virtual bool is_finite() const; // Has a finite value |
448 | 449 |
449 virtual const Type *xmeet( const Type *t ) const; | 450 virtual const Type *xmeet( const Type *t ) const; |