Mechanism for enabling efficient execution of an instruction

   
   

A mechanism is provided for execution of an instruction having one or more parameters that need to be resolved at runtime. Instructions being executed may be stored in non-rewritable storage. The present invention allows costly parameter resolution to be circumvented during subsequent executions of the same instruction. An interpreter invokes an optimization module when it encounters an instruction with one or more associated parameters that need to be resolved at runtime. If the optimization module determines that resolved values associated with the instruction are available in a cache, then optimization module obtains resolved values associated with the instruction from the cache. Resolving parameters into their corresponding object references is time-consuming and utilizes valuable computer resources. By obtaining resolved values stored during a previous execution of an instruction, the optimization module avoids repeatedly resolving parameters associated with an instruction. This enables efficient execution of an instruction.

 
Web www.patentalert.com

< Javascript interpreter engine written in Java

< Method and apparatus for making and using test verbs

> Method and apparatus for varying the level of correctness checks executed when performing correctness checks opportunistically using spare instruction slots

> Virtual machine memory management

~ 00185