< prev index next >
src/hotspot/share/opto/type.cpp
Print this page
*** 1501,1511 ****
}
//------------------------------hash-------------------------------------------
// Type-specific hashing function.
int TypeInt::hash(void) const {
! return java_add(java_add(_lo, _hi), java_add(_widen, (int)Type::Int));
}
//------------------------------is_finite--------------------------------------
// Has a finite value
bool TypeInt::is_finite() const {
--- 1501,1511 ----
}
//------------------------------hash-------------------------------------------
// Type-specific hashing function.
int TypeInt::hash(void) const {
! return java_add(java_add(_lo, _hi), java_add((jint)_widen, (jint)Type::Int));
}
//------------------------------is_finite--------------------------------------
// Has a finite value
bool TypeInt::is_finite() const {
*** 2503,2513 ****
}
//------------------------------hash-------------------------------------------
// Type-specific hashing function.
int TypePtr::hash(void) const {
! return java_add(java_add(_ptr, _offset), java_add( hash_speculative(), _inline_depth));
;
}
/**
* Return same type without a speculative part
--- 2503,2513 ----
}
//------------------------------hash-------------------------------------------
// Type-specific hashing function.
int TypePtr::hash(void) const {
! return java_add(java_add((jint)_ptr, (jint)_offset), java_add((jint)hash_speculative(), (jint)_inline_depth));
;
}
/**
* Return same type without a speculative part
*** 3336,3347 ****
//------------------------------hash-------------------------------------------
// Type-specific hashing function.
int TypeOopPtr::hash(void) const {
return
! java_add(java_add(const_oop() ? const_oop()->hash() : 0, _klass_is_exact),
! java_add(_instance_id, TypePtr::hash()));
}
//------------------------------dump2------------------------------------------
#ifndef PRODUCT
void TypeOopPtr::dump2( Dict &d, uint depth, outputStream *st ) const {
--- 3336,3347 ----
//------------------------------hash-------------------------------------------
// Type-specific hashing function.
int TypeOopPtr::hash(void) const {
return
! java_add(java_add((jint)(const_oop() ? const_oop()->hash() : 0), (jint)_klass_is_exact),
! java_add((jint)_instance_id, (jint)TypePtr::hash()));
}
//------------------------------dump2------------------------------------------
#ifndef PRODUCT
void TypeOopPtr::dump2( Dict &d, uint depth, outputStream *st ) const {
*** 3944,3954 ****
}
//------------------------------hash-------------------------------------------
// Type-specific hashing function.
int TypeInstPtr::hash(void) const {
! int hash = java_add(klass()->hash(), TypeOopPtr::hash());
return hash;
}
//------------------------------dump2------------------------------------------
// Dump oop Type
--- 3944,3954 ----
}
//------------------------------hash-------------------------------------------
// Type-specific hashing function.
int TypeInstPtr::hash(void) const {
! int hash = java_add((jint)klass()->hash(), (jint)TypeOopPtr::hash());
return hash;
}
//------------------------------dump2------------------------------------------
// Dump oop Type
*** 4869,4879 ****
}
//------------------------------hash-------------------------------------------
// Type-specific hashing function.
int TypeKlassPtr::hash(void) const {
! return java_add(klass()->hash(), TypePtr::hash());
}
//------------------------------singleton--------------------------------------
// TRUE if Type is a singleton type, FALSE otherwise. Singletons are simple
// constants
--- 4869,4879 ----
}
//------------------------------hash-------------------------------------------
// Type-specific hashing function.
int TypeKlassPtr::hash(void) const {
! return java_add((jint)klass()->hash(), (jint)TypePtr::hash());
}
//------------------------------singleton--------------------------------------
// TRUE if Type is a singleton type, FALSE otherwise. Singletons are simple
// constants
< prev index next >