|
Profile-based optimizations for JavaScript programs
V. Vardanyan Yerevan State University, Republic of Armenia, Yerevan, 0025, 1 Alex Manoogian
Abstract:
In recent years, JavaScript has become one of the most popular programming languages on the web. Many massive applications are written using JavaScript, such as Gmail, Google docs, etc. JavaScript is also used in the Node.js - server-side web application developing platform. Moreover, JavaScript is the main language for developing applications on some operating systems for mobile and media devices. Examples of such systems are Tizen and FirefoxOS. Due to increasing popularity of JavaScript many big companies produced and continue to develop their own dynamic compilers for this language. JIT compilation makes it possible to implement many well-known classic optimizations to improve programs performance. To maintain a trade-off between quick startup and doing sophisticated optimizations, JavaScript engines usually use multiple tiers for compiling hot functions: lower tier JITs generate less efficient code, but can start almost immediately (e.g., even with interpretation), while higher tier JITs aim at generating very effective code for hot places, but at the cost of long compilation time. So even highly optimized JavaScript execution engines require some time to "warm-up" before reaching their peak performance. This work is dedicated to the performance improvement of modern dynamic multitier JIT compilers by designing and implementing profile-based optimizations in JavaScript V8 JIT compiler.
Keywords:
JavaScript, V8, optimization, dynamic compilation.
Citation:
V. Vardanyan, “Profile-based optimizations for JavaScript programs”, Proceedings of ISP RAS, 28:1 (2016), 5–20
Linking options:
https://www.mathnet.ru/eng/tisp1 https://www.mathnet.ru/eng/tisp/v28/i1/p5
|
|