Tracing and a Javascript VM Increasing the Performance of Web 3.0 Mohammad Soryani Mazandaran...
-
Upload
thomasine-flynn -
Category
Documents
-
view
214 -
download
0
Transcript of Tracing and a Javascript VM Increasing the Performance of Web 3.0 Mohammad Soryani Mazandaran...
![Page 1: Tracing and a Javascript VM Increasing the Performance of Web 3.0 Mohammad Soryani Mazandaran University of Science and Technology Soryani@ustmb.ac.ir.](https://reader036.fdocuments.us/reader036/viewer/2022082711/56649eda5503460f94be8d7f/html5/thumbnails/1.jpg)
Tracing and a Javascript VM Increasing the Performance of Web 3.0
Mohammad SoryaniMazandaran University of Science and Technology
![Page 2: Tracing and a Javascript VM Increasing the Performance of Web 3.0 Mohammad Soryani Mazandaran University of Science and Technology Soryani@ustmb.ac.ir.](https://reader036.fdocuments.us/reader036/viewer/2022082711/56649eda5503460f94be8d7f/html5/thumbnails/2.jpg)
Tracing and a javascript VM 1
• Introduction • Tamarin-Tracing• HLL to x86 •Trace compilation• Side exits• Organizing Traces• Type specialization via traces• Results of evaluation
Outline
![Page 3: Tracing and a Javascript VM Increasing the Performance of Web 3.0 Mohammad Soryani Mazandaran University of Science and Technology Soryani@ustmb.ac.ir.](https://reader036.fdocuments.us/reader036/viewer/2022082711/56649eda5503460f94be8d7f/html5/thumbnails/3.jpg)
2
Introduction
-Client side programming is increasing
- Browsers are the best choice
- Javascript is powerful and supported in
all browsers
- Unfortunately has a low performance
Tracing and a javascript VM
![Page 4: Tracing and a Javascript VM Increasing the Performance of Web 3.0 Mohammad Soryani Mazandaran University of Science and Technology Soryani@ustmb.ac.ir.](https://reader036.fdocuments.us/reader036/viewer/2022082711/56649eda5503460f94be8d7f/html5/thumbnails/4.jpg)
3
Tamarin-Tracing
- An experimental java script virtual machine
- A Trace baced just in time compiler(JIT)
-Cooperation of Mozilla and Adobe
Tracing and a javascript VM
![Page 5: Tracing and a Javascript VM Increasing the Performance of Web 3.0 Mohammad Soryani Mazandaran University of Science and Technology Soryani@ustmb.ac.ir.](https://reader036.fdocuments.us/reader036/viewer/2022082711/56649eda5503460f94be8d7f/html5/thumbnails/5.jpg)
4
HLL To X86
Tracing and a javascript VM
![Page 6: Tracing and a Javascript VM Increasing the Performance of Web 3.0 Mohammad Soryani Mazandaran University of Science and Technology Soryani@ustmb.ac.ir.](https://reader036.fdocuments.us/reader036/viewer/2022082711/56649eda5503460f94be8d7f/html5/thumbnails/6.jpg)
5
Trace Compilation
Tracing and a javascript VM
![Page 7: Tracing and a Javascript VM Increasing the Performance of Web 3.0 Mohammad Soryani Mazandaran University of Science and Technology Soryani@ustmb.ac.ir.](https://reader036.fdocuments.us/reader036/viewer/2022082711/56649eda5503460f94be8d7f/html5/thumbnails/7.jpg)
6
Side Exits
Tracing and a javascript VM
![Page 8: Tracing and a Javascript VM Increasing the Performance of Web 3.0 Mohammad Soryani Mazandaran University of Science and Technology Soryani@ustmb.ac.ir.](https://reader036.fdocuments.us/reader036/viewer/2022082711/56649eda5503460f94be8d7f/html5/thumbnails/8.jpg)
7
Organizing Traces
Tracing and a javascript VM
![Page 9: Tracing and a Javascript VM Increasing the Performance of Web 3.0 Mohammad Soryani Mazandaran University of Science and Technology Soryani@ustmb.ac.ir.](https://reader036.fdocuments.us/reader036/viewer/2022082711/56649eda5503460f94be8d7f/html5/thumbnails/9.jpg)
8
Type Specialization
Tracing and a javascript VM
- dynamically typed languages are poor candidates for just-in-time compilation- Javascript is dynamically typed - The type of some objects don’t change during program execution - We try to compile javascript as a statically typed language by assuming this for some parts of code
![Page 10: Tracing and a Javascript VM Increasing the Performance of Web 3.0 Mohammad Soryani Mazandaran University of Science and Technology Soryani@ustmb.ac.ir.](https://reader036.fdocuments.us/reader036/viewer/2022082711/56649eda5503460f94be8d7f/html5/thumbnails/10.jpg)
9
Results of Evaluation
Tracing and a javascript VM
![Page 11: Tracing and a Javascript VM Increasing the Performance of Web 3.0 Mohammad Soryani Mazandaran University of Science and Technology Soryani@ustmb.ac.ir.](https://reader036.fdocuments.us/reader036/viewer/2022082711/56649eda5503460f94be8d7f/html5/thumbnails/11.jpg)
10
Results of Evaluation
Tracing and a javascript VM
![Page 12: Tracing and a Javascript VM Increasing the Performance of Web 3.0 Mohammad Soryani Mazandaran University of Science and Technology Soryani@ustmb.ac.ir.](https://reader036.fdocuments.us/reader036/viewer/2022082711/56649eda5503460f94be8d7f/html5/thumbnails/12.jpg)
11
Results of Evaluation
Tracing and a javascript VM
![Page 13: Tracing and a Javascript VM Increasing the Performance of Web 3.0 Mohammad Soryani Mazandaran University of Science and Technology Soryani@ustmb.ac.ir.](https://reader036.fdocuments.us/reader036/viewer/2022082711/56649eda5503460f94be8d7f/html5/thumbnails/13.jpg)
12
Results of Evaluation
Tracing and a javascript VM
![Page 14: Tracing and a Javascript VM Increasing the Performance of Web 3.0 Mohammad Soryani Mazandaran University of Science and Technology Soryani@ustmb.ac.ir.](https://reader036.fdocuments.us/reader036/viewer/2022082711/56649eda5503460f94be8d7f/html5/thumbnails/14.jpg)
13
References
- [1] Mason Chang, Edwin Smith, Rick Reitmaier, Michael Bebenita, Andreas Gal, Christian Wimmer, Brendan Eich, Michael Franz, “Tracing for Web 3.0”, Proceedings of the 2009 ACM SIGPLAN/SIGOPS international conference on Virtual execution environments , Washington, DC, USA, March 11-3, 2009.
Tracing and a javascript VM