Self-optimizing interpreter and snapshot compilation
Abstract
A method for a compiler includes receiving, by the compiler and from an interpreter, a representation of a code section having a control path that changes the representation. The representation has profiling data, and the profiling data has a threshold. The method further includes performing, by the compiler and based on the threshold, a partial evaluation of the interpreter executing the representation, compiling, by the compiler, a machine code of the representation, with the control path replaced by a deoptimization point during the compilation of the machine code, triggering the deoptimization point during execution of the machine code, and returning execution to the interpreter based on the triggering.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 3 · Forward citations: 4.
Claims (2 — 2 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for a compiler, comprising: receiving, by the compiler and from an interpreter, a representation of a code section having a control path that changes the representation, wherein the representation is an abstract syntax tree (AST) comprising a plurality of nodes, each of the plurality of nodes storing associated profiling data, and wherein the profiling data comprises a threshold; compiling, by the compiler, a machine code of the representation by: performing, based on the threshold, a partial evaluation of the interpreter executing the representation, wherein the control path is repla
- Claim 2Independent Claim
The method o
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (4 of 4 total)
References Cited — Backward Prior Art (3)
Non-Patent Literature (2)
- Consel, C., Pu, C., Walpole, J., "Incremental Partial Evaluation: The Key to High Performance, Modularity and Portability in Operating Systems," In Proceedings of the Symposium on Partial Evaluation and Semantics-Based Program Manipulation, Jan. 1993, 3 pages.
- da Silva et al. "An Experimental Evaluation of JAVA JIT Technology", 2005.