tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 031fed8e8402285b4bd23e4808c050b2aa84b1dd
parent 0713bf6a06b43f7b164ee2c1cad56b94863923f8
Author: André Bargull <andre.bargull@gmail.com>
Date:   Mon, 20 Oct 2025 08:08:32 +0000

Bug 1993733 - Part 2: Fix profiling test for arm64. r=iain

This test didn't run in CI, so this bug went unnoticed for a long time.

Differential Revision: https://phabricator.services.mozilla.com/D268273

Diffstat:
Mjs/src/jit-test/tests/asm.js/testProfiling.js | 11+++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/js/src/jit-test/tests/asm.js/testProfiling.js b/js/src/jit-test/tests/asm.js/testProfiling.js @@ -4,6 +4,13 @@ load(libdir + "asm.js"); load(libdir + "asserts.js"); +var roundInstructions = []; + +// ARM64 doesn't call into the runtime for rounding instructions. +if (!getBuildConfiguration("arm64-simulator")) { + roundInstructions.push('ceil', 'floor'); +} + function checkSubSequence(got, expect) { var got_i = 0; @@ -112,7 +119,7 @@ function testBuiltinD2D(name) { assertStackContainsSeq(stacks, ">,f,>,N,f,>,f,>,>"); } } -for (name of ['sin', 'cos', 'tan', 'asin', 'acos', 'atan', 'ceil', 'floor', 'exp', 'log']) +for (name of ['sin', 'cos', 'tan', 'asin', 'acos', 'atan', 'exp', 'log', ...roundInstructions]) testBuiltinD2D(name); function testBuiltinF2F(name) { @@ -125,7 +132,7 @@ function testBuiltinF2F(name) { assertStackContainsSeq(stacks, ">,f,>,N,f,>,f,>,>"); } } -for (name of ['ceil', 'floor']) +for (name of roundInstructions) testBuiltinF2F(name); function testBuiltinDD2D(name) {