< prev index next >

src/hotspot/share/classfile/javaClasses.cpp

Print this page
*** 3862,18 ***
  int jdk_internal_invoke_NativeEntryPoint::_argMoves_offset;
  int jdk_internal_invoke_NativeEntryPoint::_returnMoves_offset;
  int jdk_internal_invoke_NativeEntryPoint::_need_transition_offset;
  int jdk_internal_invoke_NativeEntryPoint::_method_type_offset;
  int jdk_internal_invoke_NativeEntryPoint::_name_offset;
  
  #define NEP_FIELDS_DO(macro) \
    macro(_shadow_space_offset,    k, "shadowSpace",    int_signature, false); \
    macro(_argMoves_offset,        k, "argMoves",       long_array_signature, false); \
    macro(_returnMoves_offset,     k, "returnMoves",    long_array_signature, false); \
    macro(_need_transition_offset, k, "needTransition", bool_signature, false); \
    macro(_method_type_offset,     k, "methodType",     java_lang_invoke_MethodType_signature, false); \
!   macro(_name_offset,            k, "name",           string_signature, false);
  
  bool jdk_internal_invoke_NativeEntryPoint::is_instance(oop obj) {
    return obj != NULL && is_subclass(obj->klass());
  }
  
--- 3862,20 ---
  int jdk_internal_invoke_NativeEntryPoint::_argMoves_offset;
  int jdk_internal_invoke_NativeEntryPoint::_returnMoves_offset;
  int jdk_internal_invoke_NativeEntryPoint::_need_transition_offset;
  int jdk_internal_invoke_NativeEntryPoint::_method_type_offset;
  int jdk_internal_invoke_NativeEntryPoint::_name_offset;
+ int jdk_internal_invoke_NativeEntryPoint::_invoker_offset;
  
  #define NEP_FIELDS_DO(macro) \
    macro(_shadow_space_offset,    k, "shadowSpace",    int_signature, false); \
    macro(_argMoves_offset,        k, "argMoves",       long_array_signature, false); \
    macro(_returnMoves_offset,     k, "returnMoves",    long_array_signature, false); \
    macro(_need_transition_offset, k, "needTransition", bool_signature, false); \
    macro(_method_type_offset,     k, "methodType",     java_lang_invoke_MethodType_signature, false); \
!   macro(_name_offset,            k, "name",           string_signature, false); \
+   macro(_invoker_offset,         k, "invoker",        long_signature, false);
  
  bool jdk_internal_invoke_NativeEntryPoint::is_instance(oop obj) {
    return obj != NULL && is_subclass(obj->klass());
  }
  

*** 3910,10 ***
--- 3912,14 ---
  
  oop jdk_internal_invoke_NativeEntryPoint::name(oop entry) {
    return entry->obj_field(_name_offset);
  }
  
+ jlong jdk_internal_invoke_NativeEntryPoint::invoker(oop entry) {
+   return entry->long_field(_invoker_offset);
+ }
+ 
  oop java_lang_invoke_MethodHandle::type(oop mh) {
    return mh->obj_field(_type_offset);
  }
  
  void java_lang_invoke_MethodHandle::set_type(oop mh, oop mtype) {
< prev index next >