2015-05-24 06:55:12 +02:00
|
|
|
// Copyright 2008 Dolphin Emulator Project
|
2015-05-18 01:08:10 +02:00
|
|
|
// Licensed under GPLv2+
|
2013-04-18 05:43:35 +02:00
|
|
|
// Refer to the license.txt file included.
|
2008-12-08 05:46:09 +01:00
|
|
|
|
2014-02-10 19:54:46 +01:00
|
|
|
#pragma once
|
2008-12-08 05:46:09 +01:00
|
|
|
|
2014-10-21 08:53:01 +02:00
|
|
|
#include <memory>
|
|
|
|
|
2014-02-17 11:18:15 +01:00
|
|
|
#include <wx/listctrl.h>
|
2014-02-22 23:36:30 +01:00
|
|
|
#include <wx/panel.h>
|
|
|
|
|
|
|
|
#include "Common/CommonTypes.h"
|
2015-05-31 23:21:47 +02:00
|
|
|
#include "UICommon/Disassembler.h"
|
2009-08-27 17:53:19 +02:00
|
|
|
|
2014-02-22 23:36:30 +01:00
|
|
|
class wxButton;
|
|
|
|
class wxListBox;
|
|
|
|
class wxTextCtrl;
|
2008-12-08 05:46:09 +01:00
|
|
|
|
|
|
|
class JitBlockList : public wxListCtrl
|
|
|
|
{
|
|
|
|
public:
|
2016-06-24 10:43:46 +02:00
|
|
|
JitBlockList(wxWindow* parent, const wxWindowID id, const wxPoint& pos, const wxSize& size,
|
|
|
|
long style);
|
|
|
|
void Init();
|
2016-10-03 09:29:50 +02:00
|
|
|
void Repopulate();
|
2008-12-08 05:46:09 +01:00
|
|
|
};
|
|
|
|
|
2009-09-07 22:51:02 +02:00
|
|
|
class CJitWindow : public wxPanel
|
2008-12-08 05:46:09 +01:00
|
|
|
{
|
|
|
|
public:
|
2016-06-24 10:43:46 +02:00
|
|
|
CJitWindow(wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize, long style = wxTAB_TRAVERSAL | wxBORDER_NONE,
|
|
|
|
const wxString& name = _("JIT Block Viewer"));
|
2008-12-08 05:46:09 +01:00
|
|
|
|
2016-06-24 10:43:46 +02:00
|
|
|
void ViewAddr(u32 em_address);
|
2016-10-03 09:29:50 +02:00
|
|
|
void Repopulate();
|
2008-12-08 05:46:09 +01:00
|
|
|
|
|
|
|
private:
|
2016-06-24 10:43:46 +02:00
|
|
|
void OnRefresh(wxCommandEvent& /*event*/);
|
|
|
|
void Compare(u32 em_address);
|
2008-12-08 05:46:09 +01:00
|
|
|
|
2016-06-24 10:43:46 +02:00
|
|
|
JitBlockList* block_list;
|
|
|
|
std::unique_ptr<HostDisassembler> m_disassembler;
|
|
|
|
wxButton* button_refresh;
|
|
|
|
wxTextCtrl* ppc_box;
|
|
|
|
wxTextCtrl* x86_box;
|
2008-12-08 05:46:09 +01:00
|
|
|
|
2016-06-24 10:43:46 +02:00
|
|
|
void OnHostMessage(wxCommandEvent& event);
|
2008-12-08 05:46:09 +01:00
|
|
|
};
|