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