-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Fix DEBUG/non-DEBUG SuperPMI asm diffs #76470
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 | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -30,6 +30,7 @@ MethodContext::MethodContext() | |||||||
|
||||||||
cr = new CompileResult(); | ||||||||
index = -1; | ||||||||
ignoreStoredConfig = false; | ||||||||
isReadyToRunCompilation = ReadyToRunCompilation::Uninitialized; | ||||||||
} | ||||||||
|
||||||||
|
@@ -6903,6 +6904,9 @@ void MethodContext::dmpGetIntConfigValue(const Agnostic_ConfigIntInfo& key, int | |||||||
|
||||||||
int MethodContext::repGetIntConfigValue(const WCHAR* name, int defaultValue) | ||||||||
{ | ||||||||
if (ignoreStoredConfig) | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I actually prefer keeping these cases as separate statements. |
||||||||
return defaultValue; | ||||||||
|
||||||||
if (GetIntConfigValue == nullptr) | ||||||||
return defaultValue; | ||||||||
|
||||||||
|
@@ -6955,6 +6959,9 @@ void MethodContext::dmpGetStringConfigValue(DWORD nameIndex, DWORD resultIndex) | |||||||
|
||||||||
const WCHAR* MethodContext::repGetStringConfigValue(const WCHAR* name) | ||||||||
{ | ||||||||
if (ignoreStoredConfig) | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
return nullptr; | ||||||||
|
||||||||
if (GetStringConfigValue == nullptr) | ||||||||
return nullptr; | ||||||||
|
||||||||
|
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.
I was thinking of moving asmdiffs to run on Release instead of Checked.
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.
When doing so, you'll need to audit usage of
diff_with_release
. It was introduced for use with Checked/Release diffs (so is not completely accurately named) and also before Release builds had any JitDisasm support (JitDiffableDasm still isn't in Release), so I think it kind of mixes concepts a bit.