Skip to content

Commit 2584068

Browse files
committed
Rename UsesCallfinallyThunks to UsesCallFinallyThunks
1 parent c71a8f9 commit 2584068

File tree

8 files changed

+26
-26
lines changed

8 files changed

+26
-26
lines changed

src/coreclr/jit/codegencommon.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ void CodeGen::genMarkLabelsForCodegen()
412412
case BBJ_CALLFINALLY:
413413
// The finally target itself will get marked by walking the EH table, below, and marking
414414
// all handler begins.
415-
if (compiler->UsesCallfinallyThunks())
415+
if (compiler->UsesCallFinallyThunks())
416416
{
417417
// For callfinally thunks, we need to mark the block following the callfinally/callfinallyret pair,
418418
// as that's needed for identifying the range of the "duplicate finally" region in EH data.
@@ -2242,7 +2242,7 @@ void CodeGen::genReportEH()
22422242
unsigned clonedFinallyCount = 0;
22432243

22442244
// Duplicate clauses are not used by NativeAOT ABI
2245-
if (compiler->UsesFunclets() && compiler->UsesCallfinallyThunks() && !isNativeAOT)
2245+
if (compiler->UsesFunclets() && compiler->UsesCallFinallyThunks() && !isNativeAOT)
22462246
{
22472247
// We don't keep track of how many cloned finally there are. So, go through and count.
22482248
// We do a quick pass first through the EH table to see if there are any try/finally
@@ -2276,7 +2276,7 @@ void CodeGen::genReportEH()
22762276
{
22772277
if (compiler->UsesFunclets())
22782278
{
2279-
if (compiler->UsesCallfinallyThunks())
2279+
if (compiler->UsesCallFinallyThunks())
22802280
{
22812281
printf("%d EH table entries, %d duplicate clauses, %d cloned finallys, %d total EH entries reported to "
22822282
"VM\n",

src/coreclr/jit/compiler.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5431,15 +5431,15 @@ bool Compiler::shouldAlignLoop(FlowGraphNaturalLoop* loop, BasicBlock* top)
54315431

54325432
assert(!top->IsFirst());
54335433

5434-
if (UsesCallfinallyThunks() && top->Prev()->KindIs(BBJ_CALLFINALLY))
5434+
if (UsesCallFinallyThunks() && top->Prev()->KindIs(BBJ_CALLFINALLY))
54355435
{
54365436
// It must be a retless BBJ_CALLFINALLY if we get here.
54375437
assert(!top->Prev()->isBBCallFinallyPair());
54385438

54395439
// If the block before the loop start is a retless BBJ_CALLFINALLY
5440-
// with UsesCallfinallyThunks, we can't add alignment
5440+
// with UsesCallFinallyThunks, we can't add alignment
54415441
// because it will affect reported EH region range. For x86 (where
5442-
// !UsesCallfinallyThunks), we can allow this.
5442+
// !UsesCallFinallyThunks), we can allow this.
54435443

54445444
JITDUMP("Skipping alignment for " FMT_LP "; its top block follows a CALLFINALLY block\n", loop->GetIndex());
54455445
return false;
@@ -5450,7 +5450,7 @@ bool Compiler::shouldAlignLoop(FlowGraphNaturalLoop* loop, BasicBlock* top)
54505450
// If the previous block is the BBJ_CALLFINALLYRET of a
54515451
// BBJ_CALLFINALLY/BBJ_CALLFINALLYRET pair, then we can't add alignment
54525452
// because we can't add instructions in that block. In the
5453-
// UsesCallfinallyThunks case, it would affect the reported EH, as above.
5453+
// UsesCallFinallyThunks case, it would affect the reported EH, as above.
54545454
JITDUMP("Skipping alignment for " FMT_LP "; its top block follows a CALLFINALLY/ALWAYS pair\n",
54555455
loop->GetIndex());
54565456
return false;

src/coreclr/jit/compiler.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8229,7 +8229,7 @@ class Compiler
82298229
return IsTargetAbi(CORINFO_NATIVEAOT_ABI);
82308230
}
82318231

8232-
bool UsesCallfinallyThunks()
8232+
bool UsesCallFinallyThunks()
82338233
{
82348234
// Generate call-to-finally code in "thunks" in the enclosing EH region, protected by "cloned finally" clauses.
82358235
return UsesFunclets();
@@ -8240,7 +8240,7 @@ class Compiler
82408240
return true;
82418241
}
82428242

8243-
bool UsesCallfinallyThunks()
8243+
bool UsesCallFinallyThunks()
82448244
{
82458245
return true;
82468246
}

src/coreclr/jit/fgdiagnostic.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3166,7 +3166,7 @@ void Compiler::fgDebugCheckBBlist(bool checkBBNum /* = false */, bool checkBBRef
31663166
// try {
31673167
// try {
31683168
// LEAVE L_OUTER; // this becomes a branch to a BBJ_CALLFINALLY in an outer try region
3169-
// // (in the UsesCallfinallyThunks case)
3169+
// // (in the UsesCallFinallyThunks case)
31703170
// } catch {
31713171
// }
31723172
// } finally {
@@ -3177,7 +3177,7 @@ void Compiler::fgDebugCheckBBlist(bool checkBBNum /* = false */, bool checkBBRef
31773177
if (ehDsc->ebdTryBeg == succBlock)
31783178
{
31793179
// The BBJ_CALLFINALLY is the first block of it's `try` region. Don't check the predecessor.
3180-
// Note that this case won't occur in the UsesCallfinallyThunks case, since the
3180+
// Note that this case won't occur in the UsesCallFinallyThunks case, since the
31813181
// BBJ_CALLFINALLY in that case won't exist in the `try` region of the `finallyIndex`.
31823182
}
31833183
else

src/coreclr/jit/fgehopt.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ PhaseStatus Compiler::fgRemoveEmptyTry()
350350
continue;
351351
}
352352

353-
if (UsesCallfinallyThunks())
353+
if (UsesCallFinallyThunks())
354354
{
355355
// Look for blocks that are always jumps to a call finally
356356
// pair that targets the finally
@@ -796,7 +796,7 @@ PhaseStatus Compiler::fgCloneFinally()
796796
{
797797
BasicBlock* jumpDest = nullptr;
798798

799-
if (UsesCallfinallyThunks())
799+
if (UsesCallFinallyThunks())
800800
{
801801
// Blocks that transfer control to callfinallies are usually
802802
// BBJ_ALWAYS blocks, but the last block of a try may fall
@@ -883,7 +883,7 @@ PhaseStatus Compiler::fgCloneFinally()
883883
isUpdate = true;
884884
}
885885

886-
if (UsesCallfinallyThunks())
886+
if (UsesCallFinallyThunks())
887887
{
888888
// When there are callfinally thunks, we don't expect to see the
889889
// callfinally within a handler region either.
@@ -1345,7 +1345,7 @@ void Compiler::fgDebugCheckTryFinallyExits()
13451345
// logically "belong" to a child region and the exit
13461346
// path validity will be checked when looking at the
13471347
// try blocks in that region.
1348-
if (UsesCallfinallyThunks() && block->KindIs(BBJ_CALLFINALLY))
1348+
if (UsesCallFinallyThunks() && block->KindIs(BBJ_CALLFINALLY))
13491349
{
13501350
continue;
13511351
}
@@ -1367,12 +1367,12 @@ void Compiler::fgDebugCheckTryFinallyExits()
13671367
// (e) via an always jump clonefinally exit
13681368
bool isCallToFinally = false;
13691369

1370-
if (UsesCallfinallyThunks() && succBlock->KindIs(BBJ_CALLFINALLY))
1370+
if (UsesCallFinallyThunks() && succBlock->KindIs(BBJ_CALLFINALLY))
13711371
{
13721372
// case (a1)
13731373
isCallToFinally = isFinally && succBlock->TargetIs(finallyBlock);
13741374
}
1375-
else if (!UsesCallfinallyThunks() && block->KindIs(BBJ_CALLFINALLY))
1375+
else if (!UsesCallFinallyThunks() && block->KindIs(BBJ_CALLFINALLY))
13761376
{
13771377
// case (a2)
13781378
isCallToFinally = isFinally && block->TargetIs(finallyBlock);
@@ -1533,7 +1533,7 @@ PhaseStatus Compiler::fgMergeFinallyChains()
15331533
}
15341534
#endif // FEATURE_EH_WINDOWS_X86
15351535

1536-
if (!UsesCallfinallyThunks())
1536+
if (!UsesCallFinallyThunks())
15371537
{
15381538
// For non-thunk EH models (x86) the callfinallys may contain
15391539
// statements, and merging is not safe unless the callfinally

src/coreclr/jit/importer.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4729,7 +4729,7 @@ void Compiler::impImportLeave(BasicBlock* block)
47294729

47304730
BasicBlock* callBlock;
47314731

4732-
if (step == nullptr && UsesCallfinallyThunks())
4732+
if (step == nullptr && UsesCallFinallyThunks())
47334733
{
47344734
// Put the call to the finally in the enclosing region.
47354735
unsigned callFinallyTryIndex =
@@ -4762,7 +4762,7 @@ void Compiler::impImportLeave(BasicBlock* block)
47624762
}
47634763
#endif
47644764
}
4765-
else if (step == nullptr) // && !UsesCallfinallyThunks()
4765+
else if (step == nullptr) // && !UsesCallFinallyThunks()
47664766
{
47674767
callBlock = block;
47684768

@@ -4801,7 +4801,7 @@ void Compiler::impImportLeave(BasicBlock* block)
48014801
assert(step->KindIs(BBJ_ALWAYS, BBJ_CALLFINALLYRET, BBJ_EHCATCHRET));
48024802
assert((step == block) || !step->HasInitializedTarget());
48034803

4804-
if (UsesCallfinallyThunks() && step->KindIs(BBJ_EHCATCHRET))
4804+
if (UsesCallFinallyThunks() && step->KindIs(BBJ_EHCATCHRET))
48054805
{
48064806
// Need to create another step block in the 'try' region that will actually branch to the
48074807
// call-to-finally thunk.
@@ -4837,7 +4837,7 @@ void Compiler::impImportLeave(BasicBlock* block)
48374837
unsigned callFinallyTryIndex;
48384838
unsigned callFinallyHndIndex;
48394839

4840-
if (UsesCallfinallyThunks())
4840+
if (UsesCallFinallyThunks())
48414841
{
48424842
callFinallyTryIndex = (HBtab->ebdEnclosingTryIndex == EHblkDsc::NO_ENCLOSING_INDEX)
48434843
? 0

src/coreclr/jit/jiteh.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ unsigned Compiler::ehGetCallFinallyRegionIndex(unsigned finallyIndex, bool* inTr
906906
assert(finallyIndex != EHblkDsc::NO_ENCLOSING_INDEX);
907907
assert(ehGetDsc(finallyIndex)->HasFinallyHandler());
908908

909-
if (UsesCallfinallyThunks())
909+
if (UsesCallFinallyThunks())
910910
{
911911
return ehGetDsc(finallyIndex)->ebdGetEnclosingRegionIndex(inTryRegion);
912912
}
@@ -924,7 +924,7 @@ void Compiler::ehGetCallFinallyBlockRange(unsigned finallyIndex, BasicBlock** st
924924
assert(startBlock != nullptr);
925925
assert(lastBlock != nullptr);
926926

927-
if (UsesCallfinallyThunks())
927+
if (UsesCallFinallyThunks())
928928
{
929929
bool inTryRegion;
930930
unsigned callFinallyRegionIndex = ehGetCallFinallyRegionIndex(finallyIndex, &inTryRegion);
@@ -4039,7 +4039,7 @@ bool Compiler::fgIsIntraHandlerPred(BasicBlock* predBlock, BasicBlock* block)
40394039

40404040
EHblkDsc* xtab = ehGetDsc(block->getHndIndex());
40414041

4042-
if (UsesCallfinallyThunks() && xtab->HasFinallyHandler())
4042+
if (UsesCallFinallyThunks() && xtab->HasFinallyHandler())
40434043
{
40444044
assert((xtab->ebdHndBeg == block) || // The normal case
40454045
(xtab->ebdHndBeg->NextIs(block) &&

src/coreclr/jit/optimizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3183,7 +3183,7 @@ bool Compiler::optCanonicalizeExit(FlowGraphNaturalLoop* loop, BasicBlock* exit)
31833183
JITDUMP("Canonicalize exit " FMT_BB " for " FMT_LP " to have only loop predecessors\n", exit->bbNum,
31843184
loop->GetIndex());
31853185

3186-
if (UsesCallfinallyThunks() && exit->KindIs(BBJ_CALLFINALLY))
3186+
if (UsesCallFinallyThunks() && exit->KindIs(BBJ_CALLFINALLY))
31873187
{
31883188
// Branches to a BBJ_CALLFINALLY _must_ come from inside its associated
31893189
// try region, and when we have callfinally thunks the BBJ_CALLFINALLY

0 commit comments

Comments
 (0)