Program specialization is an effective tool for transforming interpreters to compilers. We present the first steps in the construction of a specialization tool chain for JavaScript programs. We report on an application of this tool chain in a case study that transforms a realistic interpreter implemented in JavaScript to a compiler. The difference to previous work on compiling with program specialization is threefold. First, the interpreter has not been written with specialization in mind. Second, instead of specializing the interpreter, we transform it into a generating extension, which replaces parts of the interpreter’s code by a corresponding code generator. Third, the implementation language of the interpreter is not a restricted toy language, but full JavaScript.
CITATION STYLE
Thiemann, P. (2015). Towards specializing JavaScript programs. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 8974, pp. 320–334). Springer Verlag. https://doi.org/10.1007/978-3-662-46823-4_26
Mendeley helps you to discover research relevant for your work.