Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(229)

Unified Diff: courgette/disassembler_win32.h

Issue 2055343002: Courgette: Add static method QuickDetect() to optimize program detection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit cleanup Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: courgette/disassembler_win32.h
diff --git a/courgette/disassembler_win32.h b/courgette/disassembler_win32.h
index 42dc2fef3ada8367c6871a1fdf49c9850a68c326..cbb7c77c20646f3de18a62f4a2b3370729e7beed 100644
--- a/courgette/disassembler_win32.h
+++ b/courgette/disassembler_win32.h
@@ -49,12 +49,14 @@ class DisassemblerWin32 : public Disassembler {
static std::string SectionName(const Section* section);
protected:
+ static bool QuickDetect(const uint8_t* start, size_t length, uint16_t magic);
Will Harris 2016/06/13 19:15:21 would be nice to see a comment here, in particular
etiennep 2016/06/14 21:16:37 Done.
+
// Disassembler interfaces.
RvaVisitor* CreateAbs32TargetRvaVisitor() override;
RvaVisitor* CreateRel32TargetRvaVisitor() override;
void RemoveUnusedRel32Locations(AssemblyProgram* program) override;
- DisassemblerWin32(const void* start, size_t length);
+ DisassemblerWin32(const uint8_t* start, size_t length);
CheckBool ParseFile(AssemblyProgram* target) WARN_UNUSED_RESULT;
bool ParseAbs32Relocs();

Powered by Google App Engine
This is Rietveld 408576698