发明名称 Method and apparatus for implementing fast subclass and subtype checks
摘要 <p>Methods and apparatus for performing fast subtype checks during program execution arc disclosed. According to one aspect of the present invention, a method for determining whether a class associated with an object that is a part of an object-based computing system is a subtype of another type includes obtaining a candidate type from a dynamic storage location that is associated with a class which is associated with the object, and comparing the candidate type against a first type that is potentially the same as the candidate type. A determination is then made as to whether the candidate type is substantially equal to the first type. When the determination is that the candidate type is substantially equal to the first type, an indication that the candidate type is a subtype of the first type is provided. In one embodiment, the candidate type obtained from the dynamic storage location is obtained from a cache element in the class associated with the object.</p>
申请公布号 EP0945790(A2) 申请公布日期 1999.09.29
申请号 EP19990301639 申请日期 1999.03.04
申请人 SUN MICROSYSTEMS, INC. 发明人 BAK, LARS;MITROVIC, SRDJAN;HOLZLE, URS
分类号 G06F9/44;(IPC1-7):G06F9/44 主分类号 G06F9/44
代理机构 代理人
主权项
地址