Patents
US 8,522,222 B2#5040412 Most CitedActiveUnited States (USPTO)Utility

Tracing just-in-time compilation with pointers to local variables

18Forward Citations (#5040412 Global)
1.4/yrCitation Velocity (#4079223 Global)
2.15Citation PageRank (#12957394 Global)
18Prior Art Cited
3Claims (1 Indep. · 2 Dep.)
0Drawings / Sheets

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)

  1. 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.

  2. 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.

  3. 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 ↗

References Cited — Backward Prior Art (18)

PatentTitleYearCitations
US 6,151,703 ADevelopment system with methods for just-in-time compilation of programs2000147
US 6,604,167 B1Method and apparatus traversing stacks for just-in-time compilers for Java virtual machines200319
US 2004003377 A1Converting byte code instructions to a new instruction set—38
US 6,851,109 B1Process and system for dynamically compiling a partially interpreted method200557
US 2006190935 A1Method and apparatus for transforming Java native interface function calls into simpler operations during just-in-time compilation—56
US 2007226700 A1Dynamic incremental compiler and method—32
US 7,426,719 B2Method and system for rewriting unwind data in the presence of exceptions200812
US 2009007075 A1Method and System for Tracing Profiling Information Using Per Thread Metric Variables with Reused Kernel Threads—37
US 2009055814 A1Just-in-time compiler support for interruptible code—14
US 2009064113 A1Method and system for dynamic loop transfer by populating split variables—23
US 2009144710 A1Method and Apparatus for Transforming Java Native Interface Function Calls into Simpler Operations During Just-In-Time Compilation—8
US 7,574,704 B2System and method for frequency based loop reorganization200917
US 7,617,493 B2Defining memory indifferent trace handles20095
US 7,913,240 B2Method and apparatus for transforming java native interface function calls into simpler operations during just-in-time compilation201118
US 7,930,686 B2Defining memory indifferent trace handles20114

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.