diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-06-12 09:09:53 +0000 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-06-12 09:09:53 +0000 |
commit | 93ce7c7372b20f6e6c6778f9c196b723a1df27a8 (patch) | |
tree | 683b692e58dbff96356fa5c3907036c0230fd82b /js/src/jit/Lowering.cpp | |
parent | e95089d84ac71276bd059e52293ab42c2259d89e (diff) | |
download | UXP-93ce7c7372b20f6e6c6778f9c196b723a1df27a8.tar UXP-93ce7c7372b20f6e6c6778f9c196b723a1df27a8.tar.gz UXP-93ce7c7372b20f6e6c6778f9c196b723a1df27a8.tar.lz UXP-93ce7c7372b20f6e6c6778f9c196b723a1df27a8.tar.xz UXP-93ce7c7372b20f6e6c6778f9c196b723a1df27a8.zip |
Remove unused LIR temp register for unboxed arrays.
Diffstat (limited to 'js/src/jit/Lowering.cpp')
-rw-r--r-- | js/src/jit/Lowering.cpp | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/js/src/jit/Lowering.cpp b/js/src/jit/Lowering.cpp index e185b5746..68417138b 100644 --- a/js/src/jit/Lowering.cpp +++ b/js/src/jit/Lowering.cpp @@ -3137,20 +3137,16 @@ LIRGenerator::visitStoreElementHole(MStoreElementHole* ins) const LUse elements = useRegister(ins->elements()); const LAllocation index = useRegisterOrConstant(ins->index()); - // Use a temp register when adding new elements to unboxed arrays. - LDefinition tempDef = LDefinition::BogusTemp(); - LInstruction* lir; switch (ins->value()->type()) { case MIRType::Value: - lir = new(alloc()) LStoreElementHoleV(object, elements, index, useBox(ins->value()), - tempDef); + lir = new(alloc()) LStoreElementHoleV(object, elements, index, useBox(ins->value())); break; default: { const LAllocation value = useRegisterOrNonDoubleConstant(ins->value()); - lir = new(alloc()) LStoreElementHoleT(object, elements, index, value, tempDef); + lir = new(alloc()) LStoreElementHoleT(object, elements, index, value); break; } } @@ -3169,18 +3165,14 @@ LIRGenerator::visitFallibleStoreElement(MFallibleStoreElement* ins) const LUse elements = useRegister(ins->elements()); const LAllocation index = useRegisterOrConstant(ins->index()); - // Use a temp register when adding new elements to unboxed arrays. - LDefinition tempDef = LDefinition::BogusTemp(); - LInstruction* lir; switch (ins->value()->type()) { case MIRType::Value: - lir = new(alloc()) LFallibleStoreElementV(object, elements, index, useBox(ins->value()), - tempDef); + lir = new(alloc()) LFallibleStoreElementV(object, elements, index, useBox(ins->value())); break; default: const LAllocation value = useRegisterOrNonDoubleConstant(ins->value()); - lir = new(alloc()) LFallibleStoreElementT(object, elements, index, value, tempDef); + lir = new(alloc()) LFallibleStoreElementT(object, elements, index, value); break; } |