Accelerating Java']JavaScript Static Analysis via Dynamic Shortcuts

被引:8
作者
Park, Joonyoung [1 ]
Park, Jihyeok [1 ]
Youn, Dongjun [1 ]
Ryu, Sukyoung [1 ]
机构
[1] Korea Adv Inst Sci & Technol, Daejeon, South Korea
来源
PROCEEDINGS OF THE 29TH ACM JOINT MEETING ON EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING (ESEC/FSE '21) | 2021年
基金
新加坡国家研究基金会;
关键词
!text type='Java']Java[!/text]Script; static analysis; dynamic analysis; dynamic shortcut; sealed execution;
D O I
10.1145/3468264.3468556
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
JavaScript has become one of the most widely used programming languages for web development, server-side programming, and even micro-controllers for IoT. However, its extremely functional and dynamic features degrade the performance and precision of static analysis. Moreover, the variety of built-in functions and host environments requires excessive manual modeling of their behaviors. To alleviate these problems, researchers have proposed various ways to leverage dynamic analysis during JavaScript static analysis. However, they do not fully utilize the high performance of dynamic analysis and often sacrifice the soundness of static analysis. In this paper, we present dynamic shortcuts, a new technique to flexibly switch between abstract and concrete execution during JavaScript static analysis in a sound way. It can significantly improve the analysis performance and precision by using highly-optimized commercial JavaScript engines and lessen the modeling efforts for opaque code. We actualize the technique via SAFE(DS), an extended combination of SAFE and Jalangi, a static analyzer and a dynamic analyzer, respectively. We evaluated SAFE(DS) using 269 official tests of Lodash 4 library. Our experiment shows that SAFE(DS) is 7.81x faster than the baseline static analyzer, and it improves the precision to reduce failed assertions by 12.31% on average for 22 opaque functions.
引用
收藏
页码:1129 / 1140
页数:12
相关论文
共 43 条
[1]   Combining String Abstract Domains for Java']JavaScript Analysis: An Evaluation [J].
Amadini, Roberto ;
Jordan, Alexander ;
Gange, Graeme ;
Gauthier, Francois ;
Schachte, Peter ;
Sondergaard, Harald ;
Stuckey, Peter J. ;
Zhang, Chenyi .
TOOLS AND ALGORITHMS FOR THE CONSTRUCTION AND ANALYSIS OF SYSTEMS, TACAS 2017, PT I, 2017, 10205 :41-57
[2]  
[Anonymous], 2020, ZOOM A VIDEOTELEPHON
[3]  
[Anonymous], 2020, ESPRUINO AN OPENSOUR
[4]  
[Anonymous], 2020, LODASH A MODERN JAVA
[5]  
[Anonymous], 2020, MODDABLE TOOLS CREAT
[6]  
[Anonymous], 2020, ELECT A FRAMEWORK CR
[7]  
[Anonymous], 2020, REACT NATIVE A FRAME
[8]  
[Anonymous], 2020, ECMA262, V6th
[9]  
[Anonymous], 2020, NODEJS A JAVASCRIPT
[10]  
[Anonymous], 2020, SUNSPIDER JAVASCRIPT