Created
October 27, 2021 06:25
-
-
Save jehna/bc92c46f2b05b9ea59aedb66c6afe023 to your computer and use it in GitHub Desktop.
Print TurboFan optimized machine code of a function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Run with node --print-opt-code --allow-natives-syntax --print-code index.js | |
function plus(a, b) { | |
return a + b | |
} | |
plus(1, 2); | |
%OptimizeFunctionOnNextCall(plus); | |
plus(2, 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment