equal
deleted
inserted
replaced
694 void Klass::oop_verify_on(oop obj, outputStream* st) { |
694 void Klass::oop_verify_on(oop obj, outputStream* st) { |
695 guarantee(obj->is_oop(), "should be oop"); |
695 guarantee(obj->is_oop(), "should be oop"); |
696 guarantee(obj->klass()->is_klass(), "klass field is not a klass"); |
696 guarantee(obj->klass()->is_klass(), "klass field is not a klass"); |
697 } |
697 } |
698 |
698 |
699 klassVtable* Klass::vtable() const { |
699 klassVtable Klass::vtable() const { |
700 return new klassVtable(const_cast<Klass*>(this), start_of_vtable(), vtable_length() / vtableEntry::size()); |
700 return klassVtable(const_cast<Klass*>(this), start_of_vtable(), vtable_length() / vtableEntry::size()); |
701 } |
701 } |
702 |
702 |
703 vtableEntry* Klass::start_of_vtable() const { |
703 vtableEntry* Klass::start_of_vtable() const { |
704 return (vtableEntry*) ((address)this + in_bytes(vtable_start_offset())); |
704 return (vtableEntry*) ((address)this + in_bytes(vtable_start_offset())); |
705 } |
705 } |