From d61fe3fa78cced3ddb9dbe092455332641e85c64 Mon Sep 17 00:00:00 2001 From: Thomas Barber Date: Thu, 20 Jun 2024 13:37:46 +0000 Subject: [PATCH] Foxhound: remove unnecessary bailout for StringTrim operations --- js/src/jit/CodeGenerator.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/js/src/jit/CodeGenerator.cpp b/js/src/jit/CodeGenerator.cpp index 7c3dfb76c462f..5ace8e088e0c6 100644 --- a/js/src/jit/CodeGenerator.cpp +++ b/js/src/jit/CodeGenerator.cpp @@ -13056,12 +13056,6 @@ void CodeGenerator::visitStringTrimStartIndex(LStringTrimStartIndex* lir) { Register string = ToRegister(lir->string()); Register output = ToRegister(lir->output()); - // TaintFox: if we detect a tainted string argument we bail out to the interpreter. - bailoutCmpPtr(Assembler::NotEqual, - Address(string, JSString::offsetOfTaint()), - ImmPtr(nullptr), - lir->snapshot()); - auto volatileRegs = liveVolatileRegs(lir); volatileRegs.takeUnchecked(output); @@ -13081,12 +13075,6 @@ void CodeGenerator::visitStringTrimEndIndex(LStringTrimEndIndex* lir) { Register start = ToRegister(lir->start()); Register output = ToRegister(lir->output()); - // TaintFox: if we detect a tainted string argument we bail out to the interpreter. - bailoutCmpPtr(Assembler::NotEqual, - Address(string, JSString::offsetOfTaint()), - ImmPtr(nullptr), - lir->snapshot()); - auto volatileRegs = liveVolatileRegs(lir); volatileRegs.takeUnchecked(output);