equal
deleted
inserted
replaced
238 virtual uint ideal_reg() const; |
238 virtual uint ideal_reg() const; |
239 virtual const Type *bottom_type() const; |
239 virtual const Type *bottom_type() const; |
240 // Following method is copied from TypeNode: |
240 // Following method is copied from TypeNode: |
241 void set_type(const Type* t) { |
241 void set_type(const Type* t) { |
242 assert(t != NULL, "sanity"); |
242 assert(t != NULL, "sanity"); |
243 debug_only(uint check_hash = (VerifyHashTableKeys && _hash_lock) ? hash() : NO_HASH); |
243 debug_only(uint check_hash = (VerifyHashTableKeys && _hash_lock) ? hash() : (uint)NO_HASH); |
244 *(const Type**)&_type = t; // cast away const-ness |
244 *(const Type**)&_type = t; // cast away const-ness |
245 // If this node is in the hash table, make sure it doesn't need a rehash. |
245 // If this node is in the hash table, make sure it doesn't need a rehash. |
246 assert(check_hash == NO_HASH || check_hash == hash(), "type change must preserve hash code"); |
246 assert(check_hash == NO_HASH || check_hash == hash(), "type change must preserve hash code"); |
247 } |
247 } |
248 const Type* type() const { assert(_type != NULL, "sanity"); return _type; }; |
248 const Type* type() const { assert(_type != NULL, "sanity"); return _type; }; |