Skip to content

Commit

Permalink
Add new ready to run helper to managed tools
Browse files Browse the repository at this point in the history
Follow up to dotnet#26807.
  • Loading branch information
MichalStrehovsky committed Oct 9, 2019
1 parent 9e6f164 commit a2b2f84
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
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

0 comments on commit a2b2f84

Please sign in to comment.