Align RISCV64 label tracking with the ARM64 implementation
Categories
(Core :: JavaScript Engine: JIT, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox154 | --- | fixed |
People
(Reporter: anba, Assigned: anba)
References
(Blocks 1 open bug)
Details
Attachments
(8 external files)
Change the RISCV64 code which tracks unbound labels to match the ARM64 implementation.
| Assignee | ||
Comment 1•5 months ago
|
||
Replacing the bnez(Register,Label*) call in RoundHelper allows to remove all
branch methods which take a Label* argument. This ensures all branches are
constructed through MacroAssemblerRiscv64, which takes care to properly compute
the correct offsets and disallow constant pools when necessary.
| Assignee | ||
Comment 2•5 months ago
|
||
These case statements were copied from V8, but don't apply to our implementation.
Drive-by change:
- Inline
UNIMPLEMENTED_RISCV
| Assignee | ||
Comment 3•5 months ago
|
||
This avoids duplicating the same code in two methods.
| Assignee | ||
Comment 4•5 months ago
|
||
Rename the methods to simply branchOffset. Short range branches take an additional
OffsetSize parameter to describe the kind of short range branch.
| Assignee | ||
Comment 5•5 months ago
|
||
| Assignee | ||
Comment 6•5 months ago
|
||
The previous code always executed the MOZ_CRASH.
| Assignee | ||
Comment 7•5 months ago
|
||
| Assignee | ||
Comment 8•5 months ago
|
||
Branches are now only encoded in the linked list through the Label, exactly
like how the ARM64 code works.
Comment 10•5 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/3e2ab52a689d
https://hg.mozilla.org/mozilla-central/rev/ee6b9295f198
https://hg.mozilla.org/mozilla-central/rev/345da95f3b1d
https://hg.mozilla.org/mozilla-central/rev/c6c1e7e02a39
https://hg.mozilla.org/mozilla-central/rev/c7dc472a0f1c
https://hg.mozilla.org/mozilla-central/rev/93c640237d19
https://hg.mozilla.org/mozilla-central/rev/76c33e55dace
https://hg.mozilla.org/mozilla-central/rev/b0ad2052a167
Updated•3 months ago
|
Description
•