Invention Grant
- Patent Title: Execution of dynamic languages via metadata extraction
- Patent Title (中): 通过元数据提取来执行动态语言
-
Application No.: US12862560Application Date: 2010-08-24
-
Publication No.: US09003380B2Publication Date: 2015-04-07
- Inventor: Gheorghe Calin Cascaval , Mehrdad H. Reshadi
- Applicant: Gheorghe Calin Cascaval , Mehrdad H. Reshadi
- Applicant Address: US CA San Diego
- Assignee: QUALCOMM Incorporated
- Current Assignee: QUALCOMM Incorporated
- Current Assignee Address: US CA San Diego
- Main IPC: G06F9/45
- IPC: G06F9/45 ; G06F9/455 ; G06F9/445

Abstract:
Methods and devices for executing scripts written in a dynamic scripting language include parsing scripts in two stages, a pre-parse using a simplified grammar to generate script metadata regarding the high level structure of the script, and a full parse using the grammar and syntax of the dynamic scripting language and generated script metadata. The generated metadata may describe the high level structure that is present in the language of the script such as functions, object methods, and a top level call graph. The script metadata may be used during the full parse to determine the parts of the code to be fully parsed. The aspects minimize processing time spent in the parsing at run-time, and may eliminate processing required to interpret or compile sections of code that will not be executed. Script metadata as well as results of full parsing may also be cached to provide further processing efficiencies.
Public/Granted literature
- US20110173597A1 EXECUTION OF DYNAMIC LANGUAGES VIA METADATA EXTRACTION Public/Granted day:2011-07-14
Information query