comparison hotspot/src/share/vm/opto/graphKit.hpp @ 2027:a980915cf495

6442502: assert(bits,"Use TypePtr for NULL") on linux-x86 Reviewed-by: kvn
author never
date Wed, 04 Feb 2009 23:17:38 -0800
parents 4c24294029a9
children 347008ce7984
comparison
equal deleted inserted replaced
1:443c47c54088 2:cb8ced5d6c81
81 Node* longcon(jlong con) const { return _gvn.longcon(con); } 81 Node* longcon(jlong con) const { return _gvn.longcon(con); }
82 Node* makecon(const Type *t) const { return _gvn.makecon(t); } 82 Node* makecon(const Type *t) const { return _gvn.makecon(t); }
83 Node* zerocon(BasicType bt) const { return _gvn.zerocon(bt); } 83 Node* zerocon(BasicType bt) const { return _gvn.zerocon(bt); }
84 // (See also macro MakeConX in type.hpp, which uses intcon or longcon.) 84 // (See also macro MakeConX in type.hpp, which uses intcon or longcon.)
85 85
86 // Helper for byte_map_base
87 Node* byte_map_base_node() {
88 // Get base of card map
89 CardTableModRefBS* ct = (CardTableModRefBS*)(Universe::heap()->barrier_set());
90 assert(sizeof(*ct->byte_map_base) == sizeof(jbyte), "adjust users of this code");
91 if (ct->byte_map_base != NULL) {
92 return makecon(TypeRawPtr::make((address)ct->byte_map_base));
93 } else {
94 return null();
95 }
96 }
97
86 jint find_int_con(Node* n, jint value_if_unknown) { 98 jint find_int_con(Node* n, jint value_if_unknown) {
87 return _gvn.find_int_con(n, value_if_unknown); 99 return _gvn.find_int_con(n, value_if_unknown);
88 } 100 }
89 jlong find_long_con(Node* n, jlong value_if_unknown) { 101 jlong find_long_con(Node* n, jlong value_if_unknown) {
90 return _gvn.find_long_con(n, value_if_unknown); 102 return _gvn.find_long_con(n, value_if_unknown);