summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/warp/small-inlinable-builtins.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/warp/small-inlinable-builtins.js')
-rw-r--r--js/src/jit-test/tests/warp/small-inlinable-builtins.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/warp/small-inlinable-builtins.js b/js/src/jit-test/tests/warp/small-inlinable-builtins.js
new file mode 100644
index 0000000000..d346894f6a
--- /dev/null
+++ b/js/src/jit-test/tests/warp/small-inlinable-builtins.js
@@ -0,0 +1,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);