JS']JSOptimizer: An Extensible Framework for Java']JavaScript Program Optimization

被引:5
作者
Liu, Yi [1 ]
机构
[1] Southern Univ Sci & Technol, Shenzhen, Guangdong, Peoples R China
来源
2019 IEEE/ACM 41ST INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING: COMPANION PROCEEDINGS (ICSE-COMPANION 2019) | 2019年
关键词
!text type='Java']Java[!/text]Script; Static Analysis; Web Applications; Server-side; Client-side;
D O I
10.1109/ICSE-Companion.2019.00069
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
JavaScript has become a popular programming language.(1) It is widely used in both client-side and server-side programming in web applications. The robustness and performance of JavaScript programs become vital. Unfortunately, real-world JavaScript programs often suffer from various issues. In this work, we present nine issue patterns derived from open-source projects and propose a general static analysis framework, JSOptimizer, to help detect such patterns of issues and optimize the code accordingly. Comparing to existing work, JSOptimizer is not only highly extensible but also performs code optimizations automatically. We applied JSOptimizer to seven real open-source JavaScript projects and five bugs detected by it have been confirmed by developers. Besides, we conducted a case study based on a popular project and found that addressing the issues detected by our framework can speed up the original project by over 300%. This shows the usefulness of JSOptimizer.
引用
收藏
页码:168 / 170
页数:3
相关论文
共 15 条
[1]   Characteristics and Performance Assessment of Approaches Pre-rendering and Isomorphic Java']Javascript as a Complement to SPA Architecture [J].
da Silva, William Oliveira ;
Farah, Paulo Roberto .
XII BRAZILIAN SYMPOSIUM ON SOFTWARE COMPONENTS, ARCHITECTURES, AND REUSE (SBCARS), 2018, :63-72
[2]  
Kashyap V., 2012, P 22 ACM SIGSOFT
[3]  
Loki G., 2014, FSE 2014, P121, DOI [10.1145/2635868.2635904, DOI 10.1145/2635868.2635904]
[4]  
Madsen M., 2013, Ase, P499, DOI DOI 10.1145/2491411.2491417
[5]  
NKENYEREYE L, 2016, COMMUNICATION, V98, P382, DOI DOI 10.1016/J.PROCS.2016.09.058
[6]   Static analysis of Java']JavaScript libraries in a scalable and precise way using loop sensitivity [J].
Park, Changhee ;
Lee, Hongki ;
Ryu, Sukyoung .
SOFTWARE-PRACTICE & EXPERIENCE, 2018, 48 (04) :911-944
[7]   Static Analysis of Java']JavaScript Web Applications in the Wild via Practical DOM Modeling [J].
Park, Changhee ;
Won, Sooncheol ;
Jin, Joonho ;
Ryu, Sukyoung .
2015 30TH IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING (ASE), 2015, :552-562
[8]   Battles with False Positives in Static Analysis of Java']JavaScript Web Applications in the Wild [J].
Park, Joonyoung ;
Lim, Inho ;
Ryu, Sukyoung .
2016 IEEE/ACM 38TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING COMPANION (ICSE-C), 2016, :61-70
[9]  
Pienaar J.A., 2013, Proceedings of the 2013 IEEE/ACM International Symposium on Code Generation and Optimization, CGO 2013, Shenzhen, China, February 23-27, 2013, p11:1, DOI [10.1109/CGO.2013.6495007, DOI 10.1109/CGO.2013.6495007]
[10]  
Pradel M, 2014, ACM SIGPLAN NOTICES, V49, P33, DOI [10.1145/2714064.2660233, 10.1145/2660193.2660233]