1. A computer program product encoding a computer program for executing on a computer system a computer process for optimizing indirect method invocation at a call site, the call site being associated with a receiver object, the call site further being programmed to call a target method of a plurality of possible target methods that return constant values, the target method being associated with the receiver object, the computer process comprising: generating a return constant table having an entry associated with a constant return value of the target method of the receiver object; and generating an optimized instruction in association with the call site to retrieve via the return constant table the constant return value associated with the target method.