Invention Grant
- Patent Title: Optimizing intermediate representation of script code by eliminating redundant reference count operations
-
Application No.: US14614263Application Date: 2015-02-04
-
Publication No.: US09383979B2Publication Date: 2016-07-05
- Inventor: Ali-Reza Adl-Tabatabai , Guilherme de Lima Ottoni , Michael Paleczny
- Applicant: Facebook, Inc.
- Applicant Address: US CA Menlo Park
- Assignee: Facebook, Inc.
- Current Assignee: Facebook, Inc.
- Current Assignee Address: US CA Menlo Park
- Agency: Perkins Coie LLP
- Main IPC: G06F9/45
- IPC: G06F9/45 ; G06F12/02

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.
Public/Granted literature
Information query