Title :
An efficient mechanism of generating call graph for JavaScript using dynamic analysis in web application
Author :
Toma, Tajkia Rahman ; Islam, Md Shariful
Author_Institution :
Inst. of Inf. Technol., Univ. of Dhaka, Dhaka, Bangladesh
Abstract :
Web applications are replacing traditional native applications in recent years. For web applications, JavaScript is the most extensively used client side programming languages. The large JavaScript codebase often makes applications hard to understand, maintain and extend. Call graph is a human understandable program representation that can be used as a basis for maintenance and further extension of the application. In maintenance phase call graph can play a vital role by facilitating developers to easily trace the code that implements a particular feature. There is insufficient tool support for generating call graph for JavaScript. For its dynamic nature, JavaScript call graph generation becomes challenging. We present a dynamic analysis based mechanism to construct the call graph of JavaScript of a client side web application. Our evaluation on web applications demonstrates that the technique is precise and the rate of unidentified nodes in call graph is acceptable.
Keywords :
Internet; Java; graph theory; JavaScript call graph generation; JavaScript codebase; Web application; call graph generation; client side programming languages; dynamic analysis; dynamic nature; efficient mechanism; maintenance phase call graph; Computer architecture; Conferences; Informatics; Maintenance engineering; Reactive power; Servers; Testing;
Conference_Titel :
Informatics, Electronics & Vision (ICIEV), 2014 International Conference on
Conference_Location :
Dhaka
Print_ISBN :
978-1-4799-5179-6
DOI :
10.1109/ICIEV.2014.6850807