mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-11-01 03:57:30 +09:00
Bug 1330942 - move MemoryAccessDesc::isUnaligned to the ARM/MIPS platform layer
Tag: #1542
This commit is contained in:
parent
9441c06a56
commit
ccced44f81
10 changed files with 40 additions and 21 deletions
|
|
@ -171,6 +171,18 @@ ABIArgGenerator::next(MIRType type)
|
|||
return softNext(type);
|
||||
}
|
||||
|
||||
bool
|
||||
js::jit::IsUnaligned(const wasm::MemoryAccessDesc& access)
|
||||
{
|
||||
if (!access.align())
|
||||
return false;
|
||||
|
||||
if (access.type() == Scalar::Float64 && access.align() >= 4)
|
||||
return false;
|
||||
|
||||
return access.align() < access.byteSize();
|
||||
}
|
||||
|
||||
// Encode a standard register when it is being used as src1, the dest, and an
|
||||
// extra register. These should never be called with an InvalidReg.
|
||||
uint32_t
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue