Skip to main content

Lund University Publications

LUND UNIVERSITY LIBRARIES

An alternative optimization technique for JavaScript engines

Martinsen, Jan Kasper and Grahn, Håkan (2010) p.155-160
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 evalauation 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... (More)
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 evalauation 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. (Less)
Please use this url to cite or link to this publication:
author
and
publishing date
type
Chapter in Book/Report/Conference proceeding
publication status
published
subject
host publication
Proceedings of the Third Swedish Workshop on Multi-Core Computing (MCC-10)
pages
155 - 160
project
Embedded Applications Software Engineering
language
English
LU publication?
no
id
c8fceed0-d1a8-453c-a7a5-1a0a3d511acc (old id 1737996)
date added to LUP
2016-04-04 14:24:46
date last changed
2018-11-21 21:20:10
@inproceedings{c8fceed0-d1a8-453c-a7a5-1a0a3d511acc,
  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<br/><br>
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<br/><br>
JavaScript engine. The evalauation 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.<br/><br>
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.}},
  author       = {{Martinsen, Jan Kasper and Grahn, Håkan}},
  booktitle    = {{Proceedings of the Third Swedish Workshop on Multi-Core Computing (MCC-10)}},
  language     = {{eng}},
  pages        = {{155--160}},
  title        = {{An alternative optimization technique for JavaScript engines}},
  url          = {{https://lup.lub.lu.se/search/files/6354681/1738034.pdf}},
  year         = {{2010}},
}