summaryrefslogtreecommitdiff
path: root/src/ToolBox/superpmi/superpmi/neardiffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ToolBox/superpmi/superpmi/neardiffer.h')
-rw-r--r--src/ToolBox/superpmi/superpmi/neardiffer.h85
1 files changed, 42 insertions, 43 deletions
diff --git a/src/ToolBox/superpmi/superpmi/neardiffer.h b/src/ToolBox/superpmi/superpmi/neardiffer.h
index e3ffe1c790..100f87cce2 100644
--- a/src/ToolBox/superpmi/superpmi/neardiffer.h
+++ b/src/ToolBox/superpmi/superpmi/neardiffer.h
@@ -15,8 +15,7 @@
class NearDiffer
{
public:
-
- NearDiffer(const char *targetArch, bool useCorDisTools)
+ NearDiffer(const char* targetArch, bool useCorDisTools)
: TargetArchitecture(targetArch)
, UseCoreDisTools(useCorDisTools)
#ifdef USE_COREDISTOOLS
@@ -29,58 +28,58 @@ public:
void InitAsmDiff();
- bool compare(MethodContext *mc, CompileResult *cr1,CompileResult *cr2);
+ bool compare(MethodContext* mc, CompileResult* cr1, CompileResult* cr2);
const char* TargetArchitecture;
- const bool UseCoreDisTools;
+ const bool UseCoreDisTools;
private:
-
- void DumpCodeBlock(unsigned char *block, ULONG blocksize, void *originalAddr);
-
- bool compareCodeSection(
- MethodContext *mc,
- CompileResult *cr1,
- CompileResult *cr2,
- unsigned char *block1,
- ULONG blocksize1,
- unsigned char *datablock1,
- ULONG datablockSize1,
- void *originalBlock1,
- void *originalDataBlock1,
- void *otherCodeBlock1,
- ULONG otherCodeBlockSize1,
- unsigned char *block2,
- ULONG blocksize2,
- unsigned char *datablock2,
- ULONG datablockSize2,
- void *originalBlock2,
- void *originalDataBlock2,
- void *otherCodeBlock2,
- ULONG otherCodeBlockSize2);
-
- bool compareReadOnlyDataBlock(MethodContext *mc, CompileResult *cr1, CompileResult *cr2,
- unsigned char *block1, ULONG blocksize1, void *originalDataBlock1,
- unsigned char *block2, ULONG blocksize2, void *originalDataBlock2);
- bool compareEHInfo(MethodContext *mc, CompileResult *cr1, CompileResult *cr2);
- bool compareGCInfo(MethodContext *mc, CompileResult *cr1, CompileResult *cr2);
- bool compareVars(MethodContext *mc, CompileResult *cr1, CompileResult *cr2);
- bool compareBoundaries(MethodContext *mc, CompileResult *cr1, CompileResult *cr2);
-
- static bool compareOffsets(const void *payload,
- size_t blockOffset,
- size_t instrLen,
- uint64_t offset1,
- uint64_t offset2);
+ void DumpCodeBlock(unsigned char* block, ULONG blocksize, void* originalAddr);
+
+ bool compareCodeSection(MethodContext* mc,
+ CompileResult* cr1,
+ CompileResult* cr2,
+ unsigned char* block1,
+ ULONG blocksize1,
+ unsigned char* datablock1,
+ ULONG datablockSize1,
+ void* originalBlock1,
+ void* originalDataBlock1,
+ void* otherCodeBlock1,
+ ULONG otherCodeBlockSize1,
+ unsigned char* block2,
+ ULONG blocksize2,
+ unsigned char* datablock2,
+ ULONG datablockSize2,
+ void* originalBlock2,
+ void* originalDataBlock2,
+ void* otherCodeBlock2,
+ ULONG otherCodeBlockSize2);
+
+ bool compareReadOnlyDataBlock(MethodContext* mc,
+ CompileResult* cr1,
+ CompileResult* cr2,
+ unsigned char* block1,
+ ULONG blocksize1,
+ void* originalDataBlock1,
+ unsigned char* block2,
+ ULONG blocksize2,
+ void* originalDataBlock2);
+ bool compareEHInfo(MethodContext* mc, CompileResult* cr1, CompileResult* cr2);
+ bool compareGCInfo(MethodContext* mc, CompileResult* cr1, CompileResult* cr2);
+ bool compareVars(MethodContext* mc, CompileResult* cr1, CompileResult* cr2);
+ bool compareBoundaries(MethodContext* mc, CompileResult* cr1, CompileResult* cr2);
+
+ static bool compareOffsets(
+ const void* payload, size_t blockOffset, size_t instrLen, uint64_t offset1, uint64_t offset2);
#ifdef USE_COREDISTOOLS
- CorAsmDiff *corAsmDiff;
+ CorAsmDiff* corAsmDiff;
#endif // USE_COREDISTOOLS
#ifdef USE_MSVCDIS
DIS* GetMsVcDis();
#endif // USE_MSVCDIS
-
};
#endif // _nearDiffer