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

Function testCos

deps/v8/test/mjsunit/maglev/optimize-float64-ieee754.js:51–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49testCbrt();
50
51function testCos() {
52 function f() { return Math.cos(Math.PI); }
53 %PrepareFunctionForOptimization(f);
54 f();
55 %OptimizeMaglevOnNextCall(f);
56 assertEquals(-1.0, f());
57}
58testCos();
59
60function testExp() {

Callers 1

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…