Patent ID: 7028293
Filing Date: 2006-04-11
Classification: G06F

Abstract:
1. A computer program product including at least one tangible medium encoding an object-oriented computer program for executing on a computer system a computer process for optimizing indirect method calls, the indirect method call being programmed to call a target method of a plurality of possible target methods that return constant values the computer process comprising: determining the association between the indirect method call and a receiver object and between the indirect method call and a target method; determining the association between the target method and a return constant value and between the target method and the receiver object; generating, at compile time and before invoking the indirect method call, a return constant table having an entry associated with the return constant value of the target method of the receiver object; and generating, at compile time, before invoking the indirect method call, an optimized instruction to retrieve, without executing a function, via the return constant table the return constant value associated with the target method.