Method and apparatus for inlining native functions into compiled Java code
AssigneeInternational Business Machines Corporation
InventorsAllan Kielstra, Levon Stepanian, Kevin Stoodley
Life of this patent
Estimating the term…
Loading patent…
AssigneeInternational Business Machines Corporation
InventorsAllan Kielstra, Levon Stepanian, Kevin Stoodley
Estimating the term…
A method, apparatus, and computer instructions are provided for inlining native functions into compiled Java code. A conversion engine is provided by the present invention for converting the intermediate representation of native functions to the just-in-time (JIT) compiler's intermediate representation. With the converted intermediate representation, an inliner recursively inlines the converted JIT compiler's intermediate representation into the native callsite to remove the need of invoking the native function and subsequent native calls made by the function. The inlining process continues until either a call to an opaque function is encountered or until a JIT compiler intermediate representation growth limits are reached. The inliner also replaces calls to most native functions that are non-inlineable or opaque with calls to synthesized native functions that provide access to native libraries containing implementations of the original non-inlineable calls.
A method in a data processing system for inlining native functions into compiled Java code, the method comprising:
A data processing system for inlining native functions into compiled Java code, the data processing system comprising:
A computer program product in a computer readable medium for inlining native functions into compiled Java code, the computer program product comprising:
Dependencies are inferred from the claim text.