Let’s Understand Chrome V8 — Chapter 5: Compilation Parserby@huidou
411 reads
411 reads

Let’s Understand Chrome V8 — Chapter 5: Compilation Parser

by 灰豆3mAugust 16th, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

In this article, we’ll talk about the source code and important data structures of V8’s JS parser. In V8, the parser is the next stage of the scanner, and the token output by the scanner is the input of the parser. During compiling JS, the scanner will frequently call the scanner to generate the token word. In the third line of code, peek() takes out the type of the Token::FUNCTION, so the type obtained by the peek is Token::FCTION. In our case, we need to determine which FunctionKind the function is.
featured image - Let’s Understand Chrome V8 — Chapter 5: Compilation Parser
灰豆 HackerNoon profile picture
灰豆

灰豆

@huidou

a big fan of chrome V8

About @huidou
LEARN MORE ABOUT @HUIDOU'S
EXPERTISE AND PLACE ON THE INTERNET.

Share Your Thoughts

About Author

灰豆 HackerNoon profile picture
灰豆@huidou
a big fan of chrome V8

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
L O A D I N G
. . . comments & more!