1.1 --- a/src/share/vm/opto/node.cpp Wed May 08 15:08:01 2013 -0700 1.2 +++ b/src/share/vm/opto/node.cpp Thu May 09 17:28:04 2013 -0700 1.3 @@ -1398,6 +1398,21 @@ 1.4 return NULL; 1.5 } 1.6 1.7 + 1.8 +/** 1.9 + * Return a ptr type for nodes which should have it. 1.10 + */ 1.11 +const TypePtr* Node::get_ptr_type() const { 1.12 + const TypePtr* tp = this->bottom_type()->make_ptr(); 1.13 +#ifdef ASSERT 1.14 + if (tp == NULL) { 1.15 + this->dump(1); 1.16 + assert((tp != NULL), "unexpected node type"); 1.17 + } 1.18 +#endif 1.19 + return tp; 1.20 +} 1.21 + 1.22 // Get a double constant from a ConstNode. 1.23 // Returns the constant if it is a double ConstNode 1.24 jdouble Node::getd() const {