summaryrefslogtreecommitdiff
path: root/src/jit/jitconfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/jit/jitconfig.h')
-rw-r--r--src/jit/jitconfig.h53
1 files changed, 39 insertions, 14 deletions
diff --git a/src/jit/jitconfig.h b/src/jit/jitconfig.h
index 076d920192..d5b4e30796 100644
--- a/src/jit/jitconfig.h
+++ b/src/jit/jitconfig.h
@@ -17,11 +17,11 @@ public:
struct MethodName
{
MethodName* m_next;
- int m_methodNameStart;
- int m_methodNameLen;
- int m_classNameStart;
- int m_classNameLen;
- int m_numArgs;
+ int m_methodNameStart;
+ int m_methodNameLen;
+ int m_classNameStart;
+ int m_classNameLen;
+ int m_numArgs;
};
const char* m_list;
@@ -31,26 +31,46 @@ public:
MethodSet& operator=(const MethodSet& other) = delete;
public:
- MethodSet() { }
- inline const char* list() const { return m_list; }
+ MethodSet()
+ {
+ }
+ inline const char* list() const
+ {
+ return m_list;
+ }
void initialize(const wchar_t* list, ICorJitHost* host);
void destroy(ICorJitHost* host);
- inline bool isEmpty() const { return m_names == nullptr; }
+ inline bool isEmpty() const
+ {
+ return m_names == nullptr;
+ }
bool contains(const char* methodName, const char* className, CORINFO_SIG_INFO* sigInfo) const;
};
private:
#define CONFIG_INTEGER(name, key, defaultValue) int m_##name;
#define CONFIG_STRING(name, key) const wchar_t* m_##name;
-#define CONFIG_METHODSET(name, key) MethodSet m_##name;
+#define CONFIG_METHODSET(name, key) MethodSet m_##name;
#include "jitconfigvalues.h"
public:
-#define CONFIG_INTEGER(name, key, defaultValue) inline int name() const { return m_##name; }
-#define CONFIG_STRING(name, key) inline const wchar_t* name() const { return m_##name; }
-#define CONFIG_METHODSET(name, key) inline const MethodSet& name() const { return m_##name; }
+#define CONFIG_INTEGER(name, key, defaultValue) \
+ inline int name() const \
+ { \
+ return m_##name; \
+ }
+#define CONFIG_STRING(name, key) \
+ inline const wchar_t* name() const \
+ { \
+ return m_##name; \
+ }
+#define CONFIG_METHODSET(name, key) \
+ inline const MethodSet& name() const \
+ { \
+ return m_##name; \
+ }
#include "jitconfigvalues.h"
private:
@@ -60,9 +80,14 @@ private:
JitConfigValues& operator=(const JitConfigValues& other) = delete;
public:
- JitConfigValues() {}
+ JitConfigValues()
+ {
+ }
- inline bool isInitialized() const { return m_isInitialized != 0; }
+ inline bool isInitialized() const
+ {
+ return m_isInitialized != 0;
+ }
void initialize(ICorJitHost* host);
void destroy(ICorJitHost* host);
};