Invention Grant
US08418160B2 Apparatus and method to selectively remove memoizing functions from program code 失效
从程序代码中选择性地去除记忆功能的装置和方法

Apparatus and method to selectively remove memoizing functions from program code
Abstract:
A method to selectively remove memoizing functions from computer program code includes initially locating a memoizing function call in the program code. The method then replaces the memoizing function call with a simple object allocation. Using escape analysis, the method determines whether the replacement is legal. If the replacement is not legal, the method removes the simple object allocation and reinserts the original memoizing function call in its place. If the replacement is legal, the method retains the simple object allocation in the program code. If desired, certain compiler optimizations, such as stack allocation and scalarization, may then be performed on the simple object allocation. A corresponding computer program product and apparatus are also disclosed.
Information query
Patent Agency Ranking
0/0