// Print the optimized function's machine code, then let the native debugger // install a breakpoint before the next invocation. No V8 inspector required. function jitWork(n) { let sum = 0; for (let i = 0; i < n; i++) sum = (sum + (i ^ n)) | 0; return sum; } %PrepareFunctionForOptimization(jitWork); jitWork(10); jitWork(20); %OptimizeFunctionOnNextCall(jitWork); jitWork(30); %SystemBreak(); print(jitWork(10000));