tor-browser

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

no-fjcvtzs.js (480B)


      1 // |jit-test| --no-fjcvtzs; skip-if: !hasDisassembler() || !getBuildConfiguration("arm64") || !this.getJitCompilerOptions() || !getJitCompilerOptions()['ion.enable']
      2 
      3 function checkAssembly() {
      4  let output = disnative(f);
      5  if (/backend=ion/.test(output)) {
      6    assertEq(/fcvtzs/.test(output), true);
      7    assertEq(/fjcvtzs/.test(output), false);
      8  }
      9 }
     10 
     11 function f(x) {
     12  if (inIon()) {
     13    checkAssembly();
     14    return 0;
     15  }
     16  return x | 0;
     17 }
     18 
     19 let i = 1.5;
     20 while (f(i += 1)) {};