Lines Matching defs:vtable_index
114 address VtableStubs::create_stub(bool is_vtable_stub, int vtable_index, methodOop method) {
115 assert(vtable_index >= 0, "must be positive");
117 VtableStub* s = ShareVtableStubs ? lookup(is_vtable_stub, vtable_index) : NULL;
120 s = create_vtable_stub(vtable_index);
122 s = create_itable_stub(vtable_index);
124 enter(is_vtable_stub, vtable_index, s);
127 is_vtable_stub? "vtbl": "itbl", vtable_index, VtableStub::receiver_location());
135 inline uint VtableStubs::hash(bool is_vtable_stub, int vtable_index){
137 int hash = ((vtable_index << 2) ^ VtableStub::receiver_location()->value()) + vtable_index;
142 VtableStub* VtableStubs::lookup(bool is_vtable_stub, int vtable_index) {
144 unsigned hash = VtableStubs::hash(is_vtable_stub, vtable_index);
146 while( s && !s->matches(is_vtable_stub, vtable_index)) s = s->next();
151 void VtableStubs::enter(bool is_vtable_stub, int vtable_index, VtableStub* s) {
153 assert(s->matches(is_vtable_stub, vtable_index), "bad vtable stub");
154 unsigned int h = VtableStubs::hash(is_vtable_stub, vtable_index);