Patent ID: 7210140
Filing Date: 2007-04-24
Classification: G06F

Abstract:
1. A method of processng virtual machine instructions comprising: initializing parameters to identify a subset of the virtual machine instructions having a particular set of characteristics; translating a range of the virtual machine instructions to native instructions executable by a processor, until a member of said identified subset of the virtual machine instructions is encountered; upon encountering a member of said identified subset of the virtual machine instructions, suspending the translation of the range of virtual machine instructions; implementing an interface, where said interface prescribes a set of native processor subroutine instructions that: executes a preamble that causes the processor to write values to variables that are accessible by the subroutine before executing the native processor subroutine instructions represented by said member of said identified subset of the virtual machine instructions; retrieves native functions from the processor that correspond to the native processor subroutine instructions represented by said member of said identified subset of the virtual machine instructions; executes the retrieved native instructions; executes a postamble that causes the processor to fetch values of variables that are modified by the executed native instructions and write the fetched values into processor registers after executing the native processor subroutine instructions represented by said member of said identified subset of the virtual machine instructions; and resumes the translation in the virtual machine of the range of the virtual machine instructions, where execution continues until another member of said identified subset of the virtual machine instructions is encountered; and executing said set of native processor instructions.