hotspot/src/share/vm/interpreter/linkResolver.hpp
author minqi
Tue, 17 Nov 2015 15:14:29 -0800
changeset 34229 892795cc82fe
parent 33593 60764a78fa5c
child 34238 60e87df08f1e
permissions -rw-r--r--
8087223: InterfaceMethod CP entry pointing to a class should cause ICCE Summary: Check constantTag for class constant data consistency at method resolution Reviewed-by: coleenp, vlivanov
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
/*
31019
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
     2
 * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     4
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
489c9b5090e2 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
489c9b5090e2 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     8
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
489c9b5090e2 Initial load
duke
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
489c9b5090e2 Initial load
duke
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
489c9b5090e2 Initial load
duke
parents:
diff changeset
    13
 * accompanied this code).
489c9b5090e2 Initial load
duke
parents:
diff changeset
    14
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
489c9b5090e2 Initial load
duke
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    18
 *
5547
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 5421
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 5421
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 5421
diff changeset
    21
 * questions.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    22
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    23
 */
489c9b5090e2 Initial load
duke
parents:
diff changeset
    24
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6062
diff changeset
    25
#ifndef SHARE_VM_INTERPRETER_LINKRESOLVER_HPP
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6062
diff changeset
    26
#define SHARE_VM_INTERPRETER_LINKRESOLVER_HPP
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6062
diff changeset
    27
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents: 13391
diff changeset
    28
#include "oops/method.hpp"
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6062
diff changeset
    29
#include "utilities/top.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6062
diff changeset
    30
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    31
// All the necessary definitions for run-time link resolution.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    32
20017
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
    33
// CallInfo provides all the information gathered for a particular
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
    34
// linked call site after resolving it. A link is any reference
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    35
// made from within the bytecodes of a method to an object outside of
489c9b5090e2 Initial load
duke
parents:
diff changeset
    36
// that method. If the info is invalid, the link has not been resolved
489c9b5090e2 Initial load
duke
parents:
diff changeset
    37
// successfully.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    38
31019
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
    39
class CallInfo : public StackObj {
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    40
 public:
20017
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
    41
  // Ways that a method call might be selected (or not) based on receiver type.
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
    42
  // Note that an invokevirtual instruction might be linked with no_dispatch,
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
    43
  // and an invokeinterface instruction might be linked with any of the three options
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
    44
  enum CallKind {
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
    45
    direct_call,                        // jump into resolved_method (must be concrete)
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
    46
    vtable_call,                        // select recv.klass.method_at_vtable(index)
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
    47
    itable_call,                        // select recv.klass.method_at_itable(resolved_method.holder, index)
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
    48
    unknown_kind = -1
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
    49
  };
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    50
 private:
20017
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
    51
  KlassHandle  _resolved_klass;         // static receiver klass, resolved from a symbolic reference
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    52
  KlassHandle  _selected_klass;         // dynamic receiver class (same as static, or subklass)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    53
  methodHandle _resolved_method;        // static target method
489c9b5090e2 Initial load
duke
parents:
diff changeset
    54
  methodHandle _selected_method;        // dynamic (actual) target method
20017
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
    55
  CallKind     _call_kind;              // kind of call (static(=bytecode static/special +
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
    56
                                        //               others inferred), vtable, itable)
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
    57
  int          _call_index;             // vtable or itable index of selected class method (if any)
13391
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 8921
diff changeset
    58
  Handle       _resolved_appendix;      // extra argument in constant pool (if CPCE::has_appendix)
13929
8da0dc50a6e4 7200949: JSR 292: rubybench/bench/time/bench_base64.rb fails with jruby.jar not on boot class path
twisti
parents: 13728
diff changeset
    59
  Handle       _resolved_method_type;   // MethodType (for invokedynamic and invokehandle call sites)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    60
31019
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
    61
  void set_static(KlassHandle resolved_klass, const methodHandle& resolved_method, TRAPS);
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
    62
  void set_interface(KlassHandle resolved_klass, KlassHandle selected_klass,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
    63
                     const methodHandle& resolved_method,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
    64
                     const methodHandle& selected_method,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
    65
                     int itable_index, TRAPS);
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
    66
  void set_virtual(KlassHandle resolved_klass, KlassHandle selected_klass,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
    67
                   const methodHandle& resolved_method,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
    68
                   const methodHandle& selected_method,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
    69
                   int vtable_index, TRAPS);
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
    70
  void set_handle(const methodHandle& resolved_method,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
    71
                  Handle resolved_appendix, Handle resolved_method_type, TRAPS);
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
    72
  void set_common(KlassHandle resolved_klass, KlassHandle selected_klass,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
    73
                  const methodHandle& resolved_method,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
    74
                  const methodHandle& selected_method,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
    75
                  CallKind kind,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
    76
                  int index, TRAPS);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    77
489c9b5090e2 Initial load
duke
parents:
diff changeset
    78
  friend class LinkResolver;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    79
489c9b5090e2 Initial load
duke
parents:
diff changeset
    80
 public:
20017
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
    81
  CallInfo() {
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
    82
#ifndef PRODUCT
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
    83
    _call_kind  = CallInfo::unknown_kind;
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
    84
    _call_index = Method::garbage_vtable_index;
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
    85
#endif //PRODUCT
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
    86
  }
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
    87
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
    88
  // utility to extract an effective CallInfo from a method and an optional receiver limit
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
    89
  // does not queue the method for compilation
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
    90
  CallInfo(Method* resolved_method, Klass* resolved_klass = NULL);
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
    91
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    92
  KlassHandle  resolved_klass() const            { return _resolved_klass; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    93
  KlassHandle  selected_klass() const            { return _selected_klass; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    94
  methodHandle resolved_method() const           { return _resolved_method; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    95
  methodHandle selected_method() const           { return _selected_method; }
13391
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 8921
diff changeset
    96
  Handle       resolved_appendix() const         { return _resolved_appendix; }
13929
8da0dc50a6e4 7200949: JSR 292: rubybench/bench/time/bench_base64.rb fails with jruby.jar not on boot class path
twisti
parents: 13728
diff changeset
    97
  Handle       resolved_method_type() const      { return _resolved_method_type; }
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    98
489c9b5090e2 Initial load
duke
parents:
diff changeset
    99
  BasicType    result_type() const               { return selected_method()->result_type(); }
20017
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
   100
  CallKind     call_kind() const                 { return _call_kind; }
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
   101
  int          call_index() const                { return _call_index; }
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   102
  int          vtable_index() const {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   103
    // Even for interface calls the vtable index could be non-negative.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   104
    // See CallInfo::set_interface.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   105
    assert(has_vtable_index() || is_statically_bound(), "");
20017
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
   106
    assert(call_kind() == vtable_call || call_kind() == direct_call, "");
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
   107
    // The returned value is < 0 if the call is statically bound.
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
   108
    // But, the returned value may be >= 0 even if the kind is direct_call.
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
   109
    // It is up to the caller to decide which way to go.
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
   110
    return _call_index;
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   111
  }
20017
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
   112
  int          itable_index() const {
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
   113
    assert(call_kind() == itable_call, "");
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
   114
    // The returned value is always >= 0, a valid itable index.
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
   115
    return _call_index;
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
   116
  }
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
   117
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
   118
  // debugging
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
   119
#ifdef ASSERT
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
   120
  bool         has_vtable_index() const          { return _call_index >= 0 && _call_kind != CallInfo::itable_call; }
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
   121
  bool         is_statically_bound() const       { return _call_index == Method::nonvirtual_vtable_index; }
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
   122
#endif //ASSERT
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
   123
  void         verify() PRODUCT_RETURN;
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
   124
  void         print()  PRODUCT_RETURN;
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   125
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   126
31019
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   127
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   128
// Condensed information from constant pool to use to resolve the method or field.
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   129
//   resolved_klass = specified class (i.e., static receiver class)
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   130
//   current_klass  = sending method holder (i.e., class containing the method
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   131
//                    containing the call being resolved)
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   132
class LinkInfo : public StackObj {
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   133
  Symbol*     _name;            // extracted from JVM_CONSTANT_NameAndType
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   134
  Symbol*     _signature;
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   135
  KlassHandle _resolved_klass;  // class that the constant pool entry points to
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   136
  KlassHandle _current_klass;   // class that owns the constant pool
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   137
  bool        _check_access;
34229
892795cc82fe 8087223: InterfaceMethod CP entry pointing to a class should cause ICCE
minqi
parents: 33593
diff changeset
   138
  constantTag _tag;
31019
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   139
 public:
34229
892795cc82fe 8087223: InterfaceMethod CP entry pointing to a class should cause ICCE
minqi
parents: 33593
diff changeset
   140
  enum AccessCheck {
892795cc82fe 8087223: InterfaceMethod CP entry pointing to a class should cause ICCE
minqi
parents: 33593
diff changeset
   141
     needs_access_check,
892795cc82fe 8087223: InterfaceMethod CP entry pointing to a class should cause ICCE
minqi
parents: 33593
diff changeset
   142
     skip_access_check
892795cc82fe 8087223: InterfaceMethod CP entry pointing to a class should cause ICCE
minqi
parents: 33593
diff changeset
   143
  };
892795cc82fe 8087223: InterfaceMethod CP entry pointing to a class should cause ICCE
minqi
parents: 33593
diff changeset
   144
33593
60764a78fa5c 8140274: methodHandles and constantPoolHandles should be passed as const references
coleenp
parents: 33160
diff changeset
   145
  LinkInfo(const constantPoolHandle& pool, int index, TRAPS);
34229
892795cc82fe 8087223: InterfaceMethod CP entry pointing to a class should cause ICCE
minqi
parents: 33593
diff changeset
   146
31019
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   147
  // Condensed information from other call sites within the vm.
34229
892795cc82fe 8087223: InterfaceMethod CP entry pointing to a class should cause ICCE
minqi
parents: 33593
diff changeset
   148
  LinkInfo(KlassHandle resolved_klass, Symbol* name, Symbol* signature, KlassHandle current_klass,
892795cc82fe 8087223: InterfaceMethod CP entry pointing to a class should cause ICCE
minqi
parents: 33593
diff changeset
   149
           AccessCheck check_access = needs_access_check,
892795cc82fe 8087223: InterfaceMethod CP entry pointing to a class should cause ICCE
minqi
parents: 33593
diff changeset
   150
           constantTag tag = JVM_CONSTANT_Invalid) :
31019
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   151
    _resolved_klass(resolved_klass),
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   152
    _name(name), _signature(signature), _current_klass(current_klass),
34229
892795cc82fe 8087223: InterfaceMethod CP entry pointing to a class should cause ICCE
minqi
parents: 33593
diff changeset
   153
    _check_access(check_access == needs_access_check && current_klass.not_null()), _tag(tag) {}
892795cc82fe 8087223: InterfaceMethod CP entry pointing to a class should cause ICCE
minqi
parents: 33593
diff changeset
   154
892795cc82fe 8087223: InterfaceMethod CP entry pointing to a class should cause ICCE
minqi
parents: 33593
diff changeset
   155
  // Case where we just find the method and don't check access against the current class
892795cc82fe 8087223: InterfaceMethod CP entry pointing to a class should cause ICCE
minqi
parents: 33593
diff changeset
   156
  LinkInfo(KlassHandle resolved_klass, Symbol*name, Symbol* signature) :
892795cc82fe 8087223: InterfaceMethod CP entry pointing to a class should cause ICCE
minqi
parents: 33593
diff changeset
   157
    _resolved_klass(resolved_klass),
892795cc82fe 8087223: InterfaceMethod CP entry pointing to a class should cause ICCE
minqi
parents: 33593
diff changeset
   158
    _name(name), _signature(signature), _current_klass(NULL),
892795cc82fe 8087223: InterfaceMethod CP entry pointing to a class should cause ICCE
minqi
parents: 33593
diff changeset
   159
    _check_access(false), _tag(JVM_CONSTANT_Invalid) {}
31019
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   160
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   161
  // accessors
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   162
  Symbol* name() const               { return _name; }
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   163
  Symbol* signature() const          { return _signature; }
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   164
  KlassHandle resolved_klass() const { return _resolved_klass; }
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   165
  KlassHandle current_klass() const  { return _current_klass; }
34229
892795cc82fe 8087223: InterfaceMethod CP entry pointing to a class should cause ICCE
minqi
parents: 33593
diff changeset
   166
  constantTag tag() const            { return _tag; }
31019
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   167
  bool check_access() const          { return _check_access; }
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   168
  char* method_string() const;
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   169
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   170
  void         print()  PRODUCT_RETURN;
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   171
};
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   172
20017
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
   173
// Link information for getfield/putfield & getstatic/putstatic bytecodes
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
   174
// is represented using a fieldDescriptor.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   175
489c9b5090e2 Initial load
duke
parents:
diff changeset
   176
// The LinkResolver is used to resolve constant-pool references at run-time.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   177
// It does all necessary link-time checks & throws exceptions if necessary.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   178
489c9b5090e2 Initial load
duke
parents:
diff changeset
   179
class LinkResolver: AllStatic {
20017
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
   180
  friend class klassVtable;
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
   181
  friend class klassItable;
81eba62e9048 8014013: CallInfo structure no longer accurately reports the result of a LinkResolver operation
drchase
parents: 13929
diff changeset
   182
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   183
 private:
31019
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   184
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   185
  static methodHandle lookup_method_in_klasses(const LinkInfo& link_info,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   186
                                               bool checkpolymorphism,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   187
                                               bool in_imethod_resolve, TRAPS);
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   188
  static methodHandle lookup_method_in_interfaces(const LinkInfo& link_info, TRAPS);
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   189
  static methodHandle lookup_polymorphic_method(const LinkInfo& link_info,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   190
                                                Handle *appendix_result_or_null,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   191
                                                Handle *method_type_result, TRAPS);
33160
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents: 31019
diff changeset
   192
 JVMCI_ONLY(public:) // Needed for CompilerToVM.resolveMethod()
31019
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   193
  // Not Linktime so doesn't take LinkInfo
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   194
  static methodHandle lookup_instance_method_in_klasses (
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   195
                                       KlassHandle klass, Symbol* name, Symbol* signature, TRAPS);
33160
c59f1676d27e 8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents: 31019
diff changeset
   196
 JVMCI_ONLY(private:)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   197
31019
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   198
  // Similar loader constraint checking functions that throw
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   199
  // LinkageError with descriptive message.
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   200
  static void check_method_loader_constraints(const LinkInfo& link_info,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   201
                                              const methodHandle& resolved_method,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   202
                                              const char* method_type, TRAPS);
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   203
  static void check_field_loader_constraints(Symbol* field, Symbol* sig,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   204
                                             KlassHandle current_klass,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   205
                                             KlassHandle sel_klass, TRAPS);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   206
31019
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   207
  static methodHandle resolve_interface_method(const LinkInfo& link_info, bool nostatics, TRAPS);
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   208
  static methodHandle resolve_method          (const LinkInfo& link_info, bool require_methodref, TRAPS);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   209
31019
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   210
  static methodHandle linktime_resolve_static_method    (const LinkInfo& link_info, TRAPS);
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   211
  static methodHandle linktime_resolve_special_method   (const LinkInfo& link_info, TRAPS);
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   212
  static methodHandle linktime_resolve_virtual_method   (const LinkInfo& link_info, TRAPS);
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   213
  static methodHandle linktime_resolve_interface_method (const LinkInfo& link_info, TRAPS);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   214
31019
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   215
  static void runtime_resolve_special_method    (CallInfo& result,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   216
                                                 const methodHandle& resolved_method,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   217
                                                 KlassHandle resolved_klass,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   218
                                                 KlassHandle current_klass,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   219
                                                 bool check_access, TRAPS);
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   220
  static void runtime_resolve_virtual_method    (CallInfo& result,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   221
                                                 const methodHandle& resolved_method,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   222
                                                 KlassHandle resolved_klass,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   223
                                                 Handle recv,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   224
                                                 KlassHandle recv_klass,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   225
                                                 bool check_null_and_abstract, TRAPS);
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   226
  static void runtime_resolve_interface_method  (CallInfo& result,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   227
                                                 const methodHandle& resolved_method,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   228
                                                 KlassHandle resolved_klass,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   229
                                                 Handle recv,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   230
                                                 KlassHandle recv_klass,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   231
                                                 bool check_null_and_abstract, TRAPS);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   232
31019
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   233
  static void check_field_accessability(KlassHandle ref_klass,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   234
                                        KlassHandle resolved_klass,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   235
                                        KlassHandle sel_klass,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   236
                                        const fieldDescriptor& fd, TRAPS);
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   237
  static void check_method_accessability(KlassHandle ref_klass,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   238
                                         KlassHandle resolved_klass,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   239
                                         KlassHandle sel_klass,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   240
                                         const methodHandle& sel_method, TRAPS);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   241
31019
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   242
  // runtime resolving from constant pool
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   243
  static void resolve_invokestatic   (CallInfo& result,
33593
60764a78fa5c 8140274: methodHandles and constantPoolHandles should be passed as const references
coleenp
parents: 33160
diff changeset
   244
                                      const constantPoolHandle& pool, int index, TRAPS);
31019
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   245
  static void resolve_invokespecial  (CallInfo& result,
33593
60764a78fa5c 8140274: methodHandles and constantPoolHandles should be passed as const references
coleenp
parents: 33160
diff changeset
   246
                                      const constantPoolHandle& pool, int index, TRAPS);
31019
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   247
  static void resolve_invokevirtual  (CallInfo& result, Handle recv,
33593
60764a78fa5c 8140274: methodHandles and constantPoolHandles should be passed as const references
coleenp
parents: 33160
diff changeset
   248
                                      const constantPoolHandle& pool, int index, TRAPS);
31019
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   249
  static void resolve_invokeinterface(CallInfo& result, Handle recv,
33593
60764a78fa5c 8140274: methodHandles and constantPoolHandles should be passed as const references
coleenp
parents: 33160
diff changeset
   250
                                      const constantPoolHandle& pool, int index, TRAPS);
31019
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   251
  static void resolve_invokedynamic  (CallInfo& result,
33593
60764a78fa5c 8140274: methodHandles and constantPoolHandles should be passed as const references
coleenp
parents: 33160
diff changeset
   252
                                      const constantPoolHandle& pool, int index, TRAPS);
31019
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   253
  static void resolve_invokehandle   (CallInfo& result,
33593
60764a78fa5c 8140274: methodHandles and constantPoolHandles should be passed as const references
coleenp
parents: 33160
diff changeset
   254
                                      const constantPoolHandle& pool, int index, TRAPS);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   255
 public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   256
  // constant pool resolving
489c9b5090e2 Initial load
duke
parents:
diff changeset
   257
  static void check_klass_accessability(KlassHandle ref_klass, KlassHandle sel_klass, TRAPS);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   258
31019
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   259
  // static resolving calls (will not run any Java code);
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   260
  // used only from Bytecode_invoke::static_target
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   261
  static methodHandle resolve_method_statically(Bytecodes::Code code,
33593
60764a78fa5c 8140274: methodHandles and constantPoolHandles should be passed as const references
coleenp
parents: 33160
diff changeset
   262
                                                const constantPoolHandle& pool,
31019
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   263
                                                int index, TRAPS);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   264
31019
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   265
  static void resolve_field_access(fieldDescriptor& result,
33593
60764a78fa5c 8140274: methodHandles and constantPoolHandles should be passed as const references
coleenp
parents: 33160
diff changeset
   266
                                   const constantPoolHandle& pool,
31019
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   267
                                   int index, Bytecodes::Code byte, TRAPS);
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   268
  static void resolve_field(fieldDescriptor& result, const LinkInfo& link_info,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   269
                            Bytecodes::Code access_kind,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   270
                            bool initialize_class, TRAPS);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   271
31019
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   272
  static void resolve_static_call   (CallInfo& result,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   273
                                     const LinkInfo& link_info,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   274
                                     bool initialize_klass, TRAPS);
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   275
  static void resolve_special_call  (CallInfo& result,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   276
                                     const LinkInfo& link_info,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   277
                                     TRAPS);
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   278
  static void resolve_virtual_call  (CallInfo& result, Handle recv, KlassHandle recv_klass,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   279
                                     const LinkInfo& link_info,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   280
                                     bool check_null_and_abstract, TRAPS);
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   281
  static void resolve_interface_call(CallInfo& result, Handle recv, KlassHandle recv_klass,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   282
                                     const LinkInfo& link_info,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   283
                                     bool check_null_and_abstract, TRAPS);
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   284
  static void resolve_handle_call   (CallInfo& result,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   285
                                     const LinkInfo& link_info, TRAPS);
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   286
  static void resolve_dynamic_call  (CallInfo& result, Handle bootstrap_specifier,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   287
                                     Symbol* method_name, Symbol* method_signature,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   288
                                     KlassHandle current_klass, TRAPS);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   289
31019
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   290
  // same as above for compile-time resolution; but returns null handle instead of throwing
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   291
  // an exception on error also, does not initialize klass (i.e., no side effects)
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   292
  static methodHandle resolve_virtual_call_or_null  (KlassHandle receiver_klass,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   293
                                                     const LinkInfo& link_info);
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   294
  static methodHandle resolve_interface_call_or_null(KlassHandle receiver_klass,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   295
                                                     const LinkInfo& link_info);
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   296
  static methodHandle resolve_static_call_or_null   (const LinkInfo& link_info);
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   297
  static methodHandle resolve_special_call_or_null  (const LinkInfo& link_info);
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   298
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   299
  static int vtable_index_of_interface_method(KlassHandle klass, const methodHandle& resolved_method);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   300
489c9b5090e2 Initial load
duke
parents:
diff changeset
   301
  // same as above for compile-time resolution; returns vtable_index if current_klass if linked
31019
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   302
  static int resolve_virtual_vtable_index  (KlassHandle receiver_klass,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   303
                                            const LinkInfo& link_info);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   304
489c9b5090e2 Initial load
duke
parents:
diff changeset
   305
  // static resolving for compiler (does not throw exceptions, returns null handle if unsuccessful)
31019
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   306
  static methodHandle linktime_resolve_virtual_method_or_null  (const LinkInfo& link_info);
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   307
  static methodHandle linktime_resolve_interface_method_or_null(const LinkInfo& link_info);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   308
489c9b5090e2 Initial load
duke
parents:
diff changeset
   309
  // runtime resolving from constant pool
31019
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   310
  static void resolve_invoke(CallInfo& result, Handle recv,
33593
60764a78fa5c 8140274: methodHandles and constantPoolHandles should be passed as const references
coleenp
parents: 33160
diff changeset
   311
                             const constantPoolHandle& pool, int index,
31019
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   312
                             Bytecodes::Code byte, TRAPS);
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   313
 private:
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   314
  static void trace_method_resolution(const char* prefix, KlassHandle klass,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   315
                                      KlassHandle resolved_klass,
d05fcdd70109 8029567: Clean up linkResolver code
coleenp
parents: 30223
diff changeset
   316
                                      const methodHandle& method) PRODUCT_RETURN;
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   317
};
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 6062
diff changeset
   318
#endif // SHARE_VM_INTERPRETER_LINKRESOLVER_HPP