Inside JavaScript Engines, Part 1: Parsing

Part 1: Parsing

Major engines
V8 compilation pipeline
SpiderMonkey compilation pipeline
JavaScriptCore compilation pipeline

Honorable mentions:

What is a compiler? What is an interpreter? Theoretical part

A closer look at JavaScript Analysis step by the example of Chrome’s V8

V8’s newest compilation pipeline
Analysis step
const someVariable1 = 'example1';
const some_variable$ = 'example2';

Short Conclusion

Parsing in V8

Optimizing IIFEs

IIFE example

The example of Parsed code

Sum of array
AST from JS code
d8 — print-ast reduce.js > reduce-ast.txt

A closer look at SpiderMonkey’s parser

JSC’s Lexer and Parser

Conclusion: Parsing step

I found this tweet interesting!

--

--

--

I'm Software Engineer and Software Development Lead, currently living in Munich, Germany

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Deconstructing the Hemingway App

How To Build Simple CRUD RESTful API With NodeJS, ExpressJS And MongoDB in 2022

Built practo.com Clone

Avoid Nightmares — NSFW JS

Describe one thing you’re learning in class today.

Tricks For New Developer Of JavaScript

Move to the Right, and then the Left, Maybe

React Component’s Lifecycle

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Yan Hulyi

Yan Hulyi

I'm Software Engineer and Software Development Lead, currently living in Munich, Germany

More from Medium

React developer roadmap 2022

Interviewer: Can You Implement a JavaScript Template Engine? Me: Crap…

4 New JavaScript Features You Might Have Missed

10 Code Challenges to Master Promise.then and Promise.catch