Dynamic compiler and method of compiling code to generate dominant path and to handle exceptions
Abstract
A dynamic compiler and method of compiling code to generate a dominate path and handle exceptions. The dynamic compiler includes an execution history recorder that is configured to record the number of times a fragment of code is interpreted. When the code is interpreted a threshold number of times, the code is queued for compilation. The execution history recorder also keeps track of where transfer of control came from and where transfer of control goes to for each fragment of code that is executed, thereby allowing for compilation of a dominant path of code. If the execution of code deviates from the dominant path of compiled code (such as when an exception occurs), a fallback interpreter is utilized to interpret the fragment of code to be executed.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 37 · Forward citations: 64.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A dynamic compiler, comprising: an execution history recorder configured to record a fragment of code and the number of times the fragment of code is executed; the execution history recorder having an interpreter, a compiler manager coupled thereto and a threshold number of executions for a threshold comparison with a recorded number of times to determine a dominant path having a fragment to be compiled therein; a compiler queue of fragments to be compiled for receiving the fragment to be compiled and a successor fragment wherein the successor fragment is determined by the execution history re
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 64 total)
References Cited — Backward Prior Art (37)
Non-Patent Literature (4)
- Dyadkin, L.J.-Multibox Parsers-ACM Sigplan Notices, Association for Comuting Machinery, New York, vol. 29, No. 7, Jul. 1, 1994, p. 54-60.
- Java Native Interface Specification-Java Native Interface Specification Release May 16, 1997, Sun Microsystems, Inc., California.
- Java World-Di Giorgio-Jul. 1997-Use native methods to expand the Java environment.
- Karaorman, M. et al.-jContractor: a reflective Java library to support design by contract-V 1616, Jul. 19-21, 1999, pp. 175-196,Saint-Malo, Fr.