< prev index next >

src/share/vm/code/debugInfo.hpp

Print this page

        

@@ -39,10 +39,11 @@
 // ScopeValue        describes the value of a variable/expression in a scope
 // - LocationValue   describes a value in a given location (in frame or register)
 // - ConstantValue   describes a constant
 
 class ConstantOopReadValue;
+class ObjectValue;
 
 class ScopeValue: public ResourceObj {
  public:
   // Testers
   virtual bool is_location() const { return false; }

@@ -56,10 +57,15 @@
   ConstantOopReadValue* as_ConstantOopReadValue() {
     assert(is_constant_oop(), "must be");
     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);
 };
 
< prev index next >