MCPcopy Index your code
hub / github.com/nodejs/node / lazyDeopt

Function lazyDeopt

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

Source from the content-addressed store, hash-verified

91(function() {
92 var result = 0;
93 var lazyDeopt = function(deopt) {
94 var b = [1,2,3];
95 var callback = function(v,i,o) {
96 result += i;
97 if (i == 1 && deopt) {
98 %DeoptimizeFunction(lazyDeopt);
99 }
100 gc(); gc();
101 return v;
102 };
103 %EnsureFeedbackVectorForFunction(callback);
104 %NeverOptimizeFunction(callback);
105 b.map(callback);
106 };
107 %PrepareFunctionForOptimization(lazyDeopt);
108 lazyDeopt();
109 lazyDeopt();

Calls 2

mapMethod · 0.65
assertEqualsFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…