EMME:ECMAScript内存模型评估的形式化工具
EMME: a formal tool for ECMAScript Memory Model Evaluation
摘要:
几乎所有基于Web的界面都是用JavaScript编写的。考虑到它的流行,对高性能JavaScript代码的支持是至关重要的。ECMA技术委员会39(TC39)最近扩展了ECMAScript语言(即,JavaScript)来支持不同线程之间的共享内存访问。该扩展是根据自然语言内存模型规范给出的。在本文中,我们描述了一个正式的方法来验证内存模型及其实现在各种JavaScript引擎。我们首先介绍一个正式版本的内存模型和报告的一致性和其他属性的模型检查结果。然后,我们介绍了我们的工具,EMME,建立在合金分析器,它利用模型来生成一个给定的JavaScript程序的所有可能的有效执行。最后,我们报告的结果,使用EMME与小型测试程序来分析工业JavaScript引擎。我们表明,EMME可以找到错误,以及错过的优化机会。
英文摘要:
Nearly all web-based interfaces are written in JavaScript. Given its prevalence, the support for high performance JavaScript code is crucial. 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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。