diff options
author | Jiaxun Yang <jiaxun.yang@flygoat.com> | 2020-05-12 12:40:14 +0800 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-05-20 14:03:12 +0000 |
commit | be954fca7288d4e743b279272505f63544e6ec8d (patch) | |
tree | 9933696e76af63c55130760fb7e6ffddb2193300 /js/src/jit/mips-shared/Assembler-mips-shared.h | |
parent | f411e027165e7d95a6119d8dabbc15e4f3a206e8 (diff) | |
download | UXP-be954fca7288d4e743b279272505f63544e6ec8d.tar UXP-be954fca7288d4e743b279272505f63544e6ec8d.tar.gz UXP-be954fca7288d4e743b279272505f63544e6ec8d.tar.lz UXP-be954fca7288d4e743b279272505f63544e6ec8d.tar.xz UXP-be954fca7288d4e743b279272505f63544e6ec8d.zip |
Bug 1412030 - [MIPS] Emit wasm memory access information
Tag: #1542
Diffstat (limited to 'js/src/jit/mips-shared/Assembler-mips-shared.h')
-rw-r--r-- | js/src/jit/mips-shared/Assembler-mips-shared.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/js/src/jit/mips-shared/Assembler-mips-shared.h b/js/src/jit/mips-shared/Assembler-mips-shared.h index 4cfb30117..1640fdafc 100644 --- a/js/src/jit/mips-shared/Assembler-mips-shared.h +++ b/js/src/jit/mips-shared/Assembler-mips-shared.h @@ -1550,7 +1550,15 @@ class InstGS : public Instruction inline bool IsUnaligned(const wasm::MemoryAccessDesc& access) { - return access.align() && access.align() < access.byteSize(); + if (!access.align()) + return false; + +#ifdef JS_CODEGEN_MIPS32 + if (access.type() == Scalar::Int64 && access.align() >= 4) + return false; +#endif + + return access.align() < access.byteSize(); } } // namespace jit |