EMME: a formal tool for ECMAScript Memory Model Evaluation

Cristian Mattarei, Clark Barrett, Shu-yu Guo, Bradley Nelson, Ben Smith +1 more
1/30/2018
cs.LOcs.PL

Official code: FMJS/EMME (6 stars, Python, last commit 2018-04-05).

Abstract

Nearly all web-based interfaces are written in JavaScript. Given its prevalence, the support for high performance JavaScript code is crucial.

Show full abstract

The ECMA Technical Committee 39 (TC39) has recently extended the ECMAScript language (i.e., JavaScript) to support shared memory accesses between different threads. The extension is given in terms of a natural language memory model specification. In this paper we describe a formal approach for validating both the memory model and its implementations in various JavaScript engines. We first introduce a formal version of the memory model and report results on checking the model for consistency and other properties. We then introduce our tool, EMME, built on top of the Alloy analyzer, which leverages the model to generate all possible valid executions of a given JavaScript program. Finally, we report results using EMME together with small test programs to analyze industrial JavaScript engines. We show that EMME can find bugs as well as missed opportunities for optimization.

View on arXivView PDF

Code Implementations(1)

FMJS/EMMEOfficial100%

EMME: ECMAScript Memory Model Evaluator

61Python, AlloyFeb 21, 20178 years agoNOASSERTION
cvc4emcascriptformal-methodsformal-verificationjavascript+1 more

Similar Papers

Cite this paper

@article{mattarei2018emme,
  title  = {EMME: a formal tool for ECMAScript Memory Model Evaluation},
  author = {Cristian Mattarei and Clark Barrett and Shu-yu Guo and Bradley Nelson and Ben Smith and JF Bastien},
  year   = {2018},
  eprint = {1801.10140},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1801.10140}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1801.10140.svg)](https://codeofpaper.com/paper/1801.10140)

Discussion