Skip to content

Commit 9c540f2

Browse files
committed
1 parent c0d0c39 commit 9c540f2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

lib/Backend/GlobOptFields.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,9 +450,24 @@ GlobOpt::ProcessFieldKills(IR::Instr *instr, BVSparse<JitArenaAllocator> *bv, bo
450450
break;
451451

452452
case IR::JnHelperMethod::HelperRegExp_Exec:
453+
case IR::JnHelperMethod::HelperRegExp_ExecResultNotUsed:
454+
case IR::JnHelperMethod::HelperRegExp_ExecResultUsed:
455+
case IR::JnHelperMethod::HelperRegExp_ExecResultUsedAndMayBeTemp:
456+
case IR::JnHelperMethod::HelperRegExp_MatchResultNotUsed:
457+
case IR::JnHelperMethod::HelperRegExp_MatchResultUsed:
458+
case IR::JnHelperMethod::HelperRegExp_MatchResultUsedAndMayBeTemp:
459+
case IR::JnHelperMethod::HelperRegExp_ReplaceStringResultUsed:
460+
case IR::JnHelperMethod::HelperRegExp_ReplaceStringResultNotUsed:
461+
case IR::JnHelperMethod::HelperRegExp_SplitResultNotUsed:
462+
case IR::JnHelperMethod::HelperRegExp_SplitResultUsed:
463+
case IR::JnHelperMethod::HelperRegExp_SplitResultUsedAndMayBeTemp:
464+
case IR::JnHelperMethod::HelperRegExp_SymbolSearch:
453465
case IR::JnHelperMethod::HelperString_Match:
466+
case IR::JnHelperMethod::HelperString_Search:
467+
case IR::JnHelperMethod::HelperString_Split:
454468
case IR::JnHelperMethod::HelperString_Replace:
455469
// Consider: We may not need to kill all fields here.
470+
// We need to kill all the built-in properties that can be written, though, and there are a lot of those.
456471
this->KillAllFields(bv);
457472
break;
458473
}

0 commit comments

Comments
 (0)