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

Function eagerDeoptInCalled

deps/v8/test/mjsunit/optimized-map.js:20–30  ·  view source on GitHub ↗
(deopt)

Source from the content-addressed store, hash-verified

18(function() {
19 var result = 0;
20 var eagerDeoptInCalled = function(deopt) {
21 var callback = function(v,i,o) {
22 result += v;
23 if (i == 13 && deopt) {
24 a.abc = 25;
25 }
26 return v;
27 };
28 %EnsureFeedbackVectorForFunction(callback);
29 a.map(callback);
30 };
31 %PrepareFunctionForOptimization(eagerDeoptInCalled);
32 eagerDeoptInCalled();
33 eagerDeoptInCalled();

Calls 1

mapMethod · 0.65

Tested by

no test coverage detected