From 54f44bb628df675f9359b588a0ef628b7c783f6a Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Wed, 18 Mar 2020 13:31:19 +0100 Subject: [js] Remove pointless MakeMRegExpHoistable optimization. It's a lot of code with no measurable effect. --- js/src/jit/Lowering.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'js/src/jit/Lowering.cpp') 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 -- cgit v1.2.3