Patent ID: 9027006
Filing Date: 2015-05-05
Classification: G06F

Abstract:
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 compiled code of a source code, the source code including an access of an untyped variable, wherein runtime data of the execution includes structures allocated for runtime values assigned to the untyped variable; storing at least one of the runtime values assigned to the untyped variable in a storage location without specifying a type; randomly inspecting, during the execution, the runtime values assigned to the untyped variable to collect profile data of the untyped variable from the storage location, wherein time intervals of the random inspection are unpredictable; analyzing the profile data for a value profile of the untyped variable, the value profile including one or more expected types of future runtime values for the untyped variable the analysis traversing the structures in the runtime data to identify the type of the at least one runtime values in the profile data; and executing a recompiled code of the source code to optimize the access of the untyped variable for the future runtime values according to the value profile.