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

Function lazyDeopt

deps/v8/test/mjsunit/optimized-filter.js:138–150  ·  view source on GitHub ↗
(deopt)

Source from the content-addressed store, hash-verified

136(function() {
137 var result = 0;
138 var lazyDeopt = function(deopt) {
139 var b = [1,2,3];
140 var callback = function(v,i,o) {
141 result += i;
142 if (i == 1 && deopt) {
143 %DeoptimizeFunction(lazyDeopt);
144 }
145 gc(); gc();
146 return true;
147 };
148 %NeverOptimizeFunction(callback);
149 b.filter(callback);
150 };
151 %PrepareFunctionForOptimization(lazyDeopt);
152 lazyDeopt();
153 lazyDeopt();

Callers 1

Calls 2

filterMethod · 0.65
assertEqualsFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…