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

Unified Diff: courgette/disassembler_elf_32_arm.h

Issue 1543643002: Switch to standard integer types in courgette/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years 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
« no previous file with comments | « courgette/disassembler_elf_32.cc ('k') | courgette/disassembler_elf_32_arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: courgette/disassembler_elf_32_arm.h
diff --git a/courgette/disassembler_elf_32_arm.h b/courgette/disassembler_elf_32_arm.h
index 8a647663c69eea6285095bec3a4b2e0d102534fa..17ebb2557530749218510bacf18e8ded45553dbb 100644
--- a/courgette/disassembler_elf_32_arm.h
+++ b/courgette/disassembler_elf_32_arm.h
@@ -5,7 +5,10 @@
#ifndef COURGETTE_DISASSEMBLER_ELF_32_ARM_H_
#define COURGETTE_DISASSEMBLER_ELF_32_ARM_H_
-#include "base/basictypes.h"
+#include <stddef.h>
+#include <stdint.h>
+
+#include "base/macros.h"
#include "courgette/disassembler_elf_32.h"
#include "courgette/memory_allocator.h"
#include "courgette/types_elf.h"
@@ -28,22 +31,20 @@ class DisassemblerElf32ARM : public DisassemblerElf32 {
public:
TypedRVAARM(ARM_RVA type, RVA rva) : TypedRVA(rva), type_(type) { }
- uint16 c_op() const {
- return c_op_;
- }
+ uint16_t c_op() const { return c_op_; }
- virtual CheckBool ComputeRelativeTarget(const uint8* op_pointer);
+ virtual CheckBool ComputeRelativeTarget(const uint8_t* op_pointer);
virtual CheckBool EmitInstruction(AssemblyProgram* program,
RVA target_rva);
- virtual uint16 op_size() const;
+ virtual uint16_t op_size() const;
private:
ARM_RVA type_;
- uint16 c_op_; // set by ComputeRelativeTarget()
- const uint8* arm_op_;
+ uint16_t c_op_; // set by ComputeRelativeTarget()
+ const uint8_t* arm_op_;
};
explicit DisassemblerElf32ARM(const void* start, size_t length);
@@ -52,11 +53,16 @@ class DisassemblerElf32ARM : public DisassemblerElf32 {
virtual e_machine_values ElfEM() { return EM_ARM; }
- static CheckBool Compress(ARM_RVA type, uint32 arm_op, RVA rva,
- uint16* c_op /* out */, uint32* addr /* out */);
+ static CheckBool Compress(ARM_RVA type,
+ uint32_t arm_op,
+ RVA rva,
+ uint16_t* c_op /* out */,
+ uint32_t* addr /* out */);
- static CheckBool Decompress(ARM_RVA type, uint16 c_op, uint32 addr,
- uint32* arm_op /* out */);
+ static CheckBool Decompress(ARM_RVA type,
+ uint16_t c_op,
+ uint32_t addr,
+ uint32_t* arm_op /* out */);
protected:
« no previous file with comments | « courgette/disassembler_elf_32.cc ('k') | courgette/disassembler_elf_32_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698