comparison src/share/vm/classfile/javaClasses.hpp @ 726:be93aad57795

6655646: dynamic languages need dynamically linked call sites Summary: invokedynamic instruction (JSR 292 RI) Reviewed-by: twisti, never
author jrose
date Tue, 21 Apr 2009 23:21:04 -0700
parents e5b0439ef4ae
children 987e948ebbc8
comparison
equal deleted inserted replaced
725:928912ce8438 726:be93aad57795
1058 static int vmslots_offset_in_bytes() { return _vmslots_offset; } 1058 static int vmslots_offset_in_bytes() { return _vmslots_offset; }
1059 static int erasedType_offset_in_bytes() { return _erasedType_offset; } 1059 static int erasedType_offset_in_bytes() { return _erasedType_offset; }
1060 }; 1060 };
1061 1061
1062 1062
1063 // Interface to sun.dyn.CallSiteImpl objects
1064
1065 class sun_dyn_CallSiteImpl: AllStatic {
1066 friend class JavaClasses;
1067
1068 private:
1069 static int _type_offset;
1070 static int _target_offset;
1071 static int _vmmethod_offset;
1072
1073 static void compute_offsets();
1074
1075 public:
1076 // Accessors
1077 static oop type(oop site);
1078
1079 static oop target(oop site);
1080 static void set_target(oop site, oop target);
1081
1082 static oop vmmethod(oop site);
1083 static void set_vmmethod(oop site, oop ref);
1084
1085 // Accessors for code generation:
1086 static int target_offset_in_bytes() { return _target_offset; }
1087 static int type_offset_in_bytes() { return _type_offset; }
1088 static int vmmethod_offset_in_bytes() { return _vmmethod_offset; }
1089 };
1063 1090
1064 1091
1065 // Interface to java.security.AccessControlContext objects 1092 // Interface to java.security.AccessControlContext objects
1066 1093
1067 class java_security_AccessControlContext: AllStatic { 1094 class java_security_AccessControlContext: AllStatic {