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

Function warmup

deps/v8/test/mjsunit/object-in-array.js:14–19  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

12const T2 = 'unexpected';
13
14function warmup(f) {
15 %PrepareFunctionForOptimization(f);
16 for (let i = 0; i < 10; i++) {
17 f();
18 }
19}
20
21function test(creator, getter, setter, expectedToken = T) {
22 // Warm up the creator function so there's feedback and the boilerplate

Callers 2

testFunction · 0.70
object-in-array.jsFile · 0.70

Calls 1

fFunction · 0.70

Tested by 1

testFunction · 0.56