1. A method in a data processing system for inlining native functions into compiled Java code, the method comprising: detecting a native function call at a Java callsite; converting an intermediate representation of a native function to a just-in-time compiler intermediate representation; and inlining the just-in-time compiler intermediate representation into the Java callsite.