1 // Copyright (C) 2003 Dolphin Project.
3 // This program is free software: you can redistribute it and/or modify
4 // it under the terms of the GNU General Public License as published by
5 // the Free Software Foundation, version 2.0.
7 // This program is distributed in the hope that it will be useful,
8 // but WITHOUT ANY WARRANTY; without even the implied warranty of
9 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 // GNU General Public License 2.0 for more details.
12 // A copy of the GPL 2.0 should have been included with the program.
13 // If not, see http://www.gnu.org/licenses/
15 // Official SVN repository and contact information can be found at
16 // http://code.google.com/p/dolphin-emu/
23 #include <wx/dialog.h>
24 #include <wx/textctrl.h>
25 #include <wx/listctrl.h>
26 #include <wx/listbox.h>
29 #include "MemoryView.h"
31 #include "CoreParameter.h"
34 class JitBlockList
: public wxListCtrl
36 std::vector
<int> block_ranking
;
38 JitBlockList(wxWindow
* parent
, const wxWindowID id
, const wxPoint
& pos
, const wxSize
& size
, long style
);
44 class CJitWindow
: public wxPanel
47 CJitWindow(wxWindow
* parent
,
48 wxWindowID id
= wxID_ANY
,
49 const wxPoint
& pos
= wxDefaultPosition
,
50 const wxSize
& size
= wxDefaultSize
,
51 long style
= wxTAB_TRAVERSAL
,
52 const wxString
& title
= _T("JIT block viewer"));
55 static void ViewAddr(u32 em_address
);
59 void OnRefresh(wxCommandEvent
& /*event*/);
60 void Compare(u32 em_address
);
62 JitBlockList
* block_list
;
63 wxButton
* button_refresh
;
66 wxListBox
* top_instructions
;
70 void OnSymbolListChange(wxCommandEvent
& event
);
71 void OnCallstackListChange(wxCommandEvent
& event
);
72 void OnAddrBoxChange(wxCommandEvent
& event
);
73 void OnHostMessage(wxCommandEvent
& event
);
76 #endif /*MEMORYWINDOW_*/