Runtime type identification of an object utilizing class inheritance relationships
AssigneeInternational Business Machines Corporation
InventorsZixuan Wu, Ke Wen Lin, Qing Shan Zhang, Kang Zhang
Life of this patent
Estimating the term…
Loading patent…
AssigneeInternational Business Machines Corporation
InventorsZixuan Wu, Ke Wen Lin, Qing Shan Zhang, Kang Zhang
Estimating the term…
Embodiments of the present disclosure relate to runtime type identification (RTTI) of an object. In an embodiment, a computer-implemented method is disclosed. A class inheritance relationship between a plurality of classes in at least one source code section is generated. Respective type identifications are assigned to identify the classes in the class inheritance relationship. In accordance with presence of a first operation related to accessing a target pointer to an object of a target class of the classes, a type identification for the target class is caused to be recorded with at least one bit of a memory address of the target pointer that can be omitted in addressing the target pointer. RTTI is caused to be performed based on the class inheritance relationship and the at least one bit of the memory address of the target pointer. In other embodiments, a system and a computer program product are disclosed.
A computer-implemented method comprising:
A system comprising:
A computer program product, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by an electronic device to cause the electronic device to perform acts comprising:
Dependencies are inferred from the claim text.