< prev index next >
src/hotspot/share/opto/type.cpp
Print this page
@@ -1501,11 +1501,11 @@
}
//------------------------------hash-------------------------------------------
// Type-specific hashing function.
int TypeInt::hash(void) const {
- return java_add(java_add(_lo, _hi), java_add(_widen, (int)Type::Int));
+ 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,11 +2503,11 @@
}
//------------------------------hash-------------------------------------------
// Type-specific hashing function.
int TypePtr::hash(void) const {
- return java_add(java_add(_ptr, _offset), java_add( hash_speculative(), _inline_depth));
+ 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,12 +3336,12 @@
//------------------------------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()));
+ 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,11 +3944,11 @@
}
//------------------------------hash-------------------------------------------
// Type-specific hashing function.
int TypeInstPtr::hash(void) const {
- int hash = java_add(klass()->hash(), TypeOopPtr::hash());
+ int hash = java_add((jint)klass()->hash(), (jint)TypeOopPtr::hash());
return hash;
}
//------------------------------dump2------------------------------------------
// Dump oop Type
@@ -4869,11 +4869,11 @@
}
//------------------------------hash-------------------------------------------
// Type-specific hashing function.
int TypeKlassPtr::hash(void) const {
- return java_add(klass()->hash(), TypePtr::hash());
+ 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 >