Optimizing intermediate representation of script code by eliminating redundant reference count operations
Abstract
Disclosed here are methods, systems, paradigms and structures for optimizing generation of intermediate representation (IR) for a script code by eliminating redundant object reference count operations from the IR. An IR of the script includes (a) a set of first code that increments a reference count of an object when a programming construct refers to the object, and (b) an associated set of second code which decrements the reference count of the object when a reference to the object is removed. The IR is analyzed to identify a subset of the set of second code which, upon execution, does not decrement the reference count of the object to a zero value. The subset of second code and the first code corresponding to the subset is removed from the IR to generate an optimized IR. The optimized IR is further converted to an executable code.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 9 · Forward citations: 2.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method comprising: generating, at a computer in a computer system, an intermediate representation of a script code, the intermediate representation being a form of the script code which is configured to be converted to an executable code for execution of the script code, the generating the intermediate representation including: generating, for an object allocated in a memory of the computer, a set of first code, at least some of the set of first code incrementing a reference count of the object when a programming construct refers to the object, the reference count indicating a number of refe
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (2 of 2 total)
References Cited — Backward Prior Art (9)
Non-Patent Literature (2)
- Armstrong et al., "Compiler Optimization for distributed dynamic data flow programs", 2013.
- Joisha et al., "Compiler Optimizations for Nondeferred Reference-Counting Garbage Collection", 2006.