Apple Inc.
Runtime state based code re-optimization
Last updated:
Abstract:
A method and an apparatus to execute a code compiled from a source code to access an untyped variable are described. An optimized access code may be compiled in the code with speculative optimization via a type prediction of runtime value of the untyped variable. Invalidity of the type prediction may be dynamically detected for future runtime values of the untyped variable. The code may be updated with an access code compiled for the access without the speculative optimization based on the invalidity detection. The updated code can be executed for the access to the untyped variable without executing the optimized access code.
Status:
Grant
Type:
Utility
Filling date:
17 Mar 2016
Issue date:
25 May 2021