diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-03-18 13:31:19 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-04-14 13:10:09 +0200 |
commit | e7514afc7c13516cdd56e8ffba4399c7c1c974ba (patch) | |
tree | edf1d720778bf9528305cc67f537c4515d1b3082 /js/src/jit/Lowering.cpp | |
parent | 4adf0d09f770fb6b7211c1f4a262538cac68135e (diff) | |
download | UXP-e7514afc7c13516cdd56e8ffba4399c7c1c974ba.tar UXP-e7514afc7c13516cdd56e8ffba4399c7c1c974ba.tar.gz UXP-e7514afc7c13516cdd56e8ffba4399c7c1c974ba.tar.lz UXP-e7514afc7c13516cdd56e8ffba4399c7c1c974ba.tar.xz UXP-e7514afc7c13516cdd56e8ffba4399c7c1c974ba.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.cpp | 11 |
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 |