@inproceedings{50c19e86c454465885d2b0fd7afdae8d,
title = "Improving javascript performance by deconstructing the type system",
abstract = "Increased focus on JavaScript performance has resulted in vast performance improvements for many benchmarks. How- ever, for actual code used in websites, the attained improve- ments often lag far behind those for popular benchmarks. This paper shows that the main reason behind this short- fall is how the compiler understands types. JavaScript has no concept of types, but the compiler assigns types to ob- jects anyway for ease of code generation. We examine the way that the Chrome V8 compiler defines types, and identify two design decisions that are the main reasons for the lack of improvement: (1) the inherited prototype object is part of the current object's type definition, and (2) method bind- ings are also part of the type definition. These requirements make types very unpredictable, which hinders type special- ization by the compiler. Hence, we modify V8 to remove these requirements, and use it to compile the JavaScript code assembled by JSBench from real websites. On average, we reduce the execution time of JSBench by 36%, and the dynamic instruction count by 49%.",
keywords = "Dynamic typing, Hidden class, Inline caching, Javascript, Prototype, Scripting language, Type spe- cialization",
author = "Wonsun Ahn and Jiho Choi and Thomas Shull and Garzar{\'a}n, {Mar{\'i}a J.} and Josep Torrellas",
year = "2014",
doi = "10.1145/2594291.2594332",
language = "English (US)",
isbn = "9781450327848",
series = "Proceedings of the ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI)",
publisher = "Association for Computing Machinery",
pages = "496--507",
booktitle = "PLDI 2014 - Proceedings of the 2014 ACM SIGPLAN Conference on Programming Language Design and Implementation",
address = "United States",
note = "35th ACM SIGPLAN Conference on Programming Language Design and Implementation, PLDI 2014 ; Conference date: 09-06-2014 Through 11-06-2014",
}