From 02fb10d98332dd2b560df2c74ee1c6e7bf89ee9b Mon Sep 17 00:00:00 2001 From: Sergey Andreenko Date: Wed, 15 May 2019 15:13:41 -0700 Subject: [PATCH] delete JitOptions struct. That was an old struct and probably nobody remembers how it was supposed to be used. --- src/jit/codegenxarch.cpp | 9 --------- src/jit/ee_il_dll.cpp | 15 --------------- src/jit/jit.h | 13 ------------- 3 files changed, 37 deletions(-) diff --git a/src/jit/codegenxarch.cpp b/src/jit/codegenxarch.cpp index de0f4d8..2c04b38 100644 --- a/src/jit/codegenxarch.cpp +++ b/src/jit/codegenxarch.cpp @@ -8485,15 +8485,6 @@ void* CodeGen::genCreateAndStoreGCInfoJIT32(unsigned codeSize, } } -#ifdef DEBUG - if (jitOpts.testMask & 128) - { - for (unsigned offs = 0; offs < codeSize; offs++) - { - gcInfo.gcFindPtrsInFrame(infoPtr, codePtr, offs); - } - } -#endif // DEBUG #endif // DUMP_GC_TABLES /* Make sure we ended up generating the expected number of bytes */ diff --git a/src/jit/ee_il_dll.cpp b/src/jit/ee_il_dll.cpp index c5d499f..10afb50 100644 --- a/src/jit/ee_il_dll.cpp +++ b/src/jit/ee_il_dll.cpp @@ -43,21 +43,6 @@ HINSTANCE g_hInst = nullptr; /*****************************************************************************/ -#ifdef DEBUG - -JitOptions jitOpts = { - nullptr, // methodName - nullptr, // className - 0.1, // CGknob - 0, // testMask - - (JitOptions*)nullptr // lastDummyField. -}; - -#endif // DEBUG - -/*****************************************************************************/ - extern "C" DLLEXPORT void __stdcall jitStartup(ICorJitHost* jitHost) { if (g_jitInitialized) diff --git a/src/jit/jit.h b/src/jit/jit.h index 5157d66..acc2c0d 100644 --- a/src/jit/jit.h +++ b/src/jit/jit.h @@ -596,19 +596,6 @@ const bool dspGCtbls = true; #ifdef DEBUG -struct JitOptions -{ - const char* methodName; // Method to display output for - const char* className; // Class to display output for - - double CGknob; // Tweakable knob for testing - unsigned testMask; // Tweakable mask for testing - - JitOptions* lastDummyField; // Ensures instantiation uses right order of arguments -}; - -extern JitOptions jitOpts; - // Forward declarations for UninitializedWord and IsUninitialized are needed by alloc.h template inline T UninitializedWord(Compiler* comp); -- 2.7.4