Region-Based Compilation in the HHVM JIT Compiler
MoreVMs Invited Talk
The HipHop Virtual Machine (HHVM) Just-In-Time (JIT) compiler uses a region-based compilation approach. Although region-based compilation has been employed in prior static and dynamic compilers, this approach has not been widely adopted by existing VMs, which typically use either trace-based or method-based compilation. In this talk, I’ll argue that region-based compilation is superior to both trace-based and method-based compilation in general. Furthermore, I’ll describe the key characteristics that make region-based compilation particularly attractive for dynamic-language VMs. After motivating the case for region-based compilation in VMs, I’ll describe the general architecture of the HHVM JIT compiler and how it integrates region-based compilation with a set of other key mechanisms, including type specialization, profile-guided optimizations, and on-stack replacement.
Tue 2 Apr
|08:50 - 09:00|
|09:00 - 10:00|
|10:00 - 10:30|
Yusuke IzawaTokyo Institute of Technology, Hidehiko MasuharaTokyo Institute of Technology, Tomoyuki AotaniTokyo Institute of TechnologyDOI Pre-print Media Attached