Selective Just-in-Time Compilation for Client-side Mobile Java']JavaScript Engine

被引:0
|
作者
Lee, Seong-Won [1 ]
Moon, Soo-Mook [1 ]
机构
[1] Seoul Natl Univ, Sch Elect Engn & Comp Sci, Seoul, South Korea
关键词
!text type='Java']Java[!/text]Script engines; SFX; selective compilation; hot spot detection;
D O I
暂无
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Smart phone's full web browsing requires a high-performance JavaScript engine because JavaScript execution takes a non-trivial portion of the loading time for many web sites. The current wisdom of speeding up JavaScript engine is simply turning on its just-in-time compilation (JITC), which compiles JavaScript code to machine code on the fly and executes it instead of interpretation. Unfortunately, we found that JITC actually increases the loading time tangibly for some JavaScript-heavy web pages compared to interpretation, while it can still reduce the running time for JavaScript benchmarks. We observed that the web page JavaScript behaves differently from the benchmark JavaScript in the sense that hot spots rarely exist. This would lower the reuse ratio of the compiled machine code, making the compilation overhead higher than its benefit. This is especially true for a JavaScript engine which compiles all executed functions at their first invocation, as the SFX engine in the WebKit. In order to overcome this problem, we introduce selective compilation to the SFX engine so as to compile only hot functions detected during interpretation. This reduces the slowdown of the SFX for web page JavaScript, while accelerating JavaScript benchmarks. However, selective compilation for web page JavaScript shows a different behavior from other environment, and we discuss it.
引用
收藏
页码:5 / 13
页数:9
相关论文
共 50 条
  • [21] Just-In-Time Defect Prediction on Java']JavaScript Projects: A Replication Study
    Ni, Chao
    Xia, Xin
    Lo, David
    Yang, Xiaohu
    Hassan, Ahmed E.
    [J]. ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2022, 31 (04)
  • [22] SmilesDrawer: Parsing and Drawing SMILES-Encoded Molecular Structures Using Client-Side Java']JavaScript
    Probst, Daniel
    Reymond, Jean-Louis
    [J]. JOURNAL OF CHEMICAL INFORMATION AND MODELING, 2018, 58 (01) : 1 - 7
  • [23] Client-side Mobile Visual Search
    Hartl, Andreas
    Schmalstieg, Dieter
    Reitmayr, Gerhard
    [J]. PROCEEDINGS OF THE 2014 9TH INTERNATIONAL CONFERENCE ON COMPUTER VISION, THEORY AND APPLICATIONS (VISAPP 2014), VOL 3, 2014, : 125 - 132
  • [24] Reusable Client-Side Java']JavaScript Modules for Immersive Web-Based Real-Time Collaborative Neuroimage Visualization
    Bernal-Rusiel, Jorge L.
    Rannou, Nicolas
    Gollub, Randy L.
    Pieper, Steve
    Murphy, Shawn
    Robertson, Richard
    Grant, Patricia E.
    Pienaar, Rudolph
    [J]. FRONTIERS IN NEUROINFORMATICS, 2017, 11
  • [25] DETECTING SERVER-SIDE ENDPOINTS IN WEB APPLICATIONS BASED ON STATIC ANALYSIS OF CLIENT-SIDE Java']JavaScript CODE
    Sigalov, D. A.
    Khashaev, A. A.
    Gamayunov, D. Yu.
    [J]. PRIKLADNAYA DISKRETNAYA MATEMATIKA, 2021, (53): : 32 - 54
  • [26] Code size and performance optimization for mobile JavaScript just-in-time compiler
    Lee, Seong-Won
    Moon, Soo-Mook
    Jung, Won-Ki
    Oh, Jin-Seok
    Oh, Hyeong-Seok
    [J]. Proceedings - Annual Workshop on Interaction between Compilers and Computer Architectures, INTERACT, 2010,
  • [27] Efficient and precise dynamic slicing for client-side Javascript programs
    Ye, Jiabin
    Zhang, Cheng
    Ma, Lei
    Yu, Haibo
    Zhao, Jianjun
    [J]. 2016 IEEE 23rd International Conference on Software Analysis, Evolution, and Reengineering, SANER 2016, 2016, 1 : 449 - 459
  • [28] JS']JSand: Complete Client-Side Sandboxing of Third-Party Java']JavaScript without Browser Modifications
    Agten, Pieter
    Van Acker, Steven
    Brondsema, Yoran
    Phung, Phu H.
    Desmet, Lieven
    Piessens, Frank
    [J]. 28TH ANNUAL COMPUTER SECURITY APPLICATIONS CONFERENCE (ACSAC 2012), 2012, : 1 - 10
  • [29] Work-in-Progress: Advanced Ahead-of-Time Compilation for Java']JavaScript Engine
    Park, HyukWoo
    Kim, SungKook
    Moon, Soo-Mook
    [J]. 2017 INTERNATIONAL CONFERENCE ON COMPILERS, ARCHITECTURES AND SYNTHESIS FOR EMBEDDED SYSTEMS (CASES), 2017,
  • [30] Quantum simulation with just-in-time compilation
    Efthymiou, Stavros
    Lazzarin, Marco
    Pasquale, Andrea
    Carrazza, Stefano
    [J]. QUANTUM, 2022, 6