Method and apparatus for executing different Java methods
AssigneeSamsung Electronics Co., Ltd.
InventorsAlexei Romanovski, Chong-mok Park
Life of this patent
Estimating the term…
Abstract
A method and apparatus for executing different Java methods are provided. The method of executing different Java methods, includes when a first method calls a second method, storing information for returning to the first method in a first stack frame, adding a second stack frame for the second method to a stack, and storing information for executing the second method in the second stack frame, wherein the first stack frame and the second stack frame are included in the same stack in a same format.
Claims33
A method of executing different Java methods, comprising:
- storing return information which returns execution to a first method in a first stack frame if the first method calls the second method;
- adding a second stack frame of the second method to a stack;
- and
- storing execution information of the second method in the second stack frame,
- wherein the first stack frame and the second stack frame are each included in the stack in a same format.
A Java virtual machine for executing different Java methods, comprising:
- an interpreter which executes bytecode;
- a compiler which compiles the bytecode to generate native code;
- and
- a code buffer manager which manages memory for the native code which is compiled,
- wherein the Java virtual machine stores return information which returns execution to a first method in a first stack frame of the first method which is included in a stack, adds a second stack frame of a second method to the stack, and stores execution information of the second method in the second stack frame if the first method, which is executed using the interpreter or as native code, calls the second method, and
- the first stack frame and the second stack frame are each included in the stack in a same format.
A digital apparatus comprising:
- an auxiliary memory unit which stores a Java virtual machine that executes different Java methods;
- a main memory unit which allocates memory to the Java virtual machine;
- an input/output unit which transmits and receives data to and from the Java virtual machine;
- and
- a control unit which controls the main memory unit, the Java virtual machine, and the input/output unit,
- the Java virtual machine comprising an interpreter which executes bytecode, a compiler which compiles the bytecode to generate native code, and a code buffer manager which manages memory for the native code which is compiled,
- wherein the Java virtual machine stores return information which returns execution to a first method in a first stack frame for the first method which is included in a stack, adds a second stack frame for a second method to the stack, and stores execution information of the second method in the second stack frame if the first method, which is being executed using the interpreter or as native code, calls the second method, and
- the first stack frame and the second stack frame are each included in the stack in a same format.
Dependencies are inferred from the claim text.