-
Notifications
You must be signed in to change notification settings - Fork 5.4k
[browser][coreCLR] Fix IP resolution for interpreted methods on WASM #127370
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -4417,7 +4417,20 @@ TADDR MethodAndStartAddressToEECodeInfoPointer(MethodDesc *pMethodDesc, PCODE pN | |||||
| return 0; | ||||||
| } | ||||||
|
|
||||||
| return GetInterpreterCodeFromInterpreterPrecodeIfPresent(start); | ||||||
| start = GetInterpreterCodeFromInterpreterPrecodeIfPresent(start); | ||||||
|
|
||||||
| #if defined(FEATURE_INTERPRETER) && defined(FEATURE_PORTABLE_ENTRYPOINTS) | ||||||
| if (pNativeCodeStartAddress == (PCODE)0) | ||||||
| { | ||||||
| PTR_InterpByteCodeStart pInterpCode = pMethodDesc->GetInterpreterCode(); | ||||||
| if (pInterpCode != NULL) | ||||||
| { | ||||||
| return dac_cast<TADDR>(pInterpCode); | ||||||
|
||||||
| return dac_cast<TADDR>(pInterpCode); | |
| return PINSTRToPCODE(dac_cast<TADDR>(pInterpCode)); |
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -810,8 +810,12 @@ PCODE MethodDesc::JitCompileCodeLockedEventWrapper(PrepareCodeConfig* pConfig, J | |||||||||
| if (isInterpreterCode) | ||||||||||
| { | ||||||||||
| // If this is interpreter code, we need to get the native code start address from the interpreter Precode | ||||||||||
|
||||||||||
| // If this is interpreter code, we need to get the native code start address from the interpreter Precode | |
| // If this is interpreter code, get the native code start address from the | |
| // interpreter entrypoint data: PortableEntryPoint interpreter data when | |
| // FEATURE_PORTABLE_ENTRYPOINTS is enabled, otherwise the interpreter Precode. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be fixed in
GetInterpreterCodeFromInterpreterPrecodeIfPresentinstead?Also,
GetInterpreterCodeFromInterpreterPrecodeIfPresentmay want to be renamed toGetInterpreterCodeFromEntryPointIfPresentto better represent what it does.