Modeling code manipulation in JIT compilers

Heui Chan Lim, Xiyu Kang, Saumya Debray

Research output: Chapter in Book/Report/Conference proceedingConference contribution

1 Scopus citations

Abstract

Just-in-Time (JIT) compilers are widely used to improve the performance of interpreter-based language implementations by creating optimized code at runtime. However, bugs in the JIT compiler's code manipulation and optimization can result in the generation of incorrect code. Such bugs can be difficult to diagnose and fix, and can result in exploitable vulnerabilities. Unfortunately, existing approaches to automatic bug localization do not carry over well to such bugs. This paper discusses a different approach to analyzing JIT compiler optimization behaviors, based on using dynamic analysis to construct abstract models of the JIT compiler's optimizer and back end. By comparing the models obtained for buggy and non-buggy executions of the JIT compiler, we can pinpoint the components of the JIT compiler's internal representation that have been affected by the bug; this can then be mapped back to identify the buggy code. Our experiments with two real bugs for Google V8 JIT compiler, TurboFan, show the utility and practicality of our approach.

Original languageEnglish (US)
Title of host publicationSOAP 2022 - Proceedings of the 11th ACM SIGPLAN International Workshop on the State Of the Art in Program Analysis, co-located with PLDI 2022
EditorsLaure Gonnord, Laura Titolo
PublisherAssociation for Computing Machinery, Inc
Pages9-15
Number of pages7
ISBN (Electronic)9781450392747
DOIs
StatePublished - Jun 14 2022
Externally publishedYes
Event11th ACM SIGPLAN International Workshop on the State Of the Art in Program Analysis, SOAP 2022, co-located with the 43rd ACM SIGPLAN International Conference on Programming Language Design and Implementation, PLDI 2022 - San Diego, United States
Duration: Jun 14 2022 → …

Publication series

NameSOAP 2022 - Proceedings of the 11th ACM SIGPLAN International Workshop on the State Of the Art in Program Analysis, co-located with PLDI 2022

Conference

Conference11th ACM SIGPLAN International Workshop on the State Of the Art in Program Analysis, SOAP 2022, co-located with the 43rd ACM SIGPLAN International Conference on Programming Language Design and Implementation, PLDI 2022
Country/TerritoryUnited States
CitySan Diego
Period6/14/22 → …

Keywords

  • dynamic code generation
  • jit compiler
  • optimization
  • program analysis

ASJC Scopus subject areas

  • Software
  • Computer Graphics and Computer-Aided Design

Fingerprint

Dive into the research topics of 'Modeling code manipulation in JIT compilers'. Together they form a unique fingerprint.

Cite this