Node.js, how to see javascript machine codes
Did you know that you can see machine codes of javascript files with Node.js?
For example;
console.log('hello')Unoptimized machine codes;
node --print-code filename.js
Bytecodes;
node --print-bytecode filename.js
Optimized machine codes;
node --print-opt-code filname.js
Also, you can see it machine codes without using any files;
node --print-code --eval console.log('hello')