MCPcopy Create free account
hub / github.com/nodejs/node / MyFunction

Function MyFunction

deps/v8/test/mjsunit/closures.js:35–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33
34function test(n) {
35 function MyFunction() {
36 var result = n * 2 + arguments.length;
37 return result;
38 };
39 %PrepareFunctionForOptimization(MyFunction);
40 for (var i = 0; i < 5; ++i) MyFunction();
41 %OptimizeFunctionOnNextCall(MyFunction);

Callers 1

testFunction · 0.85

Calls

no outgoing calls

Tested by 1

testFunction · 0.68