Research on Optimization of Embedded JS Engine Based on JIT

Author
LiHaiFeng
Advisor
XuLinYing
School
Tianjin University
Major
Computer System Architecture
Classification
TP391.3 Retrieval machine
Degree
Master's thesis
Year
2009
Downloads
58
Citations
1

Request the full text

Abstract

With the widely use of JavaScript in the web, JS engine is playing a more and more important role in the browser, so it is significant to improve the performance of JS engine. Hardware in Embedded platform is complicated and diversified, so it is more significant to develop configurable JS engine to improve the adaptability of embedded browser.The paper analyzes the characteristics of embedded JS Engine, designs configurable JIT Optimization method, researches on how to improve the performance of JS Engine. At first, the paper introduces the development of JS engine, researches the advanced technologies which are used by the main JS engines, and puts emphasis on the JIT Optimization method. Second, the paper analyses the character of the embedded JS engine of the commerce browser, discusses the Optimization of JS Engine based on JIT. Considering the special structure of the JS engine, we divide the JIT module into three sub modules, which are Hotspot Monitor, Hotspot Recorder and compiler. Considering the character of embedded system, the paper designs the work flow of the three modules in detail and describes the implementation of some key parts. In the Hotspot selection algorism, we compound the Trace-based method with Function-based method, so to improve the transportability of the JS engine. Using LRU method which is based on double-linked-list to manage the compiled result of functions, this improves the memory utilization. At last, the paper analysis and compares the optimized JS engine with the original one. The result shows that, when the optimized JS engine runs JavaScript codes that are including many loops, the performance of the JS engine is better than the original one.At present, the Optimization work of the JS engine which is concerned in the paper has been accomplished. After testing the JS engine, it shows that both the performance and adaptability have been improved better.

Table of contents

Chinese abstract 3-4 ABSTRACT 4-8 first chapter 8-12 1.1 Background and Significance 8 development -10 1.1.1 Internet requirements for JavaScript development and status 8 1.1.2 JS engine 8-9 1.1.3 JS engine position in the embedded browser 9-10 1.2 background and the main work 10-11 1.3 nbsp paper tissue structure ; 11-12 <br / > the second chapter related technology research 12-20 2.1 JavaScript and Java 12-13 2.2 embedded operating system 13-14 2.3 embedded browser 14-16 2.3.1 embedded browser works 14-15 2.3.2 browser processing 15 - 16 2.4 JS engine optimization techniques 16-18 2.4.1 JIT technical rationale 16-17 2.4.2 based on Trace of JIT 17-18 2.4.3 function-based JIT 18 2.5 cross-platform C library Nanojit 18-20 Chapter JIT module overall design 20-28 3.1 overall design 20-24 3.1.1 design Goals 20 3.1.2 JIT module overall structural design 20 - 23 3.1.3 JIT module running state transitions 23-24 3.2 hot zone monitor 24-25 3.2.1 hot zone monitoring function 24 3.2.2 found Trace 24 3.2.3 discovery optimization function optimization parameters 24-25 3.2.4 configurable 25 3.3 hot zone recorder 25-27 3.3.1 hot zone recorder function 25-26 recording logger 3.3.2 hot zone 26-27 3.4 hot zone compiler 27 3.5 development tools and runtime environment 27-28 Chapter IV and monitor hot spots design and implementation of compiler hot zone 28-35 4.1 monitor hot zone design and implementation of 28-32 4.1.1 hot zone monitor workflow 28-29 4.1.2 data Structure Design 29 4.1.3 manage potential cycling head 29-30 4.1.4 identify circulating head 30-31 4.1.5 identification optimization function 31-32 4.2 hot zone compiler design and implementation 32-34 4.2.1 thermal District compiler workflow 32-33 4.2.2 to generate native machine code 33 4.2.3 management optimization function compiled results 33-34 <br / > 4.3 execute native machine code design and implementation of the logger 34-35 Chapter hot zone 35-49 5.1 hot zone recorder workflow 35-36 5.2 data structure design 36-37 5.3 record Trace Tree 37-42 5.3.1 set the record mark 37 - 38 5.3.2 generate LIR instruction 38-39 5.3.3 guarded command 39-40 5.3.4 synchronization variable values ?? 40 - 41 5.3.5 stop recording 41-42 5.4 other key issues 42-45 5.4.1 extended Trace Tree 42-44 5.4.2 nested loops 44 5.4.3 normal function 44-45 5.5 recorded optimization function 45-49 5.5 .1 recording function optimization process parameters 45-47 5.5.2 optimization function 47-49 Chapter VI KES performance analysis 49-54 <br / > 6.1 for testing purposes and methods 49-50 6.2 testing and performance analysis 50-53 6.3 optimization conclusion 53-54 seventh Chapter summary and Outlook 54-55 References 55-57 published papers and participate in research note 57-58 Thanks 58

Related dissertations

  1. Research on Program Optimization of Inventory Improvement for H Company
    ZhangYue ·Hebei University of Technology ·2012 ·Master's thesis
  2. The Diagnostic Analysis of H Company Vendor Managed Inventory VMI Management Model Establishment
    ChenWeiNa ·South China University of Technology ·2013 ·Master's thesis
  3. The Improvement on Inventory Management of Changchun TI Company
    ZhouYan ·Jilin University ·2013 ·Master's thesis
  4. Research on Lean Production Theory in Warehouse Management Improvement of TAS Company
    ShiHongYan ·Tianjin University ·2012 ·Master's thesis
  5. Inventory Management of China Plant of B Corporation
  6. Long Lead Time Material Purchasing Strategy for Hennecke Company
  7. Research on Packing Materials Inventory Management of a Company
    LaiXiaoZuo ·Xiamen University ·2014 ·Master's thesis
  8. Research on the Procurement Path Optimization Based on EOQ-JIT Cost Indifference Point
    BaiJingHui ·Chongqing Jiaotong University ·2012 ·Master's thesis
  9. Research on Inventory Management Model Based on the Combination of VMI and JIT under the Environment of Supply Chain
    HuangLiMin ·Zhejiang University of Technology ·2013 ·Master's thesis
  10. Porting and Research on Android Based on CK810
    YuChaoJun ·Zhejiang University ·2014 ·Master's thesis
  11. The Planning and Design of Engine Manufacturing Based on Lean Production
    ZhouHuCheng ·Tianjin University ·2012 ·Master's thesis
  12. Port Equipment Spare Parts Inventory Management Under the Environment of JIT
    LaiShuJian ·Dalian Maritime University ·2013 ·Master's thesis
  13. The Research on the System Construction of Aletai Telecom Customer Network Maintenance
  14. Study on Supply Chain Optimization for Kendrion Binder Company
    LiRongHu ·Lanzhou University ·2013 ·Master's thesis
  15. Research of Business Process Reengineering on SCM of KSB
    YuXiaoFei ·Dalian University of Technology ·2013 ·Master's thesis
  16. Supply Chain Coordination on Two-Suppliers and One-Manufacturer Assembly System with Uncertain Delivery Time
  17. Study of Assembly Process Optimization and WIP-control-model Based on JIT-BPM
    TanYi ·Chengdu University of Technology ·2013 ·Master's thesis
  18. Production Process Improve Using in LP for a Compny
    WuJianGuo ·Lanzhou University ·2012 ·Master's thesis
  19. A Study on Manufacturing Management of Transformer in Mode of JIT
    LuJingBo ·Yunnan University ·2011 ·Master's thesis
  20. Azurewave Based on JIT Material Management Improvement Research
    YanQiuGen ·Lanzhou University ·2013 ·Master's thesis