An alternative optimization technique for JavaScript engines

Document type: Conference Papers
Peer reviewed: Yes
Full text:
Author(s): Jan Kasper Martinsen, Håkan Grahn
Title: An alternative optimization technique for JavaScript engines
Conference name: Third Swedish Workshop on Multi-Core Computing (MCC-10)
Year: 2010
Pagination: 155-160
Publisher: Chalmers University of Technology
City: Göteborg
Organization: Blekinge Institute of Technology
Department: School of Computing (Sektionen för datavetenskap och kommunikation)
School of Computing S-371 79 Karlskrona
+46 455 38 50 00
http://www.bth.se/com
Authors e-mail: Jan.Kasper.Martinsen@bth.se, Hakan.Grahn@bth.se
Language: English
Abstract: Thread Level Speculation at function level has been suggested as a method to automatically (or semi-automatically) extract parallelism from sequential programs. While there have been multiple implementations in both hardware and software, little work has been done in the context of dynamic programming languages such as JavaScript.

In this paper we evaluate the effects of a simple Thread Level Speculation approach, implemented on top of the Rhino1 7R2 JavaScript engine. The evaluation is done using the wellknown JavaScript benchmark suite V8. More specifically, we have measured the effects of our null return value prediction approach for function calls, conflicts with variables in a global scope, and the effects on the execution time.

The results show that our strategy to speculate on return values is successful, that conflicts with global variables occur, and for several applications are the execution time improved, while the performance decrease for some applications due to speculation overhead.
Subject: Computer Science\Computersystems
Computer Science\General
Edit