1.1 --- a/src/share/vm/utilities/constantTag.hpp Tue Jan 05 13:05:58 2010 +0100 1.2 +++ b/src/share/vm/utilities/constantTag.hpp Tue Jan 05 15:21:25 2010 +0100 1.3 @@ -36,7 +36,8 @@ 1.4 JVM_CONSTANT_UnresolvedString = 102, // Temporary tag until actual use 1.5 JVM_CONSTANT_StringIndex = 103, // Temporary tag while constructing constant pool 1.6 JVM_CONSTANT_UnresolvedClassInError = 104, // Error tag due to resolution error 1.7 - JVM_CONSTANT_InternalMax = 104 // Last implementation tag 1.8 + JVM_CONSTANT_Object = 105, // Required for BoundMethodHandle arguments. 1.9 + JVM_CONSTANT_InternalMax = 105 // Last implementation tag 1.10 }; 1.11 1.12 1.13 @@ -70,6 +71,8 @@ 1.14 bool is_unresolved_string() const { return _tag == JVM_CONSTANT_UnresolvedString; } 1.15 bool is_string_index() const { return _tag == JVM_CONSTANT_StringIndex; } 1.16 1.17 + bool is_object() const { return _tag == JVM_CONSTANT_Object; } 1.18 + 1.19 bool is_klass_reference() const { return is_klass_index() || is_unresolved_klass(); } 1.20 bool is_klass_or_reference() const{ return is_klass() || is_klass_reference(); } 1.21 bool is_field_or_method() const { return is_field() || is_method() || is_interface_method(); }