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

Function eagerDeoptInCalled

deps/v8/test/mjsunit/optimized-foreach.js:29–37  ·  view source on GitHub ↗
(deopt)

Source from the content-addressed store, hash-verified

27(function() {
28var result = 0;
29var eagerDeoptInCalled = function(deopt) {
30 var sum = function(v, i, o) {
31 result += v;
32 if (i == 13 && deopt) {
33 a.abc = 25;
34 }
35 };
36 a.forEach(sum);
37};
38%PrepareFunctionForOptimization(eagerDeoptInCalled);
39eagerDeoptInCalled();
40eagerDeoptInCalled();

Callers 1

Calls 1

forEachMethod · 0.65

Tested by

no test coverage detected