comparison src/share/vm/classfile/javaClasses.hpp @ 1135:e66fd840cb6b

6893081: method handle & invokedynamic code needs additional cleanup (post 6815692, 6858164) Summary: During the work for 6829187 we have fixed a number of basic bugs which are logically grouped with 6815692 and 6858164 but which must be reviewed and pushed separately. Reviewed-by: kvn, never
author twisti
date Mon, 04 Jan 2010 18:38:08 +0100
parents aa62b9388fce
children 4ce7240d622c
comparison
equal deleted inserted replaced
1134:0910903272e5 1135:e66fd840cb6b
1082 static void set_target(oop site, oop target); 1082 static void set_target(oop site, oop target);
1083 1083
1084 static oop vmmethod(oop site); 1084 static oop vmmethod(oop site);
1085 static void set_vmmethod(oop site, oop ref); 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 // Accessors for code generation: 1095 // Accessors for code generation:
1088 static int target_offset_in_bytes() { return _target_offset; } 1096 static int target_offset_in_bytes() { return _target_offset; }
1089 static int type_offset_in_bytes() { return _type_offset; } 1097 static int type_offset_in_bytes() { return _type_offset; }
1090 static int vmmethod_offset_in_bytes() { return _vmmethod_offset; } 1098 static int vmmethod_offset_in_bytes() { return _vmmethod_offset; }
1091 }; 1099 };