π» Research
V8 Turbolizer
V8 Turbolizer Install & Guide
Overview
- Turbolizer is a HTML-based tool that visualizes optimized code along the various phases of Turbofan's optimization pipeline, allowing easy navigation between source code, Turbofan IR graphs, scheduled IR nodes and generated assembly code.
Installation - Turbolizer
# recommend: Node.js 20 LTS
curl -sL https://deb.nodesource.com/setup_20.x | sudo sh -e
sudo apt install nodejs -y
cd <v8_path>/tools/turbolizer
npm install
npm run-script build
Use Turbolizer
// filename: test.js
function foo(){
var a = new ArrayBuffer(8);
}
for(let i=0; i<0x1000; i++){
foo();
}

cd <v8_path>/tools/turbolizer
python3 -m http.server 8000



Reference
- https://chromium.googlesource.com/v8/v8/+/refs/heads/main/tools/turbolizer/