diff options
author | Jiaxun Yang <jiaxun.yang@flygoat.com> | 2020-05-12 12:40:12 +0800 |
---|---|---|
committer | Jiaxun Yang <jiaxun.yang@flygoat.com> | 2020-05-14 16:31:58 +0800 |
commit | 4e8c369b22ccd02bd729f53f3f27247316c2c91a (patch) | |
tree | 326a6df6b6703ba010b0d562858266678a6857f3 /js/src | |
parent | 55897f06c0b216123c80fd53f1a827cb44d63654 (diff) | |
download | UXP-4e8c369b22ccd02bd729f53f3f27247316c2c91a.tar UXP-4e8c369b22ccd02bd729f53f3f27247316c2c91a.tar.gz UXP-4e8c369b22ccd02bd729f53f3f27247316c2c91a.tar.lz UXP-4e8c369b22ccd02bd729f53f3f27247316c2c91a.tar.xz UXP-4e8c369b22ccd02bd729f53f3f27247316c2c91a.zip |
Bug 1424978 - IonMonkey: MIPS64: Fix boxValue function
Tag: #1542
Diffstat (limited to 'js/src')
-rw-r--r-- | js/src/jit/mips64/MacroAssembler-mips64.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/js/src/jit/mips64/MacroAssembler-mips64.h b/js/src/jit/mips64/MacroAssembler-mips64.h index 027ef4063..4991c264f 100644 --- a/js/src/jit/mips64/MacroAssembler-mips64.h +++ b/js/src/jit/mips64/MacroAssembler-mips64.h @@ -470,7 +470,12 @@ class MacroAssemblerMIPS64Compat : public MacroAssemblerMIPS64 JSValueTag tag = (JSValueTag)JSVAL_TYPE_TO_TAG(type); ma_li(dest, Imm32(tag)); ma_dsll(dest, dest, Imm32(JSVAL_TAG_SHIFT)); - ma_dins(dest, src, Imm32(0), Imm32(JSVAL_TAG_SHIFT)); + + if (type == JSVAL_TYPE_INT32 || type == JSVAL_TYPE_BOOLEAN) { + ma_dins(dest, src, Imm32(0), Imm32(32)); + } else { + ma_dins(dest, src, Imm32(0), Imm32(JSVAL_TAG_SHIFT)); + } } void storeValue(ValueOperand val, Operand dst); |