tor-browser

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

baseline-joinreg.js (715B)


      1 // Bug 1322288 is about the floating join register not being reserved properly
      2 // in the presence of boolean evaluation for control.  The situation is that a
      3 // conditional branch passes a floating point value to the join point; the join register
      4 // must be available when it does that, but could have been allocated to the operands of
      5 // the conditional expression of the control flow.
      6 //
      7 // This test is white-box: it depends on the floating join reg being among the first
      8 // floating registers to be allocated.
      9 
     10 wasmEvalText(`
     11 (module
     12 (func $run
     13  (drop (block (result f64)
     14   (drop (br_if 0 (f64.const 1) (f64.eq (f64.const 1) (f64.const 0))))
     15   (drop (br 0 (f64.const 2))))))
     16 (export "run" (func $run)))`);