What is IR?
Intermediate representation. It is bytecode generated by the interpreter from the AST.
Mention the steps that a JavaScript program goes through when executed
Source code -> AST -> IR -> Machine Code
The parser converts the source code into AST, the Ignition interpreter converts the AST into an IR and the TuboFan compiler converts the IR into machine code.
What is bytecode?
An abstraction of machine code. A form of instruction set designed for efficient execution by an interpreter. Also can be thought as an intermediate representation between the source code and the machine code.
What is the GEC?
Global Execution Context.
What is the FEC?
Function Execution Context.
Execution context phases
Memory creation phase and execution phase.
What happens during the memory creation phase?
What happens during the executing phase?
What is a literal?
A variable value written directly into the code.