summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/warp/small-inlinable-builtins.js
blob: d346894f6acaf0d3cd0e3ca6d0fb5618a10646b6 (plain)
1
2
3
4
5
6
7
8
9
10
// Ensure certain self-hosted built-in functions are small enough to be inlinable.

assertEq(isSmallFunction(isFinite), true);
assertEq(isSmallFunction(isNaN), true);

assertEq(isSmallFunction(Number.isFinite), true);
assertEq(isSmallFunction(Number.isNaN), true);

assertEq(isSmallFunction(Number.isInteger), true);
assertEq(isSmallFunction(Number.isSafeInteger), true);