Open Scope: A Pragmatic JavaScript Pattern for Modular Instrumentation - Archive ouverte HAL
Preprints, Working Papers, ... Year : 2015

Open Scope: A Pragmatic JavaScript Pattern for Modular Instrumentation

Abstract

We report on our experience instrumenting Narcissus, a JavaScript interpreter written in JavaScript, to allow the dynamic deployment of dynamic program analyses. Instrumenting an interpreter is a cross-cutting change that can affect many parts of the interpreter source code. We propose a simple open scope pattern that minimizes the changes to the interpreter, while allowing us to implement program analyses in their own files, and to compose them dynamically. We apply our pattern to Narcissus using standard JavaScript features, and find that the gain in extensibility offsets a small loss in performance.
Fichier principal
Vignette du fichier
main.pdf (177.05 Ko) Télécharger le fichier
Origin Files produced by the author(s)
Loading...

Dates and versions

hal-01181143 , version 1 (31-07-2015)
hal-01181143 , version 2 (10-08-2015)

Licence

Public Domain

Identifiers

  • HAL Id : hal-01181143 , version 2

Cite

Florent Marchand de Kerchove, Jacques Noyé, Mario Südholt. Open Scope: A Pragmatic JavaScript Pattern for Modular Instrumentation. 2015. ⟨hal-01181143v2⟩
403 View
399 Download

Share

More