summaryrefslogtreecommitdiffstats
path: root/js/src/jit/Lowering.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2020-03-18 13:31:19 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-03-18 13:31:19 +0100
commit54f44bb628df675f9359b588a0ef628b7c783f6a (patch)
tree1fd8f69e27a02f0b8f71828bcab551b7103ad1a0 /js/src/jit/Lowering.cpp
parent22fc2203541d3136b164a0ca138a851167ada760 (diff)
downloadUXP-54f44bb628df675f9359b588a0ef628b7c783f6a.tar
UXP-54f44bb628df675f9359b588a0ef628b7c783f6a.tar.gz
UXP-54f44bb628df675f9359b588a0ef628b7c783f6a.tar.lz
UXP-54f44bb628df675f9359b588a0ef628b7c783f6a.tar.xz
UXP-54f44bb628df675f9359b588a0ef628b7c783f6a.zip
[js] Remove pointless MakeMRegExpHoistable optimization.
It's a lot of code with no measurable effect.
Diffstat (limited to 'js/src/jit/Lowering.cpp')
-rw-r--r--js/src/jit/Lowering.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/js/src/jit/Lowering.cpp b/js/src/jit/Lowering.cpp
index 19266bae8..f9b0b2157 100644
--- a/js/src/jit/Lowering.cpp
+++ b/js/src/jit/Lowering.cpp
@@ -2297,14 +2297,9 @@ LIRGenerator::visitToObjectOrNull(MToObjectOrNull* ins)
void
LIRGenerator::visitRegExp(MRegExp* ins)
{
- if (ins->mustClone()) {
- LRegExp* lir = new(alloc()) LRegExp();
- defineReturn(lir, ins);
- assignSafepoint(lir, ins);
- } else {
- RegExpObject* source = ins->source();
- define(new(alloc()) LPointer(source), ins);
- }
+ LRegExp* lir = new(alloc()) LRegExp();
+ defineReturn(lir, ins);
+ assignSafepoint(lir, ins);
}
void