×

Linking of virtual methods

  • US 7,222,331 B2
  • Filed: 01/16/2003
  • Issued: 05/22/2007
  • Est. Priority Date: 01/16/2003
  • Status: Active Grant
First Claim
Patent Images

1. A method f or linking a virtual method, the method comprising:

  • receiving a program comprising a plurality of program units;

    enumerating classes of said program;

    determining whether a virtual method of said program has been overridden at least once;

    creating a virtual method jump table, indexed by a type indicator, for said virtual method said virtual method has been overridden, wherein when said virtual method has been overridden, said table comprising at least one entry comprising an address of a virtual method instance of said virtual method in a class and another entry comprising an another address for another instance of said virtual method in a subclass of said class and further wherein said virtual method instance of said virtual method has been overwritten by said another instance of said virtual method; and

    rewriting a first at least one call instruction that calls said virtual method to include the type indicator of a called object wherein said called object comprises said another instance of said virtual method and so obviates a need to perform an exhaustive search for the another instance of said virtual method.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×