Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit d7d457f

Browse files
author
Sergey Andreenko
authored
Small changes around stack levels. (#15616)
* add ifdef for fgThrowHlpBlkStkLevel * fgFindExcptnTarget should not be called fof dbg code compilation mode.
1 parent 9442717 commit d7d457f

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

src/jit/compiler.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4956,7 +4956,10 @@ class Compiler
49564956
bool fgIsCodeAdded();
49574957

49584958
bool fgIsThrowHlpBlk(BasicBlock* block);
4959+
4960+
#if !FEATURE_FIXED_OUT_ARGS
49594961
unsigned fgThrowHlpBlkStkLevel(BasicBlock* block);
4962+
#endif // !FEATURE_FIXED_OUT_ARGS
49604963

49614964
unsigned fgBigOffsetMorphingTemps[TYP_COUNT];
49624965

src/jit/compiler.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3031,6 +3031,8 @@ inline bool Compiler::fgIsThrowHlpBlk(BasicBlock* block)
30313031
return false;
30323032
}
30333033

3034+
#if !FEATURE_FIXED_OUT_ARGS
3035+
30343036
/*****************************************************************************
30353037
*
30363038
* Return the stackLevel of the inserted block that throws exception
@@ -3064,6 +3066,8 @@ inline unsigned Compiler::fgThrowHlpBlkStkLevel(BasicBlock* block)
30643066
return 0;
30653067
}
30663068

3069+
#endif // !FEATURE_FIXED_OUT_ARGS
3070+
30673071
/*
30683072
Small inline function to change a given block to a throw block.
30693073

src/jit/flowgraph.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18393,6 +18393,7 @@ BasicBlock* Compiler::fgAddCodeRef(BasicBlock* srcBlk, unsigned refData, Special
1839318393

1839418394
Compiler::AddCodeDsc* Compiler::fgFindExcptnTarget(SpecialCodeKind kind, unsigned refData)
1839518395
{
18396+
assert(!opts.compDbgCode);
1839618397
if (!(fgExcptnTargetCache[kind] && // Try the cached value first
1839718398
fgExcptnTargetCache[kind]->acdData == refData))
1839818399
{

0 commit comments

Comments
 (0)