NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Snapshot-Based Migration of ES6 JavaScript

Yong Hwan Yoo, Soo-Mook MoonICWE 2021

Abstract

Recently, researches have proposed application (app) migration approaches for JavaScript programs to enable a non-breaking user experience across different devices. To migrate a stateful JavaScript app’s runtime, past studies have proposed snapshot-based techniques in which the app’s runtime state is profiled and serialized into a text form that can be restored back later. A common limitation of existing literature, however, is that they are based on old JavaScript specifications. Since major updates introduced by ECMASCript2015 (a.k.a. ES6), JavaScript supports various features that cannot be migrated correctly with existing methods. Some of these features are in fact heavily used in today’s real-world apps and thus greatly reduces the scope of previous works. In this paper, we analyze ES6 features such as block scopes, modules, and class syntax that were previously uncovered in app migration. We present an algorithm that enables migration of apps implemented with these new features. Based on the standards adopted in modern JavaScript engines, our approach serializes a running program into a scope tree and reorganizes it for snapshot code generation. We implement our idea on the open source V8 engine and experiment with complex benchmark programs of modern JavaScript. Results show that our approach correctly migrates 5 target programs between mobile devices. Our framework could migrate the most complex app of source code size 213 KB in less than 200 ms in a X86 laptop and 800 ms in an embedded ARM board.
BibTeX
@inproceedings{yoo2021snapshot,
  author = {Yong Hwan Yoo and Soo-Mook Moon},
  title = {{Snapshot-Based Migration of ES6 JavaScript}},
  booktitle = {ICWE},
  year = {2021},
  url = {https://openreview.net/forum?id=Zc1Wx3_Uw3},
}

Loading related content...

Figure