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

Function test

deps/v8/test/mjsunit/maglev/math-max-float64-same-non-eager-inlining.js:22–28  ·  view source on GitHub ↗
(f, optimizedAtEnd = true)

Source from the content-addressed store, hash-verified

20%PrepareFunctionForOptimization(getObject);
21
22function test(f, optimizedAtEnd = true) {
23 %PrepareFunctionForOptimization(f);
24 f();
25 %OptimizeMaglevOnNextCall(f);
26 f();
27 assertEquals(optimizedAtEnd, isMaglevved(f));
28}
29
30function testDouble() {
31 assertEquals(5.5, Math.max(getDouble(), getDouble()));

Calls 2

fFunction · 0.70
assertEqualsFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…