Indirect skip prediction method and indirect skip prediction system for interpreter

2013 
The invention discloses an indirect skip prediction method and an indirect skip prediction system for an interpreter. The method comprises the steps that a key instruction is inserted into the interpreter; a bytecode pointer is contained in the key instruction; the key instruction is identified by a transfer predictor; the required bytecode pointer is saved in the transfer predictor; when an indirect skip instruction runs, the transfer predictor identifies the indirect skip instruction; a hash operation is conducted by a pointer of the indirect skip instruction and the saved bytecode pointer; a transfer target buffer is accessed by an index value obtained by the hash operation; and a predicted transfer target address is obtained. According to the method and the system, the bytecode pointer serves as relevant information, and software cooperates with hardware to guide indirect skip in a key instruction manner, so that the indirect skip for the interpreter can be predicted accurately according to the bytecode pointer.
    • Correction
    • Source
    • Cite
    • Save
    • Machine Reading By IdeaReader
    1
    References
    0
    Citations
    NaN
    KQI
    []