Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/tools/crossgen2/Common/Compiler/ReadyToRun.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ public enum ReadyToRunHelper
// JIT32 x86-specific exception handling
EndCatch = 0x110,

StackProbe = 0x111,

// **********************************************************************************************
//
// These are not actually part of the R2R file format. We have them here because it's convenient.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,10 @@ private ISymbolNode GetHelperFtnUncached(CorInfoHelpFunc ftnNum)
id = ReadyToRunHelper.LogMethodEnter;
break;

case CorInfoHelpFunc.CORINFO_HELP_STACK_PROBE:
id = ReadyToRunHelper.StackProbe;
break;

case CorInfoHelpFunc.CORINFO_HELP_INITCLASS:
case CorInfoHelpFunc.CORINFO_HELP_INITINSTCLASS:
case CorInfoHelpFunc.CORINFO_HELP_THROW_ARGUMENTEXCEPTION:
Expand Down
2 changes: 2 additions & 0 deletions src/tools/r2rdump/R2RConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,8 @@ public enum ReadyToRunHelper

// JIT32 x86-specific exception handling
READYTORUN_HELPER_EndCatch = 0x110,

READYTORUN_HELPER_StackProbe = 0x111,
}

public enum CorElementType : byte
Expand Down
4 changes: 4 additions & 0 deletions src/tools/r2rdump/R2RSignature.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1615,6 +1615,10 @@ private void ParseHelper(StringBuilder builder)
builder.Append("END_CATCH");
break;

case ReadyToRunHelper.READYTORUN_HELPER_StackProbe:
builder.Append("STACK_PROBE");
break;

default:
builder.Append(string.Format("Unknown helper: {0:X2}", helperType));
break;
Expand Down