Patent ID: 7661092

Claim:
A method for intelligently reusing local variables expressed when compiling a bytecode, comprising: detecting a first use of a local variable within a plurality of programmatic instructions, wherein the programmatic instructions are expressed as the bytecode when executed; checking a local variable usage list, wherein checking the local variable usage list comprising: determining whether an inactive local variable in use by the plurality of instructions exists having an acceptable type pairing with the detected local variable; when the acceptable type pairing is determined to exist, reusing the inactive local variable by assigning an index of the inactive local variable to the detected local variable; and when the acceptable type pairing is not determined to exist, assigning a next unused index to the detected local variable, and recording the detected local variable in the local variable usage list, and wherein the assigned indexes are indexes to a local variable slot in existence when the bytecode executes, wherein before the bytecode executes the bytecode is verified, wherein the acceptable type pairing is a pairing in which when verification merges a local variable slot based upon the pairing, and the merge does not require a loading of additional classes and their associated hierarchies.