comparison src/share/vm/opto/node.cpp @ 113:ba764ed4b6f2

6420645: Create a vm that uses compressed oops for up to 32gb heapsizes Summary: Compressed oops in instances, arrays, and headers. Code contributors are coleenp, phh, never, swamyv Reviewed-by: jmasa, kamg, acorn, tbell, kvn, rasbold
author coleenp
date Sun, 13 Apr 2008 17:43:42 -0400
parents 99269dbf4ba8
children d1a5218d7eaf
comparison
equal deleted inserted replaced
110:a49a647afe9a 113:ba764ed4b6f2
1167 intptr_t Node::get_ptr() const { 1167 intptr_t Node::get_ptr() const {
1168 assert( Opcode() == Op_ConP, "" ); 1168 assert( Opcode() == Op_ConP, "" );
1169 return ((ConPNode*)this)->type()->is_ptr()->get_con(); 1169 return ((ConPNode*)this)->type()->is_ptr()->get_con();
1170 } 1170 }
1171 1171
1172 // Get a narrow oop constant from a ConNNode.
1173 intptr_t Node::get_narrowcon() const {
1174 assert( Opcode() == Op_ConN, "" );
1175 return ((ConNNode*)this)->type()->is_narrowoop()->get_con();
1176 }
1177
1172 // Get a long constant from a ConNode. 1178 // Get a long constant from a ConNode.
1173 // Return a default value if there is no apparent constant here. 1179 // Return a default value if there is no apparent constant here.
1174 const TypeLong* Node::find_long_type() const { 1180 const TypeLong* Node::find_long_type() const {
1175 if (this->is_Type()) { 1181 if (this->is_Type()) {
1176 return this->as_Type()->type()->isa_long(); 1182 return this->as_Type()->type()->isa_long();