finish the interface for getting the cache for resolving virtual calls