Font Size: a A A

Porting Of Javascript Just-in-time Engine Base On Domestic Processor

Posted on:2021-05-08Degree:MasterType:Thesis
Country:ChinaCandidate:Y F PangFull Text:PDF
GTID:2518306107950449Subject:Computer technology
Abstract/Summary:PDF Full Text Request
With the development of mobile devices and dynamic web technologies,the demand for browser performance in intelligent devices is increasing,and many web applications begin to use JavaScript language to provide users with richer services.Against this background,the performance of the JavaScript engine becomes one of the most critical factors affecting the overall performance of the browser,and then affects the user's online experience.At present,the JavaScript just-in-time engine can improve the parsing speed of the JavaScript language under the x86 and ARM architecture,but the engine has not yet supported the domestic processor.First,the structure of the JavaScript engine interpretation system is given,the intermediate bytecode interpretation and execution process and the mechanism of JavaScript just-in-time are introduced;Secondly,it analyzes the parts related to the processor architecture of JavaScript just-in-time and summarizes the scheme of porting JavaScript just-in-time engine;Next,through realizing translator,method for entering and exiting object code,trampoline function,memory space of the target code,and regular expressions,the porting of domestic processor JavaScript just-in-time engine is completed.Finally,the two memory allocation methods are compared.The test environment of this paper uses the domestic processor to build the crosscompilation platform,and the test tool uses the Web Kit's own JavaScript Test Library test library.After testing,using the ported JavaScript just-in-time engine can pass most of the core functions of JavaScript,and the correctness of its porting is guaranteed.
Keywords/Search Tags:domestic processor, JavaScript engin, Just-in-time compilation, translator, memory allocation
PDF Full Text Request
Related items