Method and apparatus for identifying hotspot intermediate code in language virtual machine
AssigneeHuawei Technologies Co., Ltd.
InventorsMingliang Yi, Long Chen
Life of this patent
Estimating the term…
Loading patent…
AssigneeHuawei Technologies Co., Ltd.
InventorsMingliang Yi, Long Chen
Estimating the term…
The present disclosure provide a method and an apparatus for identifying hotspot intermediate code. The method for identifying hotspot intermediate code includes: when a language virtual machine executes a to-be-identified function, obtaining an instruction address in an instruction counter, and determining whether a native instruction corresponding to the instruction address is a native instruction of the to-be-identified function; when the native instruction corresponding to the instruction address is the native instruction of the to-be-identified function, increasing a current hotness value of the to-be-identified function by a preset value; and determining whether an updated hotness value of the to-be-identified function is greater than or equal to a hotness threshold of the to-be-identified function, and when the updated hotness value of the to-be-identified function is greater than or equal to the hotness threshold of the to-be-identified function, using intermediate code of the to-be-identified function as hotspot intermediate code.
A method for identifying a hotspot intermediate code, wherein the method comprises:
An apparatus for identifying hotspot intermediate code, wherein the apparatus comprises:
A non-transitory computer-readable medium storing computer instructions for identifying hotspot intermediate code, that when executed by a baseband processor and an application processor of a terminal, cause the baseband processor and the application processor to perform the method comprising:
Dependencies are inferred from the claim text.