comparison src/share/vm/interpreter/templateInterpreter.hpp @ 13010:bd3237e0e18d

8026328: Setting a breakpoint on invokedynamic crashes the JVM Reviewed-by: jrose, roland
author twisti
date Thu, 24 Oct 2013 16:23:07 -0700
parents da91efe96a93
children de6a9e811145
comparison
equal deleted inserted replaced
12968:97d400662426 13010:bd3237e0e18d
118 static EntryPoint _earlyret_entry; // entry point to return early from a call 118 static EntryPoint _earlyret_entry; // entry point to return early from a call
119 static EntryPoint _deopt_entry[number_of_deopt_entries]; // entry points to return to from a deoptimization 119 static EntryPoint _deopt_entry[number_of_deopt_entries]; // entry points to return to from a deoptimization
120 static EntryPoint _continuation_entry; 120 static EntryPoint _continuation_entry;
121 static EntryPoint _safept_entry; 121 static EntryPoint _safept_entry;
122 122
123 static address _return_3_addrs_by_index[number_of_return_addrs]; // for invokevirtual return entries 123 static address _invoke_return_entry[number_of_return_addrs]; // for invokestatic, invokespecial, invokevirtual return entries
124 static address _return_5_addrs_by_index[number_of_return_addrs]; // for invokeinterface return entries 124 static address _invokeinterface_return_entry[number_of_return_addrs]; // for invokeinterface return entries
125 static address _invokedynamic_return_entry[number_of_return_addrs]; // for invokedynamic return entries
125 126
126 static DispatchTable _active_table; // the active dispatch table (used by the interpreter for dispatch) 127 static DispatchTable _active_table; // the active dispatch table (used by the interpreter for dispatch)
127 static DispatchTable _normal_table; // the normal dispatch table (used to set the active table in normal mode) 128 static DispatchTable _normal_table; // the normal dispatch table (used to set the active table in normal mode)
128 static DispatchTable _safept_table; // the safepoint dispatch table (used to set the active table for safepoints) 129 static DispatchTable _safept_table; // the safepoint dispatch table (used to set the active table for safepoints)
129 static address _wentry_point[DispatchTable::length]; // wide instructions only (vtos tosca always) 130 static address _wentry_point[DispatchTable::length]; // wide instructions only (vtos tosca always)
159 static int distance_from_dispatch_table(TosState state){ return _active_table.distance_from(state); } 160 static int distance_from_dispatch_table(TosState state){ return _active_table.distance_from(state); }
160 static address* normal_table(TosState state) { return _normal_table.table_for(state); } 161 static address* normal_table(TosState state) { return _normal_table.table_for(state); }
161 static address* normal_table() { return _normal_table.table_for(); } 162 static address* normal_table() { return _normal_table.table_for(); }
162 163
163 // Support for invokes 164 // Support for invokes
164 static address* return_3_addrs_by_index_table() { return _return_3_addrs_by_index; } 165 static address* invoke_return_entry_table() { return _invoke_return_entry; }
165 static address* return_5_addrs_by_index_table() { return _return_5_addrs_by_index; } 166 static address* invokeinterface_return_entry_table() { return _invokeinterface_return_entry; }
166 static int TosState_as_index(TosState state); // computes index into return_3_entry_by_index table 167 static address* invokedynamic_return_entry_table() { return _invokedynamic_return_entry; }
167 168 static int TosState_as_index(TosState state);
168 static address return_entry (TosState state, int length); 169
169 static address deopt_entry (TosState state, int length); 170 static address* invoke_return_entry_table_for(Bytecodes::Code code);
171
172 static address deopt_entry(TosState state, int length);
173 static address return_entry(TosState state, int length, Bytecodes::Code code);
170 174
171 // Safepoint support 175 // Safepoint support
172 static void notice_safepoints(); // stops the thread when reaching a safepoint 176 static void notice_safepoints(); // stops the thread when reaching a safepoint
173 static void ignore_safepoints(); // ignores safepoints 177 static void ignore_safepoints(); // ignores safepoints
174 178