hotspot/src/share/vm/code/debugInfo.hpp
changeset 33160 c59f1676d27e
parent 31406 4121166054b6
child 38133 78b95467b9f1
--- a/hotspot/src/share/vm/code/debugInfo.hpp	Thu Oct 08 10:25:45 2015 +0000
+++ b/hotspot/src/share/vm/code/debugInfo.hpp	Thu Oct 08 12:49:30 2015 -1000
@@ -41,6 +41,7 @@
 // - ConstantValue   describes a constant
 
 class ConstantOopReadValue;
+class ObjectValue;
 
 class ScopeValue: public ResourceObj {
  public:
@@ -58,6 +59,11 @@
     return (ConstantOopReadValue*) this;
   }
 
+  ObjectValue* as_ObjectValue() {
+    assert(is_object(), "must be");
+    return (ObjectValue*)this;
+  }
+
   // Serialization of debugging information
   virtual void write_on(DebugInfoWriteStream* stream) = 0;
   static ScopeValue* read_from(DebugInfoReadStream* stream);