Prefer SignExtendWord instead of ExtractBits and use more pseudo-instructions
Categories
(Core :: JavaScript Engine: JIT, enhancement)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox153 | --- | fixed |
People
(Reporter: anba, Assigned: anba)
References
(Blocks 1 open bug)
Details
Attachments
(7 external files)
| Assignee | ||
Comment 1•5 months ago
|
||
| Assignee | ||
Comment 2•5 months ago
|
||
This matches ARM64 and requires only a single instruction.
| Assignee | ||
Comment 3•5 months ago
|
||
This matches ARM32 and only requires a single instruction. Also update the
Address and BaseIndex overloads for consistency.
Similar to part 2.
| Assignee | ||
Comment 4•5 months ago
|
||
And rename rt to rd to match the normal conventions for riscv code.
Also removes an unused ExtractBits overload.
| Assignee | ||
Comment 5•5 months ago
|
||
Move nop to AssemblerRISCVI to allow using in that class.
| Assignee | ||
Comment 6•5 months ago
|
||
mv(rd, rs) is the pseudo-instruction for addi(rd, rs, 0).
| Assignee | ||
Comment 7•5 months ago
|
||
Prefer the pseudo-instructions because they make the code more readable. Also
use the NegateBoolean helper in more cases.
https://hg.mozilla.org/mozilla-central/rev/ac6bb0ab9587
https://hg.mozilla.org/mozilla-central/rev/77fe005d91ec
https://hg.mozilla.org/mozilla-central/rev/24b1683d2ae2
https://hg.mozilla.org/mozilla-central/rev/14b48ecde953
https://hg.mozilla.org/mozilla-central/rev/b874d4a87f9d
https://hg.mozilla.org/mozilla-central/rev/1df15b833e28
https://hg.mozilla.org/mozilla-central/rev/14645c33b406
Updated•4 months ago
|
Description
•