Efficient module-level dynamic analysis for dynamic languages with module recontextualization


연구 분야: Analysis



학회: ESEC/FSE 2021: Proceedings of the 29th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering


초록

Dynamic program analysis is a long-standing technique for obtaining information about program execution. We present module recontextualization, a new dynamic analysis approach that targets modern dynamic languages such as JavaScript and Racket, enabled by the fact that they feature a module-import mechanism that loads code at runtime as a string. This approach uses lightweight load-time code transformations that operate on the string representation of the module, as well as the context to which it is about to be bound, to insert developer-provided, analysis-specific code into the module before it is loaded. This code implements the dynamic analysis, enabling this approach to capture all interactions around the module in unmodified production language runtime environments. We implement this approach in two systems targeting the JavaScript and Racket ecosystems. Our evaluation shows that this approach can deliver order-of-magnitude performance improvements over state-of-the-art dynamic analysis systems while supporting a range of analyses, implemented on average in about 100 lines of code.


Author Profile
Nikos Vasilakis

Massachusetts Institute of Technology USA

United States
Author Profile
Grigoris Ntousakis

TU Crete Greece

Greece
Author Profile
Veit Heller

n.n. n.n.

정보 없음

📄 논문 정보

발행 연도 2021년
인용수 5
출판 국가 Greece, United States
사이트 ACM
좋아요 수 0

연관 논문 목록 (12건)