Tracing just-in-time compilation with pointers to local variables
Abstract
In one embodiment, a trace optimizing engine may create an optimized trace of an operation segment of a software program. A memory may store a trace of an operation segment and an inherited stack frame from the operation segment. An optimizing trace compiler may resolve a local pointer of the operation segment to a memory object and insert a guard in the trace that invalidates the trace if the local pointer does not resolve to the memory object. A just in time compiler may receive in the trace a stack pointer to the inherited stack frame, move the stack pointer to create a storage space, and store an intermediate value for a local variable in a temporary variable in the storage space.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 18 · Forward citations: 18.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A machine-implemented method for just-in-time trace compilation, comprising: collecting a trace of an operation segment of a profiling code; resolving a local pointer of the operation segment to a memory object; inserting a guard in the trace that invalidates the trace if the local pointer does not resolve to the memory object; receiving in the trace a stack pointer to an inherited stack frame from the operation segment; moving the stack pointer to create a storage space; and storing an intermediate value for a local variable in a temporary variable in the storage space.
- Claim 2Depends on #1
The method of claim 1 , wherein the memory object is at least one of a local variable, a struct, a stack location, a heap location, and an inner pointer.
- Claim 3Depends on #1
The method of claim 1 , wherein the operation segment is a machine language loop.
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 18 total)
References Cited — Backward Prior Art (18)
Non-Patent Literature (5)
- "Common Language Infrastructure (CLI): Partitions I to VI," Retrieved at <<http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-335.pdf>>, ECMA-335, Jun. 2006, pp. 1-556.
- "Common Language Infrastructure (CLI): Partitions I to VI," Retrieved at >, ECMA-335, Jun. 2006, pp. 1-556.
- "Dynamic Language Runtime", Retrieved at << http://www.codeplex.com/dlr/ >>, Version 28, Retrieved Date: Apr. 15, 2010, pp. 1.
- "Dynamic Language Runtime", Retrieved at >, Version 28, Retrieved Date: Apr. 15, 2010, pp. 1.
- Adl-Tabatabai, et al., "Fast, Effective Code Generation in a Just-In-Time Java Compiler", Retrieved at << http://www.csc.lsu.edu/˜gb/csc7700/Reading/p280-adl-tabatabai.pdf >>, ACM SIGPLAN Notices, vol. 33, No. 5, May 1998, pp. 11.