--- a/hotspot/src/share/vm/opto/node.cpp Wed May 08 15:08:01 2013 -0700
+++ b/hotspot/src/share/vm/opto/node.cpp Thu May 09 17:28:04 2013 -0700
@@ -1398,6 +1398,21 @@
return NULL;
}
+
+/**
+ * Return a ptr type for nodes which should have it.
+ */
+const TypePtr* Node::get_ptr_type() const {
+ const TypePtr* tp = this->bottom_type()->make_ptr();
+#ifdef ASSERT
+ if (tp == NULL) {
+ this->dump(1);
+ assert((tp != NULL), "unexpected node type");
+ }
+#endif
+ return tp;
+}
+
// Get a double constant from a ConstNode.
// Returns the constant if it is a double ConstNode
jdouble Node::getd() const {