commit 9c8c4d71524e160245b5cb504f47367b55c4a659
parent 2175ceb316818146a667effbe5ce677410792c2a
Author: Jan de Mooij <jdemooij@mozilla.com>
Date: Fri, 12 Dec 2025 10:35:53 +0000
Bug 2005479 part 2 - Use generate_lir: true for MRandom. r=iain
The MIR has `possibly_calls: true` but this instruction no longer does a call.
Differential Revision: https://phabricator.services.mozilla.com/D275980
Diffstat:
2 files changed, 3 insertions(+), 8 deletions(-)
diff --git a/js/src/jit/LIROps.yaml b/js/src/jit/LIROps.yaml
@@ -3697,13 +3697,6 @@
num_temps: 1
call_instruction: true
-# Math.random()
-- name: Random
- result_type: WordSized
- num_temps: 1
- num_temps64: 2
- mir_op: true
-
- name: CheckObjCoercible
operands:
value: BoxedValue
diff --git a/js/src/jit/MIROps.yaml b/js/src/jit/MIROps.yaml
@@ -1009,10 +1009,12 @@
- name: Random
result_type: Double
alias_set: custom
- possibly_calls: true
compute_range: custom
can_recover: custom
clone: true
+ generate_lir: true
+ lir_temps: 1
+ lir_temps64: 2
- name: Sign
gen_boilerplate: false