Patent ID: 8826246

Claim:
A system for generating machine code from byte code in virtual machines, comprising: a computer including a virtual machine running thereon, for executing a software application, and further including a memory space or storage medium for storing byte code as part of the software application; and a compiler, further comprising an object dematerializer that determines, during compilation of the software application, that an object is suitable for dematerialization, and, if the object is suitable for dematerialization, generates machine code that initializes fields of a dematerialized object, to create a first code path, and a dematerializer injector that simultaneously, during compilation, injects dematerialization code to create a second code path, by receiving a normal object reference, and transforming a code path with the normal object reference into the second code path using dematerialized object fields; wherein the compiler then joins the first and second code paths together into a resultant code path that continues to use the dematerialized object.