< prev index next >

src/hotspot/share/code/debugInfo.hpp

Print this page

        

@@ -40,10 +40,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 LocationValue;
 class ObjectValue;
 
 class ScopeValue: public ResourceObj {
  public:
   // Testers

@@ -64,10 +65,15 @@
   ObjectValue* as_ObjectValue() {
     assert(is_object(), "must be");
     return (ObjectValue*)this;
   }
 
+  LocationValue* as_LocationValue() {
+    assert(is_location(), "must be");
+    return (LocationValue*)this;
+  }
+
   // Serialization of debugging information
   virtual void write_on(DebugInfoWriteStream* stream) = 0;
   static ScopeValue* read_from(DebugInfoReadStream* stream);
 };
 
< prev index next >