79399493

Date: 2025-01-30 10:11:05
Score: 1
Natty:
Report link

Javscript is nowdays a mix of interpreter and compiled lannguage , it's called JIT compilation and let me tell you what's this and how our JS engine executes code.

so when you write the code , js engine tokenizes the code and converts it to AST ( a tree like structure ) then it goes to Profiler ,Profiler's main work is that check for the code that runs repetitively like a loop or a function which is called many times and it takes that part of the code and throw it to TurboFan Compiler , turbofan's main job is that it optimize and compiled that portion of code into optimized binary and then run. and other parts of code runs interpreted by Ignition compiler which converts the code into ByteCode and runs.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: pradeep kumar