hotspot/src/share/vm/interpreter/interpreterRuntime.hpp
author never
Thu, 13 Jan 2011 22:15:41 -0800
changeset 7913 dd096a83bdbb
parent 7397 5b173b4ca846
child 7915 c726d9cdeb6e
permissions -rw-r--r--
4926272: methodOopDesc::method_from_bcp is unsafe Reviewed-by: coleenp, jrose, kvn, dcubed
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
/*
7913
dd096a83bdbb 4926272: methodOopDesc::method_from_bcp is unsafe
never
parents: 7397
diff changeset
     2
 * Copyright (c) 1997, 2011, 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: 4429
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 4429
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: 4429
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: 5882
diff changeset
    25
#ifndef SHARE_VM_INTERPRETER_INTERPRETERRUNTIME_HPP
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5882
diff changeset
    26
#define SHARE_VM_INTERPRETER_INTERPRETERRUNTIME_HPP
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5882
diff changeset
    27
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5882
diff changeset
    28
#include "interpreter/bytecode.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5882
diff changeset
    29
#include "interpreter/linkResolver.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5882
diff changeset
    30
#include "memory/universe.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5882
diff changeset
    31
#include "oops/methodOop.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5882
diff changeset
    32
#include "runtime/frame.inline.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5882
diff changeset
    33
#include "runtime/signature.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5882
diff changeset
    34
#include "utilities/top.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5882
diff changeset
    35
#ifdef TARGET_OS_FAMILY_linux
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5882
diff changeset
    36
# include "thread_linux.inline.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5882
diff changeset
    37
#endif
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5882
diff changeset
    38
#ifdef TARGET_OS_FAMILY_solaris
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5882
diff changeset
    39
# include "thread_solaris.inline.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5882
diff changeset
    40
#endif
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5882
diff changeset
    41
#ifdef TARGET_OS_FAMILY_windows
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5882
diff changeset
    42
# include "thread_windows.inline.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5882
diff changeset
    43
#endif
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5882
diff changeset
    44
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    45
// The InterpreterRuntime is called by the interpreter for everything
489c9b5090e2 Initial load
duke
parents:
diff changeset
    46
// that cannot/should not be dealt with in assembly and needs C support.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    47
489c9b5090e2 Initial load
duke
parents:
diff changeset
    48
class InterpreterRuntime: AllStatic {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    49
  friend class BytecodeClosure; // for method and bcp
489c9b5090e2 Initial load
duke
parents:
diff changeset
    50
  friend class PrintingClosure; // for method and bcp
489c9b5090e2 Initial load
duke
parents:
diff changeset
    51
489c9b5090e2 Initial load
duke
parents:
diff changeset
    52
 private:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    53
  // Helper functions to access current interpreter state
489c9b5090e2 Initial load
duke
parents:
diff changeset
    54
  static frame     last_frame(JavaThread *thread)    { return thread->last_frame(); }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    55
  static methodOop method(JavaThread *thread)        { return last_frame(thread).interpreter_frame_method(); }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    56
  static address   bcp(JavaThread *thread)           { return last_frame(thread).interpreter_frame_bcp(); }
5882
6b2aecc4f7d8 6939203: JSR 292 needs method handle constants
jrose
parents: 5702
diff changeset
    57
  static int       bci(JavaThread *thread)           { return last_frame(thread).interpreter_frame_bci(); }
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    58
  static void      set_bcp_and_mdp(address bcp, JavaThread*thread);
360
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
    59
  static Bytecodes::Code code(JavaThread *thread)    {
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
    60
    // pass method to avoid calling unsafe bcp_to_method (partial fix 4926272)
7913
dd096a83bdbb 4926272: methodOopDesc::method_from_bcp is unsafe
never
parents: 7397
diff changeset
    61
    return Bytecodes::code_at(method(thread), bcp(thread));
360
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
    62
  }
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    63
  static bool      already_resolved(JavaThread *thread) { return cache_entry(thread)->is_resolved(code(thread)); }
7913
dd096a83bdbb 4926272: methodOopDesc::method_from_bcp is unsafe
never
parents: 7397
diff changeset
    64
  static Bytecode  bytecode(JavaThread *thread)      { return Bytecode(method(thread), bcp(thread)); }
5688
9052dc91ea67 6939207: refactor constant pool index processing
jrose
parents: 4429
diff changeset
    65
  static int       get_index_u1(JavaThread *thread, Bytecodes::Code bc)
7913
dd096a83bdbb 4926272: methodOopDesc::method_from_bcp is unsafe
never
parents: 7397
diff changeset
    66
                                                        { return bytecode(thread).get_index_u1(bc); }
5688
9052dc91ea67 6939207: refactor constant pool index processing
jrose
parents: 4429
diff changeset
    67
  static int       get_index_u2(JavaThread *thread, Bytecodes::Code bc)
7913
dd096a83bdbb 4926272: methodOopDesc::method_from_bcp is unsafe
never
parents: 7397
diff changeset
    68
                                                        { return bytecode(thread).get_index_u2(bc); }
5688
9052dc91ea67 6939207: refactor constant pool index processing
jrose
parents: 4429
diff changeset
    69
  static int       get_index_u2_cpcache(JavaThread *thread, Bytecodes::Code bc)
7913
dd096a83bdbb 4926272: methodOopDesc::method_from_bcp is unsafe
never
parents: 7397
diff changeset
    70
                                                        { return bytecode(thread).get_index_u2_cpcache(bc); }
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    71
  static int       number_of_dimensions(JavaThread *thread)  { return bcp(thread)[3]; }
2570
ecc7862946d4 6655646: dynamic languages need dynamically linked call sites
jrose
parents: 2534
diff changeset
    72
ecc7862946d4 6655646: dynamic languages need dynamically linked call sites
jrose
parents: 2534
diff changeset
    73
  static ConstantPoolCacheEntry* cache_entry_at(JavaThread *thread, int i)  { return method(thread)->constants()->cache()->entry_at(i); }
ecc7862946d4 6655646: dynamic languages need dynamically linked call sites
jrose
parents: 2534
diff changeset
    74
  static ConstantPoolCacheEntry* cache_entry(JavaThread *thread)            { return cache_entry_at(thread, Bytes::get_native_u2(bcp(thread) + 1)); }
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    75
  static void      note_trap(JavaThread *thread, int reason, TRAPS);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    76
3696
9e5d9b5e1049 4957990: Perm heap bloat in JVM
ysr
parents: 2570
diff changeset
    77
  // Inner work method for Interpreter's frequency counter overflow
9e5d9b5e1049 4957990: Perm heap bloat in JVM
ysr
parents: 2570
diff changeset
    78
  static nmethod* frequency_counter_overflow_inner(JavaThread* thread, address branch_bcp);
9e5d9b5e1049 4957990: Perm heap bloat in JVM
ysr
parents: 2570
diff changeset
    79
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    80
 public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    81
  // Constants
489c9b5090e2 Initial load
duke
parents:
diff changeset
    82
  static void    ldc           (JavaThread* thread, bool wide);
5882
6b2aecc4f7d8 6939203: JSR 292 needs method handle constants
jrose
parents: 5702
diff changeset
    83
  static void    resolve_ldc   (JavaThread* thread, Bytecodes::Code bytecode);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    84
489c9b5090e2 Initial load
duke
parents:
diff changeset
    85
  // Allocation
489c9b5090e2 Initial load
duke
parents:
diff changeset
    86
  static void    _new          (JavaThread* thread, constantPoolOopDesc* pool, int index);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    87
  static void    newarray      (JavaThread* thread, BasicType type, jint size);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    88
  static void    anewarray     (JavaThread* thread, constantPoolOopDesc* pool, int index, jint size);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    89
  static void    multianewarray(JavaThread* thread, jint* first_size_address);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    90
  static void    register_finalizer(JavaThread* thread, oopDesc* obj);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    91
489c9b5090e2 Initial load
duke
parents:
diff changeset
    92
  // Quicken instance-of and check-cast bytecodes
489c9b5090e2 Initial load
duke
parents:
diff changeset
    93
  static void    quicken_io_cc(JavaThread* thread);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    94
489c9b5090e2 Initial load
duke
parents:
diff changeset
    95
  // Exceptions thrown by the interpreter
489c9b5090e2 Initial load
duke
parents:
diff changeset
    96
  static void    throw_AbstractMethodError(JavaThread* thread);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    97
  static void    throw_IncompatibleClassChangeError(JavaThread* thread);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    98
  static void    throw_StackOverflowError(JavaThread* thread);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    99
  static void    throw_ArrayIndexOutOfBoundsException(JavaThread* thread, char* name, jint index);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   100
  static void    throw_ClassCastException(JavaThread* thread, oopDesc* obj);
2534
08dac9ce0cd7 6655638: dynamic languages need method handles
jrose
parents: 670
diff changeset
   101
  static void    throw_WrongMethodTypeException(JavaThread* thread, oopDesc* mtype = NULL, oopDesc* mhandle = NULL);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   102
  static void    create_exception(JavaThread* thread, char* name, char* message);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   103
  static void    create_klass_exception(JavaThread* thread, char* name, oopDesc* obj);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   104
  static address exception_handler_for_exception(JavaThread* thread, oopDesc* exception);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   105
  static void    throw_pending_exception(JavaThread* thread);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   106
489c9b5090e2 Initial load
duke
parents:
diff changeset
   107
  // Statics & fields
489c9b5090e2 Initial load
duke
parents:
diff changeset
   108
  static void    resolve_get_put(JavaThread* thread, Bytecodes::Code bytecode);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   109
489c9b5090e2 Initial load
duke
parents:
diff changeset
   110
  // Synchronization
489c9b5090e2 Initial load
duke
parents:
diff changeset
   111
  static void    monitorenter(JavaThread* thread, BasicObjectLock* elem);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   112
  static void    monitorexit (JavaThread* thread, BasicObjectLock* elem);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   113
489c9b5090e2 Initial load
duke
parents:
diff changeset
   114
  static void    throw_illegal_monitor_state_exception(JavaThread* thread);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   115
  static void    new_illegal_monitor_state_exception(JavaThread* thread);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   116
489c9b5090e2 Initial load
duke
parents:
diff changeset
   117
  // Calls
2570
ecc7862946d4 6655646: dynamic languages need dynamically linked call sites
jrose
parents: 2534
diff changeset
   118
  static void    resolve_invoke       (JavaThread* thread, Bytecodes::Code bytecode);
ecc7862946d4 6655646: dynamic languages need dynamically linked call sites
jrose
parents: 2534
diff changeset
   119
  static void    resolve_invokedynamic(JavaThread* thread);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   120
489c9b5090e2 Initial load
duke
parents:
diff changeset
   121
  // Breakpoints
489c9b5090e2 Initial load
duke
parents:
diff changeset
   122
  static void _breakpoint(JavaThread* thread, methodOopDesc* method, address bcp);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   123
  static Bytecodes::Code get_original_bytecode_at(JavaThread* thread, methodOopDesc* method, address bcp);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   124
  static void            set_original_bytecode_at(JavaThread* thread, methodOopDesc* method, address bcp, Bytecodes::Code new_code);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   125
  static bool is_breakpoint(JavaThread *thread) { return Bytecodes::code_or_bp_at(bcp(thread)) == Bytecodes::_breakpoint; }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   126
489c9b5090e2 Initial load
duke
parents:
diff changeset
   127
  // Safepoints
489c9b5090e2 Initial load
duke
parents:
diff changeset
   128
  static void    at_safepoint(JavaThread* thread);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   129
489c9b5090e2 Initial load
duke
parents:
diff changeset
   130
  // Debugger support
489c9b5090e2 Initial load
duke
parents:
diff changeset
   131
  static void post_field_access(JavaThread *thread, oopDesc* obj,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   132
    ConstantPoolCacheEntry *cp_entry);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   133
  static void post_field_modification(JavaThread *thread, oopDesc* obj,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   134
    ConstantPoolCacheEntry *cp_entry, jvalue *value);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   135
  static void post_method_entry(JavaThread *thread);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   136
  static void post_method_exit (JavaThread *thread);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   137
  static int  interpreter_contains(address pc);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   138
489c9b5090e2 Initial load
duke
parents:
diff changeset
   139
  // Native signature handlers
489c9b5090e2 Initial load
duke
parents:
diff changeset
   140
  static void prepare_native_call(JavaThread* thread, methodOopDesc* method);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   141
  static address slow_signature_handler(JavaThread* thread,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   142
                                        methodOopDesc* method,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   143
                                        intptr_t* from, intptr_t* to);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   144
489c9b5090e2 Initial load
duke
parents:
diff changeset
   145
#if defined(IA32) || defined(AMD64)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   146
  // Popframe support (only needed on x86 and AMD64)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   147
  static void popframe_move_outgoing_args(JavaThread* thread, void* src_address, void* dest_address);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   148
#endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   149
489c9b5090e2 Initial load
duke
parents:
diff changeset
   150
  // Platform dependent stuff
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5882
diff changeset
   151
#ifdef TARGET_ARCH_x86
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5882
diff changeset
   152
# include "interpreterRT_x86.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5882
diff changeset
   153
#endif
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5882
diff changeset
   154
#ifdef TARGET_ARCH_sparc
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5882
diff changeset
   155
# include "interpreterRT_sparc.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5882
diff changeset
   156
#endif
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5882
diff changeset
   157
#ifdef TARGET_ARCH_zero
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5882
diff changeset
   158
# include "interpreterRT_zero.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5882
diff changeset
   159
#endif
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5882
diff changeset
   160
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   161
489c9b5090e2 Initial load
duke
parents:
diff changeset
   162
  // Interpreter's frequency counter overflow
489c9b5090e2 Initial load
duke
parents:
diff changeset
   163
  static nmethod* frequency_counter_overflow(JavaThread* thread, address branch_bcp);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   164
489c9b5090e2 Initial load
duke
parents:
diff changeset
   165
  // Interpreter profiling support
489c9b5090e2 Initial load
duke
parents:
diff changeset
   166
  static jint    bcp_to_di(methodOopDesc* method, address cur_bcp);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   167
  static jint    profile_method(JavaThread* thread, address cur_bcp);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   168
  static void    update_mdp_for_ret(JavaThread* thread, int bci);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   169
#ifdef ASSERT
489c9b5090e2 Initial load
duke
parents:
diff changeset
   170
  static void    verify_mdp(methodOopDesc* method, address bcp, address mdp);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   171
#endif // ASSERT
489c9b5090e2 Initial load
duke
parents:
diff changeset
   172
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   173
489c9b5090e2 Initial load
duke
parents:
diff changeset
   174
489c9b5090e2 Initial load
duke
parents:
diff changeset
   175
class SignatureHandlerLibrary: public AllStatic {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   176
 public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   177
  enum { buffer_size =  1*K }; // the size of the temporary code buffer
489c9b5090e2 Initial load
duke
parents:
diff changeset
   178
  enum { blob_size   = 32*K }; // the size of a handler code blob.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   179
489c9b5090e2 Initial load
duke
parents:
diff changeset
   180
 private:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   181
  static BufferBlob*              _handler_blob; // the current buffer blob containing the generated handlers
489c9b5090e2 Initial load
duke
parents:
diff changeset
   182
  static address                  _handler;      // next available address within _handler_blob;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   183
  static GrowableArray<uint64_t>* _fingerprints; // the fingerprint collection
489c9b5090e2 Initial load
duke
parents:
diff changeset
   184
  static GrowableArray<address>*  _handlers;     // the corresponding handlers
489c9b5090e2 Initial load
duke
parents:
diff changeset
   185
  static address                  _buffer;       // the temporary code buffer
489c9b5090e2 Initial load
duke
parents:
diff changeset
   186
489c9b5090e2 Initial load
duke
parents:
diff changeset
   187
  static address set_handler_blob();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   188
  static void initialize();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   189
  static address set_handler(CodeBuffer* buffer);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   190
  static void pd_set_handler(address handler);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   191
489c9b5090e2 Initial load
duke
parents:
diff changeset
   192
 public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   193
  static void add(methodHandle method);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   194
};
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5882
diff changeset
   195
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5882
diff changeset
   196
#endif // SHARE_VM_INTERPRETER_INTERPRETERRUNTIME_HPP