1.1 --- a/src/share/vm/ci/ciObject.hpp Fri Sep 28 14:36:20 2012 -0700 1.2 +++ b/src/share/vm/ci/ciObject.hpp Mon Oct 01 14:50:10 2012 -0700 1.3 @@ -123,6 +123,7 @@ 1.4 virtual bool is_instance() { return false; } 1.5 virtual bool is_member_name() const { return false; } 1.6 virtual bool is_method_handle() const { return false; } 1.7 + virtual bool is_method_type() const { return false; } 1.8 virtual bool is_array() { return false; } 1.9 virtual bool is_obj_array() { return false; } 1.10 virtual bool is_type_array() { return false; } 1.11 @@ -142,35 +143,39 @@ 1.12 } 1.13 1.14 // Subclass casting with assertions. 1.15 - ciNullObject* as_null_object() { 1.16 + ciNullObject* as_null_object() { 1.17 assert(is_null_object(), "bad cast"); 1.18 return (ciNullObject*)this; 1.19 } 1.20 - ciCallSite* as_call_site() { 1.21 + ciCallSite* as_call_site() { 1.22 assert(is_call_site(), "bad cast"); 1.23 - return (ciCallSite*) this; 1.24 + return (ciCallSite*)this; 1.25 } 1.26 - ciInstance* as_instance() { 1.27 + ciInstance* as_instance() { 1.28 assert(is_instance(), "bad cast"); 1.29 return (ciInstance*)this; 1.30 } 1.31 - ciMemberName* as_member_name() { 1.32 + ciMemberName* as_member_name() { 1.33 assert(is_member_name(), "bad cast"); 1.34 return (ciMemberName*)this; 1.35 } 1.36 - ciMethodHandle* as_method_handle() { 1.37 + ciMethodHandle* as_method_handle() { 1.38 assert(is_method_handle(), "bad cast"); 1.39 - return (ciMethodHandle*) this; 1.40 + return (ciMethodHandle*)this; 1.41 } 1.42 - ciArray* as_array() { 1.43 + ciMethodType* as_method_type() { 1.44 + assert(is_method_type(), "bad cast"); 1.45 + return (ciMethodType*)this; 1.46 + } 1.47 + ciArray* as_array() { 1.48 assert(is_array(), "bad cast"); 1.49 return (ciArray*)this; 1.50 } 1.51 - ciObjArray* as_obj_array() { 1.52 + ciObjArray* as_obj_array() { 1.53 assert(is_obj_array(), "bad cast"); 1.54 return (ciObjArray*)this; 1.55 } 1.56 - ciTypeArray* as_type_array() { 1.57 + ciTypeArray* as_type_array() { 1.58 assert(is_type_array(), "bad cast"); 1.59 return (ciTypeArray*)this; 1.60 }