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
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
- Research on Program Optimization of Inventory Improvement for H Company
- The Diagnostic Analysis of H Company Vendor Managed Inventory VMI Management Model Establishment
- The Improvement on Inventory Management of Changchun TI Company
- Research on Lean Production Theory in Warehouse Management Improvement of TAS Company
- Inventory Management of China Plant of B Corporation
- Long Lead Time Material Purchasing Strategy for Hennecke Company
- Research on Packing Materials Inventory Management of a Company
- Research on the Procurement Path Optimization Based on EOQ-JIT Cost Indifference Point
- Research on Inventory Management Model Based on the Combination of VMI and JIT under the Environment of Supply Chain
- Porting and Research on Android Based on CK810
- The Planning and Design of Engine Manufacturing Based on Lean Production
- Port Equipment Spare Parts Inventory Management Under the Environment of JIT
- The Research on the System Construction of Aletai Telecom Customer Network Maintenance
- Study on Supply Chain Optimization for Kendrion Binder Company
- Research of Business Process Reengineering on SCM of KSB
- Supply Chain Coordination on Two-Suppliers and One-Manufacturer Assembly System with Uncertain Delivery Time
- Study of Assembly Process Optimization and WIP-control-model Based on JIT-BPM
- Production Process Improve Using in LP for a Compny
- A Study on Manufacturing Management of Transformer in Mode of JIT
- Azurewave Based on JIT Material Management Improvement Research