Patent ID: 8121828

Claim:
A method for transferring execution from a first computer instruction stream to a second computer instruction stream, comprising: profiling the first computer instruction stream, wherein the profiling includes recording details of the execution flow of the first computer instruction stream to create a profile of the first computer instruction stream; analyzing the profile of the first computer instruction stream to identify a frequently executed section; translating only the frequently executed section of the first computer instruction stream into the second computer instruction stream; storing a bit vector which includes a bit corresponding to each instruction in the first computer instruction stream, each bit indicating whether there is an entry point into the frequently executed section for the corresponding instruction; monitoring execution of the first computer instruction stream to determine when execution has reached the frequently executed section; transferring execution from the first computer instruction stream to the second computer instruction stream only to execute the frequently executed section; and returning execution to the first computer instruction stream when execution of the frequently executed section is complete.