- 专利标题: Optimizing intermediate representation of script code for fast path execution
-
申请号: US15007914申请日: 2016-01-27
-
公开(公告)号: US09733912B2公开(公告)日: 2017-08-15
- 发明人: Ali-Reza Adl-Tabatabai , Guilherme de Lima Ottoni , Michael Paleczny
- 申请人: Facebook, Inc.
- 申请人地址: US CA Menlo Park
- 专利权人: Facebook, Inc.
- 当前专利权人: Facebook, Inc.
- 当前专利权人地址: US CA Menlo Park
- 代理机构: Perkins Coie LLP
- 主分类号: G06F9/45
- IPC分类号: G06F9/45 ; G06F9/44
摘要:
Disclosed here are methods, systems, paradigms and structures for optimizing intermediate representation (IR) of a script code for fast path execution. A fast path is typically a path that handles most commonly occurring tasks more efficiently than less commonly occurring ones which are handled by slow paths. The less commonly occurring tasks may include uncommon cases, error handling, and other anomalies. The IR includes checkpoints which evaluate to two possible values resulting in either a fast path or slow path execution. The IR is optimized for fast path execution by regenerating a checkpoint as a labeled checkpoint. The code in the portion of the IR following the checkpoint is optimized assuming the checkpoint evaluates to a value resulting in fast path. The code for handling situations where the checkpoint evaluates to a value resulting in slow path is transferred to a portion of the IR identified by the label.
公开/授权文献
信息查询