Skip to content

lbwa/v8-reference

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

V8 Reference

Online

This project is an API reference for Google's open-source v8 JavaScript engine.

Install

  1. Fetch the latest version v8 source code:

    $ git submodule init
    $ git submodule foreach git pull
  2. Download doxygen binaries into doxygen directory.

  3. Run command for generating documentations:

    $ ./doxygen/doxygen.exe
  4. Done. All output HTML files are in the docs directory.

Core components

Mental model

Recommend: You don't know JS yet - compiling code

JavaScript is in fact parsed/compiled in a separate phase before execution begins. Scope is primarily determined during compilation.

In class compiler theory, a program is processed by a compiler in three basic stages:

  1. Tokenizing/Lexing: breaking up a string of characters into meaningful (to the language) chunks, called tokens.

  2. Parsing: taking a stream(array) of tokens and turning it init a tree of nested elements. This is called an abstract syntax tree(abbr, AST).

  3. Code generation: taking an AST and turning it into executable code.

Compiler pipeline

related

  • baseline compiler(as an interpreter) is called Ignition

  • optimizing compiler is called TurboFan.

Further readings

Articles

Videos

About

Based on header files from source code

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages