Method and apparatus for maintaining exception reporting for register promotion
Abstract
A method and apparatus which comprises, as part of compiling source code into native code, identifying a source code block in the source code to optimize using register promotion, and optimizing the source code block using a register promotion transformation. Thereafter, compensation native code is generated to update those memory locations whose values were promoted using register promotion with the up-to-date values from registers associated with the memory locations. As a result native code corresponding to any existing source code exception handler associated with the source code block will have access to the up-to-date memory locations during program execution.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 2 · Forward citations: 11.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A method comprising: identifying a source code block in source code; transforming the source code block including transforming references to values stored in memory locations into references to corresponding values stored in registers associated with the memory locations; and generating compensation native code to update each memory location with a value from an associated register to provide native codes corresponding to a source code exception handler associated with the source code block, access to the updated memory locations.
- Claim 2Depends on #1
The method of claim 1 , comprising generating exception-handling code to handle any exception not handled by the native code corresponding to existing source code exception handlers.
- Claim 3Depends on #1
The method of claim 1 , wherein the compensation native code forms part of the native code corresponding to an exceptio
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗