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

Unified Diff: courgette/disassembler_elf_32_arm.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: 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_elf_32_arm.h
diff --git a/courgette/disassembler_elf_32_arm.h b/courgette/disassembler_elf_32_arm.h
index 83f5dc6a237b8dc6cdd098ca3906c750227684c5..ff32b8f7022257291989b766dd3137ea81684cf7 100644
--- a/courgette/disassembler_elf_32_arm.h
+++ b/courgette/disassembler_elf_32_arm.h
@@ -28,6 +28,11 @@ enum ARM_RVA {
class DisassemblerElf32ARM : public DisassemblerElf32 {
public:
+ static bool QuickDetects(const void* start, size_t length) {
+ return DisassemblerElf32::QuickDetects(
+ reinterpret_cast<const uint8_t*>(start), length, EM_ARM);
+ }
+
class TypedRVAARM : public TypedRVA {
public:
TypedRVAARM(ARM_RVA type, RVA rva) : TypedRVA(rva), type_(type) { }

Powered by Google App Engine
This is Rietveld 408576698