Print this page
rev 1080 : [mq]: meth.walker.patch
rev 1081 : imported patch indy-cleanup-6893081.patch

Split Close
Expand all
Collapse all
          --- old/src/share/vm/classfile/javaClasses.hpp
          +++ new/src/share/vm/classfile/javaClasses.hpp
↓ open down ↓ 1076 lines elided ↑ open up ↑
1077 1077  public:
1078 1078    // Accessors
1079 1079    static oop            type(oop site);
1080 1080  
1081 1081    static oop            target(oop site);
1082 1082    static void       set_target(oop site, oop target);
1083 1083  
1084 1084    static oop            vmmethod(oop site);
1085 1085    static void       set_vmmethod(oop site, oop ref);
1086 1086  
     1087 +  // Testers
     1088 +  static bool is_subclass(klassOop klass) {
     1089 +    return Klass::cast(klass)->is_subclass_of(SystemDictionary::CallSite_klass());
     1090 +  }
     1091 +  static bool is_instance(oop obj) {
     1092 +    return obj != NULL && is_subclass(obj->klass());
     1093 +  }
     1094 +
1087 1095    // Accessors for code generation:
1088 1096    static int target_offset_in_bytes()           { return _target_offset; }
1089 1097    static int type_offset_in_bytes()             { return _type_offset; }
1090 1098    static int vmmethod_offset_in_bytes()         { return _vmmethod_offset; }
1091 1099  };
1092 1100  
1093 1101  
1094 1102  // Interface to java.security.AccessControlContext objects
1095 1103  
1096 1104  class java_security_AccessControlContext: AllStatic {
↓ open down ↓ 165 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX