paint-brush
Understanding Chrome V8 — Chapter 4: Scanner, Token generationby@huidou
329 reads
329 reads

Understanding Chrome V8 — Chapter 4: Scanner, Token generation

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

Too Long; Didn't Read

V8_INLINE Token::Scanner::ScanSingleToken() is the start of scanning the token. We already know that c0_ has already pointed to the first character of the JS stream during initialization. The next step is to analyze whether the token is a keyword or an identifier. Figure 1 is the call stack of these methods, Figure 2 is the variable window, we can see that the one_byte_char is c0. Figure 3 shows that these eight characters are exactly the first string — — — function JsPrint.

People Mentioned

Mention Thumbnail

Coin Mentioned

Mention Thumbnail
featured image - Understanding Chrome V8 — Chapter 4: Scanner, Token generation
灰豆 HackerNoon profile picture
灰豆

灰豆

@huidou

a big fan of chrome V8

About @huidou
LEARN MORE ABOUT @HUIDOU'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

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