--- 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);