src/share/vm/oops/methodOop.hpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File 6817525 Sdiff src/share/vm/oops

src/share/vm/oops/methodOop.hpp

Print this page




 590   bool is_method_handle_invoke() const              { return access_flags().is_method_handle_invoke(); }
 591   static bool is_method_handle_invoke_name(vmSymbols::SID name_sid);
 592   static bool is_method_handle_invoke_name(Symbol* name) {
 593     return is_method_handle_invoke_name(vmSymbols::find_sid(name));
 594   }
 595   // Tests if this method is an internal adapter frame from the
 596   // MethodHandleCompiler.
 597   bool is_method_handle_adapter() const;
 598   static methodHandle make_invoke_method(KlassHandle holder,
 599                                          Symbol* name, //invokeExact or invokeGeneric
 600                                          Symbol* signature, //anything at all
 601                                          Handle method_type,
 602                                          TRAPS);
 603   // these operate only on invoke methods:
 604   oop method_handle_type() const;
 605   static jint* method_type_offsets_chain();  // series of pointer-offsets, terminated by -1
 606   // presize interpreter frames for extra interpreter stack entries, if needed
 607   // method handles want to be able to push a few extra values (e.g., a bound receiver), and
 608   // invokedynamic sometimes needs to push a bootstrap method, call site, and arglist,
 609   // all without checking for a stack overflow
 610   static int extra_stack_entries() { return (EnableMethodHandles ? (int)MethodHandlePushLimit : 0) + (EnableInvokeDynamic ? 3 : 0); }
 611   static int extra_stack_words();  // = extra_stack_entries() * Interpreter::stackElementSize()
 612 
 613   // RedefineClasses() support:
 614   bool is_old() const                               { return access_flags().is_old(); }
 615   void set_is_old()                                 { _access_flags.set_is_old(); }
 616   bool is_obsolete() const                          { return access_flags().is_obsolete(); }
 617   void set_is_obsolete()                            { _access_flags.set_is_obsolete(); }
 618   // see the definition in methodOop.cpp for the gory details
 619   bool should_not_be_cached() const;
 620 
 621   // JVMTI Native method prefixing support:
 622   bool is_prefixed_native() const                   { return access_flags().is_prefixed_native(); }
 623   void set_is_prefixed_native()                     { _access_flags.set_is_prefixed_native(); }
 624 
 625   // Rewriting support
 626   static methodHandle clone_with_new_data(methodHandle m, u_char* new_code, int new_code_length,
 627                                           u_char* new_compressed_linenumber_table, int new_compressed_linenumber_size, TRAPS);
 628 
 629   // Get this method's jmethodID -- allocate if it doesn't exist
 630   jmethodID jmethod_id()                            { methodHandle this_h(this);




 590   bool is_method_handle_invoke() const              { return access_flags().is_method_handle_invoke(); }
 591   static bool is_method_handle_invoke_name(vmSymbols::SID name_sid);
 592   static bool is_method_handle_invoke_name(Symbol* name) {
 593     return is_method_handle_invoke_name(vmSymbols::find_sid(name));
 594   }
 595   // Tests if this method is an internal adapter frame from the
 596   // MethodHandleCompiler.
 597   bool is_method_handle_adapter() const;
 598   static methodHandle make_invoke_method(KlassHandle holder,
 599                                          Symbol* name, //invokeExact or invokeGeneric
 600                                          Symbol* signature, //anything at all
 601                                          Handle method_type,
 602                                          TRAPS);
 603   // these operate only on invoke methods:
 604   oop method_handle_type() const;
 605   static jint* method_type_offsets_chain();  // series of pointer-offsets, terminated by -1
 606   // presize interpreter frames for extra interpreter stack entries, if needed
 607   // method handles want to be able to push a few extra values (e.g., a bound receiver), and
 608   // invokedynamic sometimes needs to push a bootstrap method, call site, and arglist,
 609   // all without checking for a stack overflow
 610   static int extra_stack_entries() { return EnableInvokeDynamic ? (int) MethodHandlePushLimit + 3 : 0; }
 611   static int extra_stack_words();  // = extra_stack_entries() * Interpreter::stackElementSize()
 612 
 613   // RedefineClasses() support:
 614   bool is_old() const                               { return access_flags().is_old(); }
 615   void set_is_old()                                 { _access_flags.set_is_old(); }
 616   bool is_obsolete() const                          { return access_flags().is_obsolete(); }
 617   void set_is_obsolete()                            { _access_flags.set_is_obsolete(); }
 618   // see the definition in methodOop.cpp for the gory details
 619   bool should_not_be_cached() const;
 620 
 621   // JVMTI Native method prefixing support:
 622   bool is_prefixed_native() const                   { return access_flags().is_prefixed_native(); }
 623   void set_is_prefixed_native()                     { _access_flags.set_is_prefixed_native(); }
 624 
 625   // Rewriting support
 626   static methodHandle clone_with_new_data(methodHandle m, u_char* new_code, int new_code_length,
 627                                           u_char* new_compressed_linenumber_table, int new_compressed_linenumber_size, TRAPS);
 628 
 629   // Get this method's jmethodID -- allocate if it doesn't exist
 630   jmethodID jmethod_id()                            { methodHandle this_h(this);


src/share/vm/oops/methodOop.hpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File