Patent Document ID: 20140047416
Application ID: 13593411
Patent Flag: 0

Claim One:
1. A machine-readable non-transitory storage medium having instructions therein, which when executed by a machine, cause the machine to perform a method, the method comprising: executing a code compiled from a source code, the source code including an access of an untyped variable, the code being speculatively optimized according to a type prediction of runtime values of the untyped variable; tracking failures of the type prediction during the execution, wherein each failure is associated with one of the runtime values and wherein the one runtime value is of a type outside of the type prediction; adjusting the type prediction according to the failures tracked for future runtime values of the untyped variable; and executing a recompiled code of the source code to optimize the access to the untyped variable for the future runtime values according to the adjusted type prediction.