comparison src/share/vm/interpreter/templateInterpreter.hpp @ 1059:389049f3f393

6858164: invokedynamic code needs some cleanup (post-6655638) Summary: Fix several crashers, remove needless paths for boxed-style bootstrap method call, refactor & simplify APIs for rewriter constantPoolOop, remove sun.dyn.CallSiteImpl Reviewed-by: kvn
author jrose
date Fri, 30 Oct 2009 16:22:59 -0700
parents 9987d9d5eb0e
children c18cbe5936b8
comparison
equal deleted inserted replaced
1058:73a726751507 1059:389049f3f393
108 #ifndef PRODUCT 108 #ifndef PRODUCT
109 static EntryPoint _trace_code; 109 static EntryPoint _trace_code;
110 #endif // !PRODUCT 110 #endif // !PRODUCT
111 static EntryPoint _return_entry[number_of_return_entries]; // entry points to return to from a call 111 static EntryPoint _return_entry[number_of_return_entries]; // entry points to return to from a call
112 static EntryPoint _earlyret_entry; // entry point to return early from a call 112 static EntryPoint _earlyret_entry; // entry point to return early from a call
113 static EntryPoint _return_unbox_entry; // entry point to unbox a return value from a call
114 static EntryPoint _deopt_entry[number_of_deopt_entries]; // entry points to return to from a deoptimization 113 static EntryPoint _deopt_entry[number_of_deopt_entries]; // entry points to return to from a deoptimization
115 static EntryPoint _continuation_entry; 114 static EntryPoint _continuation_entry;
116 static EntryPoint _safept_entry; 115 static EntryPoint _safept_entry;
117 116
118 static address _return_3_addrs_by_index[number_of_return_addrs]; // for invokevirtual return entries 117 static address _return_3_addrs_by_index[number_of_return_addrs]; // for invokevirtual return entries
119 static address _return_5_addrs_by_index[number_of_return_addrs]; // for invokeinterface return entries 118 static address _return_5_addrs_by_index[number_of_return_addrs]; // for invokeinterface return entries
120 static address _return_5_unbox_addrs_by_index[number_of_return_addrs]; // for invokedynamic bootstrap methods
121 119
122 static DispatchTable _active_table; // the active dispatch table (used by the interpreter for dispatch) 120 static DispatchTable _active_table; // the active dispatch table (used by the interpreter for dispatch)
123 static DispatchTable _normal_table; // the normal dispatch table (used to set the active table in normal mode) 121 static DispatchTable _normal_table; // the normal dispatch table (used to set the active table in normal mode)
124 static DispatchTable _safept_table; // the safepoint dispatch table (used to set the active table for safepoints) 122 static DispatchTable _safept_table; // the safepoint dispatch table (used to set the active table for safepoints)
125 static address _wentry_point[DispatchTable::length]; // wide instructions only (vtos tosca always) 123 static address _wentry_point[DispatchTable::length]; // wide instructions only (vtos tosca always)
157 static address* normal_table() { return _normal_table.table_for(); } 155 static address* normal_table() { return _normal_table.table_for(); }
158 156
159 // Support for invokes 157 // Support for invokes
160 static address* return_3_addrs_by_index_table() { return _return_3_addrs_by_index; } 158 static address* return_3_addrs_by_index_table() { return _return_3_addrs_by_index; }
161 static address* return_5_addrs_by_index_table() { return _return_5_addrs_by_index; } 159 static address* return_5_addrs_by_index_table() { return _return_5_addrs_by_index; }
162 static address* return_5_unbox_addrs_by_index_table() { return _return_5_unbox_addrs_by_index; }
163 static int TosState_as_index(TosState state); // computes index into return_3_entry_by_index table 160 static int TosState_as_index(TosState state); // computes index into return_3_entry_by_index table
164 161
165 static address return_entry (TosState state, int length); 162 static address return_entry (TosState state, int length);
166 static address deopt_entry (TosState state, int length); 163 static address deopt_entry (TosState state, int length);
167 static address return_unbox_entry(TosState state, int length);
168 164
169 // Safepoint support 165 // Safepoint support
170 static void notice_safepoints(); // stops the thread when reaching a safepoint 166 static void notice_safepoints(); // stops the thread when reaching a safepoint
171 static void ignore_safepoints(); // ignores safepoints 167 static void ignore_safepoints(); // ignores safepoints
172 168