发明授权
US06651248B1 Method and apparatus for efficient interface method dispatch 失效
高效的接口方式调度方法和装置

  • 专利标题: Method and apparatus for efficient interface method dispatch
  • 专利标题(中): 高效的接口方式调度方法和装置
  • 申请号: US09654291
    申请日: 2000-09-01
  • 公开(公告)号: US06651248B1
    公开(公告)日: 2003-11-18
  • 发明人: Bowen Alpern
  • 申请人: Bowen Alpern
  • 主分类号: G06F944
  • IPC分类号: G06F944
Method and apparatus for efficient interface method dispatch
摘要:
The interface method invocation mechanism of the present invention includes an interface method table (IMT) for a given class of objects. The IMT comprises a table of entries each corresponding to a set S of interface methods that are implemented by objects of the given class. The entries of the IMT are used to support invocation of interface methods. More specifically, processing of a method invocation statement involves either I) loading the pointer to the implementation of the interface method from an entry of the IMT and passing control to this implementation; or II) loading the pointer to a conflict resolution routine pointed by an IMT entry and passing control to this conflict resolution routine. The conflict resolution routine pointed to by the IMT entry identifies at execution time to the location of the particular interface method of the two or more interface methods that are associated with the given IMT entry that corresponds to the method invocation statement being processed, and pass control to this particular interface method.
信息查询
0/0