Open Scope: A Pragmatic JavaScript Pattern for Modular Instrumentation - Archive ouverte HAL
Pré-Publication, Document De Travail Année : 2015

Open Scope: A Pragmatic JavaScript Pattern for Modular Instrumentation

Résumé

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
Origine Fichiers produits par l'(les) auteur(s)
Loading...

Dates et versions

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

Licence

Domaine public

Identifiants

  • HAL Id : hal-01181143 , version 2

Citer

Florent Marchand de Kerchove, Jacques Noyé, Mario Südholt. Open Scope: A Pragmatic JavaScript Pattern for Modular Instrumentation. 2015. ⟨hal-01181143v2⟩
409 Consultations
404 Téléchargements

Partager

More