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

Build a basic UI for uploading data to S3 using AWS Amplify

GraphQL — Part 2

React Native Workshop

#constructor in java

What Is Typescript and How It Works

[Leetcode] Training day-003

Rap Lyrics in Javascript

Deploying a Node.js + PostgreSQL app to Heroku

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

How to Remove All Spaces from a String in JavaScript

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

React developer roadmap 2022

CORS (Cross-Origin Resource Sharing) Made Easy!