mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-05 23:07:31 +09:00
[js] Remove pointless MakeMRegExpHoistable optimization.
It's a lot of code with no measurable effect.
This commit is contained in:
parent
7a9ab66aed
commit
bc6ac88559
6 changed files with 4 additions and 302 deletions
|
|
@ -8102,11 +8102,9 @@ class MDefFun
|
|||
class MRegExp : public MNullaryInstruction
|
||||
{
|
||||
CompilerGCPointer<RegExpObject*> source_;
|
||||
bool mustClone_;
|
||||
|
||||
MRegExp(CompilerConstraintList* constraints, RegExpObject* source)
|
||||
: source_(source),
|
||||
mustClone_(true)
|
||||
: source_(source)
|
||||
{
|
||||
setResultType(MIRType::Object);
|
||||
setResultTypeSet(MakeSingletonTypeSet(constraints, source));
|
||||
|
|
@ -8116,12 +8114,6 @@ class MRegExp : public MNullaryInstruction
|
|||
INSTRUCTION_HEADER(RegExp)
|
||||
TRIVIAL_NEW_WRAPPERS
|
||||
|
||||
void setDoNotClone() {
|
||||
mustClone_ = false;
|
||||
}
|
||||
bool mustClone() const {
|
||||
return mustClone_;
|
||||
}
|
||||
RegExpObject* source() const {
|
||||
return source_;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue