System for executing virtual machine instructions
First Claim
1. A data processing system for executing a program of virtual machine instructions with a processor core that is arranged to execute native instructions comprising the processor core;
- a memory;
a virtual machine interpreter for receiving virtual machine instructions selected dependent on program flow during execution of the program, the virtual machine interpreter being coupled to the processor core to generate native machine instructions that implement the virtual machine instructions for execution by the processor core, the virtual machine interpreter being arranged to identify an initial virtual machine instruction from a body of successive ones of the selected virtual machine instructions, where the body is expected to be executed repeatedly;
to record a correspondence between the initial virtual machine instruction in the body and a memory location in the memory;
to write native instructions for the body into the memory from said memory location, the native instructions for the body being generated for virtual machine instructions starting from the initial virtual machine instruction;
to cause the processor core to execute the native instructions for the body and to repeat execution of the native instructions for the body by executing the written native machine instructions for the body from memory starting from said memory location.
2 Assignments
0 Petitions
Accused Products
Abstract
A data processing system has a processor core, memory and a virtual machine interpreter. The virtual machine interpreter receives virtual machine instructions selected dependent on program flow during execution of a virtual machine program. The virtual machine interpreter generates native machine instructions that implement the virtual machine instructions for execution by the processor core. The virtual machine interpreter identifies an initial virtual machine instruction from a body of virtual machine instructions, where the body is expected to be executed repeatedly. The virtual machine interpreter records a correspondence between the initial virtual machine instruction in the body and a memory location in the memory and writes native instructions for the body into the memory from said memory location. The processor core executes the native instructions for the body and repeats execution of the native instructions for the body by executing the written native machine instructions for the body from memory starting from said memory location.
-
Citations
8 Claims
-
1. A data processing system for executing a program of virtual machine instructions with a processor core that is arranged to execute native instructions comprising
the processor core; -
a memory;
a virtual machine interpreter for receiving virtual machine instructions selected dependent on program flow during execution of the program, the virtual machine interpreter being coupled to the processor core to generate native machine instructions that implement the virtual machine instructions for execution by the processor core, the virtual machine interpreter being arranged to identify an initial virtual machine instruction from a body of successive ones of the selected virtual machine instructions, where the body is expected to be executed repeatedly;
to record a correspondence between the initial virtual machine instruction in the body and a memory location in the memory;
to write native instructions for the body into the memory from said memory location, the native instructions for the body being generated for virtual machine instructions starting from the initial virtual machine instruction;
to cause the processor core to execute the native instructions for the body and to repeat execution of the native instructions for the body by executing the written native machine instructions for the body from memory starting from said memory location. - View Dependent Claims (2, 3, 4, 8)
-
-
5. A method of executing a program of virtual machine instructions with a processor core that is arranged to execute native instructions, the method comprising
selecting, under control of program flow, virtual machine instructions to be executed; -
determining native instructions from the selected virtual machine instructions, to implement the selected virtual machine instructions;
identifying an initial virtual machine instruction from a body of successive ones of the selected virtual machine instructions that is expected to be executed repeatedly;
recording a correspondence between the initial virtual machine instruction and a memory location;
writing native instructions for the body into a memory from said memory location, the native instructions for the body being determined from virtual machine instructions starting from the initial virtual machine instruction;
causing the processor core to execute the native instructions for the body and to repeat execution of the native instructions for the body by executing the written native machine instructions for the body from memory starting from said memory location. - View Dependent Claims (6, 7)
-
Specification