Host: Rename `JitCacheInvalidation`

There are two hard problems in computer science...
This commit is contained in:
mitaclaw 2024-10-23 19:30:22 -07:00
parent 8925ddf45f
commit 3d9c728910
15 changed files with 21 additions and 21 deletions

View File

@ -146,7 +146,7 @@ void Host_UpdateDisasmDialog()
{ {
} }
void Host_JitCacheCleared() void Host_JitCacheInvalidation()
{ {
} }

View File

@ -60,7 +60,7 @@ void Host_PPCSymbolsChanged();
void Host_RefreshDSPDebuggerWindow(); void Host_RefreshDSPDebuggerWindow();
void Host_RequestRenderWindowSize(int width, int height); void Host_RequestRenderWindowSize(int width, int height);
void Host_UpdateDisasmDialog(); void Host_UpdateDisasmDialog();
void Host_JitCacheCleared(); void Host_JitCacheInvalidation();
void Host_JitProfileDataWiped(); void Host_JitProfileDataWiped();
void Host_UpdateMainFrame(); void Host_UpdateMainFrame();
void Host_UpdateTitle(const std::string& title); void Host_UpdateTitle(const std::string& title);

View File

@ -442,7 +442,7 @@ void CachedInterpreter::ClearCache()
ClearCodeSpace(); ClearCodeSpace();
ResetFreeMemoryRanges(); ResetFreeMemoryRanges();
RefreshConfig(); RefreshConfig();
Host_JitCacheCleared(); Host_JitCacheInvalidation();
} }
void CachedInterpreter::LogGeneratedCode() const void CachedInterpreter::LogGeneratedCode() const

View File

@ -313,7 +313,7 @@ void Jit64::ClearCache()
RefreshConfig(); RefreshConfig();
asm_routines.Regenerate(); asm_routines.Regenerate();
ResetFreeMemoryRanges(); ResetFreeMemoryRanges();
Host_JitCacheCleared(); Host_JitCacheInvalidation();
} }
void Jit64::FreeRanges() void Jit64::FreeRanges()

View File

@ -197,7 +197,7 @@ void JitArm64::GenerateAsmAndResetFreeMemoryRanges()
ResetFreeMemoryRanges(routines_near_end - routines_near_start, ResetFreeMemoryRanges(routines_near_end - routines_near_start,
routines_far_end - routines_far_start); routines_far_end - routines_far_start);
Host_JitCacheCleared(); Host_JitCacheInvalidation();
} }
void JitArm64::FreeRanges() void JitArm64::FreeRanges()

View File

@ -86,7 +86,7 @@ void Host_UpdateDisasmDialog()
{ {
} }
void Host_JitCacheCleared() void Host_JitCacheInvalidation()
{ {
} }

View File

@ -313,7 +313,7 @@ void JITWidget::SaveQSettings() const
void JITWidget::ConnectSlots() void JITWidget::ConnectSlots()
{ {
auto* const host = Host::GetInstance(); auto* const host = Host::GetInstance();
connect(host, &Host::JitCacheCleared, this, &JITWidget::OnJitCacheCleared); connect(host, &Host::JitCacheInvalidation, this, &JITWidget::OnJitCacheInvalidation);
connect(host, &Host::UpdateDisasmDialog, this, &JITWidget::OnUpdateDisasmDialog); connect(host, &Host::UpdateDisasmDialog, this, &JITWidget::OnUpdateDisasmDialog);
connect(host, &Host::PPCSymbolsChanged, this, &JITWidget::OnPPCSymbolsUpdated); connect(host, &Host::PPCSymbolsChanged, this, &JITWidget::OnPPCSymbolsUpdated);
connect(host, &Host::PPCBreakpointsChanged, this, &JITWidget::OnPPCBreakpointsChanged); connect(host, &Host::PPCBreakpointsChanged, this, &JITWidget::OnPPCBreakpointsChanged);
@ -326,7 +326,7 @@ void JITWidget::ConnectSlots()
void JITWidget::DisconnectSlots() void JITWidget::DisconnectSlots()
{ {
auto* const host = Host::GetInstance(); auto* const host = Host::GetInstance();
disconnect(host, &Host::JitCacheCleared, this, &JITWidget::OnJitCacheCleared); disconnect(host, &Host::JitCacheInvalidation, this, &JITWidget::OnJitCacheInvalidation);
disconnect(host, &Host::UpdateDisasmDialog, this, &JITWidget::OnUpdateDisasmDialog); disconnect(host, &Host::UpdateDisasmDialog, this, &JITWidget::OnUpdateDisasmDialog);
disconnect(host, &Host::PPCSymbolsChanged, this, &JITWidget::OnPPCSymbolsUpdated); disconnect(host, &Host::PPCSymbolsChanged, this, &JITWidget::OnPPCSymbolsUpdated);
disconnect(host, &Host::PPCBreakpointsChanged, this, &JITWidget::OnPPCBreakpointsChanged); disconnect(host, &Host::PPCBreakpointsChanged, this, &JITWidget::OnPPCBreakpointsChanged);
@ -340,7 +340,7 @@ void JITWidget::Show()
{ {
ConnectSlots(); ConnectSlots();
// Handle every slot that may have missed a signal while this widget was hidden. // Handle every slot that may have missed a signal while this widget was hidden.
// OnJitCacheCleared() can be skipped. // OnJitCacheInvalidation() can be skipped.
// OnUpdateDisasmDialog() can be skipped. // OnUpdateDisasmDialog() can be skipped.
// OnPPCSymbolsUpdated() can be skipped. // OnPPCSymbolsUpdated() can be skipped.
// OnPPCBreakpointsChanged() can be skipped. // OnPPCBreakpointsChanged() can be skipped.
@ -446,7 +446,7 @@ void JITWidget::OnStatusBarPressed()
ShowFreeMemoryStatus(); ShowFreeMemoryStatus();
} }
void JITWidget::OnJitCacheCleared() void JITWidget::OnJitCacheInvalidation()
{ {
if (Core::GetState(m_system) != Core::State::Paused) if (Core::GetState(m_system) != Core::State::Paused)
return; return;

View File

@ -102,7 +102,7 @@ private:
void OnStatusBarPressed(); void OnStatusBarPressed();
// Conditionally connected slots (external signals) // Conditionally connected slots (external signals)
void OnJitCacheCleared(); void OnJitCacheInvalidation();
void OnUpdateDisasmDialog(); void OnUpdateDisasmDialog();
void OnPPCSymbolsUpdated(); void OnPPCSymbolsUpdated();
void OnPPCBreakpointsChanged(); void OnPPCBreakpointsChanged();

View File

@ -112,7 +112,7 @@ void JitBlockTableModel::UpdateSymbols()
void JitBlockTableModel::ConnectSlots() void JitBlockTableModel::ConnectSlots()
{ {
auto* const host = Host::GetInstance(); auto* const host = Host::GetInstance();
connect(host, &Host::JitCacheCleared, this, &JitBlockTableModel::OnJitCacheCleared); connect(host, &Host::JitCacheInvalidation, this, &JitBlockTableModel::OnJitCacheInvalidation);
connect(host, &Host::JitProfileDataWiped, this, &JitBlockTableModel::OnJitProfileDataWiped); connect(host, &Host::JitProfileDataWiped, this, &JitBlockTableModel::OnJitProfileDataWiped);
connect(host, &Host::UpdateDisasmDialog, this, &JitBlockTableModel::OnUpdateDisasmDialog); connect(host, &Host::UpdateDisasmDialog, this, &JitBlockTableModel::OnUpdateDisasmDialog);
connect(host, &Host::PPCSymbolsChanged, this, &JitBlockTableModel::OnPPCSymbolsUpdated); connect(host, &Host::PPCSymbolsChanged, this, &JitBlockTableModel::OnPPCSymbolsUpdated);
@ -125,7 +125,7 @@ void JitBlockTableModel::ConnectSlots()
void JitBlockTableModel::DisconnectSlots() void JitBlockTableModel::DisconnectSlots()
{ {
auto* const host = Host::GetInstance(); auto* const host = Host::GetInstance();
disconnect(host, &Host::JitCacheCleared, this, &JitBlockTableModel::OnJitCacheCleared); disconnect(host, &Host::JitCacheInvalidation, this, &JitBlockTableModel::OnJitCacheInvalidation);
disconnect(host, &Host::JitProfileDataWiped, this, &JitBlockTableModel::OnJitProfileDataWiped); disconnect(host, &Host::JitProfileDataWiped, this, &JitBlockTableModel::OnJitProfileDataWiped);
disconnect(host, &Host::UpdateDisasmDialog, this, &JitBlockTableModel::OnUpdateDisasmDialog); disconnect(host, &Host::UpdateDisasmDialog, this, &JitBlockTableModel::OnUpdateDisasmDialog);
disconnect(host, &Host::PPCSymbolsChanged, this, &JitBlockTableModel::OnPPCSymbolsUpdated); disconnect(host, &Host::PPCSymbolsChanged, this, &JitBlockTableModel::OnPPCSymbolsUpdated);
@ -169,7 +169,7 @@ void JitBlockTableModel::OnFilterSymbolTextChanged(const QString& string)
m_filtering_by_symbols = !string.isEmpty(); m_filtering_by_symbols = !string.isEmpty();
} }
void JitBlockTableModel::OnJitCacheCleared() void JitBlockTableModel::OnJitCacheInvalidation()
{ {
Update(Core::GetState(m_system)); Update(Core::GetState(m_system));
} }

View File

@ -106,7 +106,7 @@ private:
void Hide(); void Hide();
// Conditionally connected slots (external signals) // Conditionally connected slots (external signals)
void OnJitCacheCleared(); void OnJitCacheInvalidation();
void OnJitProfileDataWiped(); void OnJitProfileDataWiped();
void OnUpdateDisasmDialog(); void OnUpdateDisasmDialog();
void OnPPCSymbolsUpdated(); void OnPPCSymbolsUpdated();

View File

@ -256,9 +256,9 @@ void Host_UpdateDisasmDialog()
QueueOnObject(QApplication::instance(), [] { emit Host::GetInstance()->UpdateDisasmDialog(); }); QueueOnObject(QApplication::instance(), [] { emit Host::GetInstance()->UpdateDisasmDialog(); });
} }
void Host_JitCacheCleared() void Host_JitCacheInvalidation()
{ {
QueueOnObject(QApplication::instance(), [] { emit Host::GetInstance()->JitCacheCleared(); }); QueueOnObject(QApplication::instance(), [] { emit Host::GetInstance()->JitCacheInvalidation(); });
} }
void Host_JitProfileDataWiped() void Host_JitProfileDataWiped()

View File

@ -40,7 +40,7 @@ signals:
void RequestStop(); void RequestStop();
void RequestRenderSize(int w, int h); void RequestRenderSize(int w, int h);
void UpdateDisasmDialog(); void UpdateDisasmDialog();
void JitCacheCleared(); void JitCacheInvalidation();
void JitProfileDataWiped(); void JitProfileDataWiped();
void PPCSymbolsChanged(); void PPCSymbolsChanged();
void PPCBreakpointsChanged(); void PPCBreakpointsChanged();

View File

@ -61,7 +61,7 @@ void Host_UpdateDisasmDialog()
{ {
} }
void Host_JitCacheCleared() void Host_JitCacheInvalidation()
{ {
} }

View File

@ -41,7 +41,7 @@ bool Host_UpdateDiscordPresenceRaw(const std::string& details, const std::string
void Host_UpdateDisasmDialog() void Host_UpdateDisasmDialog()
{ {
} }
void Host_JitCacheCleared() void Host_JitCacheInvalidation()
{ {
} }
void Host_JitProfileDataWiped() void Host_JitProfileDataWiped()

View File

@ -41,7 +41,7 @@ bool Host_UpdateDiscordPresenceRaw(const std::string& details, const std::string
void Host_UpdateDisasmDialog() void Host_UpdateDisasmDialog()
{ {
} }
void Host_JitCacheCleared() void Host_JitCacheInvalidation()
{ {
} }
void Host_JitProfileDataWiped() void Host_JitProfileDataWiped()