< prev index next >

src/hotspot/share/interpreter/linkResolver.hpp

Print this page

321   static Method* resolve_special_call_or_null(const LinkInfo& link_info);
322 
323   static int vtable_index_of_interface_method(Klass* klass, const methodHandle& resolved_method);
324 
325   // same as above for compile-time resolution; returns vtable_index if current_klass if linked
326   static int resolve_virtual_vtable_index  (Klass* receiver_klass,
327                                             const LinkInfo& link_info);
328 
329   // static resolving for compiler (does not throw exceptions, returns null handle if unsuccessful)
330   static Method* linktime_resolve_virtual_method_or_null  (const LinkInfo& link_info);
331   static Method* linktime_resolve_interface_method_or_null(const LinkInfo& link_info);
332 
333   // runtime resolving from constant pool
334   static void resolve_invoke(CallInfo& result, Handle recv,
335                              const constantPoolHandle& pool, int index,
336                              Bytecodes::Code byte, TRAPS);
337 
338   // runtime resolving from attached method
339   static void resolve_invoke(CallInfo& result, Handle& recv,
340                              const methodHandle& attached_method,
341                              Bytecodes::Code byte, TRAPS);
342 
343   // Only resolved method known.
344   static void throw_abstract_method_error(const methodHandle& resolved_method, TRAPS) {
345     throw_abstract_method_error(resolved_method, methodHandle(), NULL, CHECK);
346   }
347   // Resolved method and receiver klass know.
348   static void throw_abstract_method_error(const methodHandle& resolved_method, Klass *recv_klass, TRAPS) {
349     throw_abstract_method_error(resolved_method, methodHandle(), recv_klass, CHECK);
350   }
351   // Selected method is abstract.
352   static void throw_abstract_method_error(const methodHandle& resolved_method,
353                                           const methodHandle& selected_method,
354                                           Klass *recv_klass, TRAPS);
355 };
356 #endif // SHARE_INTERPRETER_LINKRESOLVER_HPP

321   static Method* resolve_special_call_or_null(const LinkInfo& link_info);
322 
323   static int vtable_index_of_interface_method(Klass* klass, const methodHandle& resolved_method);
324 
325   // same as above for compile-time resolution; returns vtable_index if current_klass if linked
326   static int resolve_virtual_vtable_index  (Klass* receiver_klass,
327                                             const LinkInfo& link_info);
328 
329   // static resolving for compiler (does not throw exceptions, returns null handle if unsuccessful)
330   static Method* linktime_resolve_virtual_method_or_null  (const LinkInfo& link_info);
331   static Method* linktime_resolve_interface_method_or_null(const LinkInfo& link_info);
332 
333   // runtime resolving from constant pool
334   static void resolve_invoke(CallInfo& result, Handle recv,
335                              const constantPoolHandle& pool, int index,
336                              Bytecodes::Code byte, TRAPS);
337 
338   // runtime resolving from attached method
339   static void resolve_invoke(CallInfo& result, Handle& recv,
340                              const methodHandle& attached_method,
341                              Bytecodes::Code byte, bool check_null_and_abstract, TRAPS);
342 
343   // Only resolved method known.
344   static void throw_abstract_method_error(const methodHandle& resolved_method, TRAPS) {
345     throw_abstract_method_error(resolved_method, methodHandle(), NULL, CHECK);
346   }
347   // Resolved method and receiver klass know.
348   static void throw_abstract_method_error(const methodHandle& resolved_method, Klass *recv_klass, TRAPS) {
349     throw_abstract_method_error(resolved_method, methodHandle(), recv_klass, CHECK);
350   }
351   // Selected method is abstract.
352   static void throw_abstract_method_error(const methodHandle& resolved_method,
353                                           const methodHandle& selected_method,
354                                           Klass *recv_klass, TRAPS);
355 };
356 #endif // SHARE_INTERPRETER_LINKRESOLVER_HPP
< prev index next >