Repository navigation
[cDAC][wasm] Register platform GC-info decoding #135055
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
radekdoulik
merged 1 commit into
dotnet:main
from
radekdoulik:radekdoulik-cdac-wasm-gc-info
Oct 2, 2026
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
...gnostics.DataContractReader.Contracts/Contracts/GCInfo/PlatformTraits/WasmGCInfoTraits.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the MIT license. | ||
|
|
||
| namespace Microsoft.Diagnostics.DataContractReader.Contracts.GCInfoHelpers; | ||
|
|
||
| // Mirrors Wasm32GcInfoEncoding in src/coreclr/inc/gcinfotypes.h. | ||
| internal sealed class WasmGCInfoTraits : IGCInfoTraits | ||
| { | ||
| public static uint DenormalizeStackBaseRegister(uint reg) => reg; | ||
| public static uint DenormalizeCodeLength(uint len) => len; | ||
| public static uint NormalizeCodeLength(uint len) => len; | ||
| public static uint DenormalizeCodeOffset(uint offset) => offset; | ||
| public static uint NormalizeCodeOffset(uint offset) => offset; | ||
| public static int DenormalizeStackSlot(int value) => value; | ||
| public static uint DenormalizeSizeOfStackArea(uint size) => size; | ||
|
|
||
| public static int GENERICS_INST_CONTEXT_STACK_SLOT_ENCBASE => 6; | ||
| public static int GS_COOKIE_STACK_SLOT_ENCBASE => 6; | ||
| public static int CODE_LENGTH_ENCBASE => 6; | ||
| public static int STACK_BASE_REGISTER_ENCBASE => 3; | ||
| public static int SIZE_OF_STACK_AREA_ENCBASE => 6; | ||
| public static int SIZE_OF_EDIT_AND_CONTINUE_PRESERVED_AREA_ENCBASE => 3; | ||
| public static int SIZE_OF_EDIT_AND_CONTINUE_FIXED_STACK_FRAME_ENCBASE => 0; | ||
| public static int REVERSE_PINVOKE_FRAME_ENCBASE => 6; | ||
| public static int NUM_REGISTERS_ENCBASE => 3; | ||
| public static int NUM_STACK_SLOTS_ENCBASE => 5; | ||
| public static int NUM_UNTRACKED_SLOTS_ENCBASE => 5; | ||
| public static int NORM_PROLOG_SIZE_ENCBASE => 4; | ||
| public static int NORM_EPILOG_SIZE_ENCBASE => 3; | ||
| public static int INTERRUPTIBLE_RANGE_DELTA1_ENCBASE => 5; | ||
| public static int INTERRUPTIBLE_RANGE_DELTA2_ENCBASE => 5; | ||
| public static int REGISTER_ENCBASE => 3; | ||
| public static int REGISTER_DELTA_ENCBASE => 3; | ||
| public static int STACK_SLOT_ENCBASE => 6; | ||
| public static int STACK_SLOT_DELTA_ENCBASE => 4; | ||
| public static int NUM_SAFE_POINTS_ENCBASE => 4; | ||
| public static int NUM_INTERRUPTIBLE_RANGES_ENCBASE => 1; | ||
| public static bool HAS_FIXED_STACK_PARAMETER_SCRATCH_AREA => false; | ||
| public static bool HAS_INTERRUPTIBLE_RANGES => false; | ||
| public static bool IsScratchRegister(uint regNum) => false; | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.