Understanding Chrome V8 — Chapter 4: Scanner, Token generationby@huidou

Understanding Chrome V8 — Chapter 4: Scanner, Token generation

tldt arrow
Read on Terminal Reader🖨️

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

灰豆

About @huidou
LEARN MORE ABOUT @HUIDOU'S EXPERTISE AND PLACE ON THE INTERNET.
react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa