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

Function test

deps/v8/test/mjsunit/compiler/mul-div-52bit.js:48–61  ·  view source on GitHub ↗
(fn, a, b, sets)

Source from the content-addressed store, hash-verified

46}
47
48function test(fn, a, b, sets) {
49 %PrepareFunctionForOptimization(fn);
50 const expected = fn(a, b);
51 fn(1, 2);
52 fn(0, 0);
53 %OptimizeFunctionOnNextCall(fn);
54 const actual = fn(a, b);
55
56 assertEquals(expected, actual);
57
58 sets.forEach(function(set, i) {
59 assertEquals(set.expected, fn(set.a, set.b), fn.name + ', set #' + i);
60 });
61}
62
63test(mul, 0x3ffffff, 0x3ffffff, [
64 { a: 0, b: 0, expected: 0 },

Callers 1

mul-div-52bit.jsFile · 0.70

Calls 3

assertEqualsFunction · 0.70
forEachMethod · 0.65
fnFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…