发明名称 SPECULATIVE OBJECT REPRESENTATION
摘要 A method for optimizing code includes receiving, by a compiler and from an interpreter, a code section representation including an object allocation, compiling, by the compiler, the code section representation into machine code with a compact allocated object of the object allocation, and triggering a deoptimization returning execution to the interpreter in response to an attempted access of the compact allocated object. The method further includes setting, by the interpreter and within the code section representation, a flag indicating that a new compact allocated object is required at a location of the attempted access, receiving, by the compiler, the code section representation including the flag, compiling, by the compiler and according to the flag, the code section representation into new machine code including the new compact allocated object, and executing the new machine code with the new compact allocated object.
申请公布号 US2015113512(A1) 申请公布日期 2015.04.23
申请号 US201314061677 申请日期 2013.10.23
申请人 Oracle International Corporation 发明人 Wuerthinger Thomas;Stadler Lukas
分类号 G06F9/45 主分类号 G06F9/45
代理机构 代理人
主权项 1. A method for optimizing code, comprising: receiving, by a compiler and from an interpreter, a code section representation comprising an object allocation; compiling, by the compiler, the code section representation into a first machine code comprising a first compact allocated object of the object allocation; triggering a deoptimization in response to an attempted access of the first compact allocated object, wherein the deoptimization returns execution to the interpreter; setting, within the code section representation, a flag at a location of the attempted access, wherein the flag indicates that a second compact allocated object is required; receiving, by the compiler, the code section representation comprising the flag; compiling, by the compiler and according to the flag, the code section representation into a second machine code comprising the second compact allocated object; and executing the second machine code with the second compact allocated object.
地址 Redwood Shores CA US
您可能感兴趣的专利