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

Function test

deps/v8/test/mjsunit/maglev/math-max-float64-non-eager-inlined-const.js:50–56  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

48%PrepareFunctionForOptimization(getNull);
49
50function test(f) {
51 %PrepareFunctionForOptimization(f);
52 f();
53 %OptimizeMaglevOnNextCall(f);
54 f();
55 assertTrue(isMaglevved(f));
56}
57
58function testDoubles() {
59 assertEquals(6.2, Math.max(getDouble(), 6.2));

Calls 2

fFunction · 0.70
assertTrueFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…