-
Install
jsvu. I use V8 for debug but you can use whatever engine you need. Check documentation for more info. -
If you on Mac then install
gnu-timeutility:brew install gnu-time. If you on Linux then go tov8.shand replacegtimewith/usr/bin/time
Run sh v8.sh file.js to execute file.js with V8 engine using flags listed in v8.sh. This will generate a bytecode for each function that prefixed with bc__*. Natives syntax allowed.