@@ -48,13 +48,6 @@ class klassVtable {
48
48
int _verify_count; // to make verify faster
49
49
#endif
50
50
51
- // Ordering important, so greater_than (>) can be used as an merge operator.
52
- enum AccessType {
53
- acc_private = 0 ,
54
- acc_package_private = 1 ,
55
- acc_publicprotected = 2
56
- };
57
-
58
51
public:
59
52
klassVtable (Klass* klass, void * base, int length) : _klass(klass) {
60
53
_tableOffset = (address)base - (address)klass; _length = length;
@@ -66,22 +59,12 @@ class klassVtable {
66
59
int length () const { return _length; }
67
60
inline Method* method_at (int i) const ;
68
61
inline Method* unchecked_method_at (int i) const ;
69
- inline Method** adr_method_at (int i) const ;
70
62
71
63
// searching; all methods return -1 if not found
72
- int index_of (Method* m) const { return index_of (m, _length); }
73
64
int index_of_miranda (Symbol* name, Symbol* signature);
74
65
75
66
void initialize_vtable (bool checkconstraints, TRAPS); // initialize vtable of a new klass
76
67
77
- // CDS/RedefineClasses support - clear vtables so they can be reinitialized
78
- // at dump time. Clearing gives us an easy way to tell if the vtable has
79
- // already been reinitialized at dump time (see dump.cpp). Vtables can
80
- // be initialized at run time by RedefineClasses so dumping the right order
81
- // is necessary.
82
- void clear_vtable ();
83
- bool is_initialized ();
84
-
85
68
// computes vtable length (in words) and the number of miranda methods
86
69
static void compute_vtable_size_and_num_mirandas (int * vtable_length,
87
70
int * num_new_mirandas,
@@ -125,7 +108,6 @@ class klassVtable {
125
108
private:
126
109
void copy_vtable_to (vtableEntry* start);
127
110
int initialize_from_super (Klass* super);
128
- int index_of (Method* m, int len) const ; // same as index_of, but search only up to len
129
111
void put_method_at (Method* m, int index);
130
112
static bool needs_new_vtable_entry (const methodHandle& m,
131
113
const Klass* super,
@@ -223,12 +205,6 @@ inline Method* klassVtable::unchecked_method_at(int i) const {
223
205
return table ()[i].method ();
224
206
}
225
207
226
- inline Method** klassVtable::adr_method_at (int i) const {
227
- // Allow one past the last entry to be referenced; useful for loop bounds.
228
- assert (i >= 0 && i <= _length, " index out of bounds" );
229
- return (Method**)(address (table () + i) + vtableEntry::method_offset_in_bytes ());
230
- }
231
-
232
208
// --------------------------------------------------------------------------------
233
209
class klassItable ;
234
210
class itableMethodEntry ;
@@ -333,9 +309,6 @@ class klassItable {
333
309
static int compute_itable_size (Array<InstanceKlass*>* transitive_interfaces);
334
310
static void setup_itable_offset_table (InstanceKlass* klass);
335
311
336
- // Resolving of method to index
337
- static Method* method_for_itable_index (InstanceKlass* klass, int itable_index);
338
-
339
312
// Debugging/Statistics
340
313
static void print_statistics () PRODUCT_RETURN;
341
314
private:
0 commit comments