Partial inlining with software based restart
Abstract
A compiler and method of optimizing code by partial inlining of a subset of blocks of called blocks of code into calling blocks of code. A restart of the called blocks of code is provided for the case where non-inlined blocks of code are reached at run time. Blocks selected for partial inlining may include global side effects depending on the computer program environment. Global side effects in the selected blocks of code leading to a restart are sanitized in order to defer changes to the global state of the computer program.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 19 · Forward citations: 8.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method of partial inlining called blocks of code into calling blocks of code of a computer program, comprising data processing system implemented steps of: selecting a subset of blocks of the called blocks of code for inlining into the calling blocks of code; creating a restart block to restart the called blocks of code in place of non-selected blocks of the called blocks of code, wherein the restart block contains instructions to exit from the selected blocks of code and call a previously compiled version of the called blocks of code; sanitizing global side effects in the selected subset of
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (8 of 8 total)
References Cited — Backward Prior Art (19)
Non-Patent Literature (4)
- Da Silva et al., "Design, Implementation, and Evaluation of a Dynamic Compilation Framework for the YAP System", Lecture Notes in Computer Science, Aug. 27, 2007, pp. 410-424, Springer Berlin / Heidelberg, 1 page.
- Kalev, "Whole Program Optimization Part II", informIT, Jul. 8, 2005, p. 225 of 458.
- Merrill et al., "Trace Fragment Selection within Method-based JVMs", VEE '08. Mar. 5-7, 2008, Seattle, Washington, USA, 10 pages.
- Suganuma et al., "A Region-Based Compilation Technique for a Java Just-In-Time Compiler", PLDI'03, Jun. 9-11, 2003, San Diego, California, USA, 12 pages.