×

Method for directly inlining virtual calls without on-stack replacement

  • US 6,223,340 B1
  • Filed: 10/09/1998
  • Issued: 04/24/2001
  • Est. Priority Date: 10/09/1998
  • Status: Expired due to Term
First Claim
Patent Images

1. A computer system configured by machine-readable instructions to:

  • A) read electrical signals representing a source-code calling procedure that includes at least one call site at which the calling procedure calls a virtual method on an object referred to by a receiver expression that refers to an object;

    B) compile the source-code calling procedure into an object-code calling procedure by;

    i) determining, for each call site that meets threshold criteria for direct inlining, whether that call site meets any of at least one preexistence criterion from which it can be inferred during the calling procedure'"'"'s compilation that the class of the object to which the receiver refers during any given execution of the calling procedure will have been loaded by the time the given execution commences; and

    ii) for each call site thereby determined to meet a pre-existence criterion, placing into the object-code calling procedure directly inlined code for each currently loaded form of the virtual method called by the source-code calling procedure thereat; and

    C) store the object-code calling procedure in a machine-readable storage medium.

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