Patent ID: 8364461

Claim:
A computer implemented method for emulating execution of a trace in guest memory comprising: identifying by said computer a first trace; identifying by said computer a dropped second trace, wherein said dropped second trace is associated with a first native code for emulating said second trace; determining whether said identified first trace corresponds to said dropped second trace; based on said determining that said identified first trace corresponds to said dropped second trace, performing a through b comprising: a) associating said first native code to said first trace, said associating comprising updating an address in said first native code to reflect an address in said first trace; and b) executing said first native code; and based on said determining that said identified first trace does not correspond to said dropped second trace, performing c through e comprising: c) creating a second native code for emulating said first trace, d) associating said second native code to said first trace, and e) executing said second native code.