HHVM JIT: A Profile-Guided, Region-Based Compiler for PHP and Hack
Dynamic languages such as PHP, JavaScript, Python, and Ruby have been gaining popularity over the last two decades. A very popular domain for these languages is web development, including server-side development of large-scale websites. As a result, improving the performance of these languages has become more important. Efficiently compiling programs in these languages is challenging, and many popular dynamic languages still lack efficient production-quality implementations. This paper describes the design of the second generation of the HHVM JIT and how it addresses the challenges to efficiently execute PHP and Hack programs. This new design uses profiling to build an aggressive region-based JIT compiler. We discuss the benefits of this approach compared to the more popular method-based and trace-based approaches to compile dynamic languages. Our evaluation running a very large PHP-based code base, the Facebook website, demonstrates the effectiveness of the new JIT design.
Wed 20 Jun Times are displayed in time zone: Eastern Time (US & Canada) change
14:00 - 15:40: Dynamic TechniquesPLDI Research Papers at Grand Ballroom CD Chair(s): Sorin LernerUniversity of California, San Diego | |||
14:00 - 14:25 Talk | HHVM JIT: A Profile-Guided, Region-Based Compiler for PHP and Hack PLDI Research Papers Guilherme OttoniFacebook Media Attached | ||
14:25 - 14:50 Talk | On-Stack Replacement, Distilled PLDI Research Papers Media Attached | ||
14:50 - 15:15 Talk | EffectiveSan: Type and Memory Error Detection using Dynamically Typed C/C++ PLDI Research Papers Gregory J. DuckNational University of Singapore, Singapore, Roland H. C. YapNational University of Singapore, Singapore Media Attached | ||
15:15 - 15:40 Talk | Calling-to-Reference Context Translation via Constraint-Guided CFL-Reachability PLDI Research Papers Cheng CaiUniversity of California, Irvine, Qirun ZhangUniversity of California, Davis, Zhiqiang ZuoNanjing University, China, Khanh NguyenUniversity of California, Irvine, Harry XuUniversity of California, Los Angeles (UCLA), Zhendong SuUniversity of California, Davis Media Attached |