US 12,260,222 B2
Exception handling method and related apparatus
Ning Chu, Beijing (CN)
Assigned to HUAWEI TECHNOLOGIES CO., LTD., Shenzhen (CN)
Filed by HUAWEI TECHNOLOGIES CO., LTD., Guangdong (CN)
Filed on Aug. 24, 2023, as Appl. No. 18/455,612.
Application 18/455,612 is a continuation of application No. PCT/CN2022/077247, filed on Feb. 22, 2022.
Claims priority of application No. 202110212148.1 (CN), filed on Feb. 25, 2021.
Prior Publication US 2023/0401069 A1, Dec. 14, 2023
Int. Cl. G06F 9/44 (2018.01); G06F 9/30 (2018.01); G06F 9/38 (2018.01)
CPC G06F 9/3865 (2013.01) [G06F 9/30123 (2013.01); G06F 9/38 (2013.01); G06F 9/3854 (2023.08)] 20 Claims
OG exemplary drawing
 
1. An exception handling method, comprising:
calling a second function according to a call instruction of a first function, the first function comprising a high-level language function, and the second function comprising a runtime function;
performing a return operation of the second function when an exception occurs in a process of executing the second function, the return operation of the second function comprises restoring a status of a first register used when the second function is executed to a status before the first function calls the second function; and
performing exception handling based on the status of the first register.