summaryrefslogtreecommitdiff
path: root/src/jit/unwind.h
diff options
context:
space:
mode:
authorMichelle McDaniel <adiaaida@gmail.com>2016-06-24 14:10:52 -0700
committerMichelle McDaniel <adiaaida@gmail.com>2016-07-29 09:16:39 -0700
commita1fa8c14cae981369dccf2f361b01959b215ad8f (patch)
treecfbd2c5020bacd9422a64338f513350057e3cae0 /src/jit/unwind.h
parenta812669c5737a336745f42c099a1a8a6e1aafa4f (diff)
downloadcoreclr-a1fa8c14cae981369dccf2f361b01959b215ad8f.tar.gz
coreclr-a1fa8c14cae981369dccf2f361b01959b215ad8f.tar.bz2
coreclr-a1fa8c14cae981369dccf2f361b01959b215ad8f.zip
Massage code for clang-format
This change starts the process of updating the jit code to make it ready for being formatted by clang-format. Changes mostly include reflowing comments that go past our column limit and moving comments around ifdefs so clang-format does not modify the indentation. Additionally, some header files are manually reformatted for pointer alignment and marked as clang-format off so that we do not lose the current formatting.
Diffstat (limited to 'src/jit/unwind.h')
-rw-r--r--src/jit/unwind.h21
1 files changed, 14 insertions, 7 deletions
diff --git a/src/jit/unwind.h b/src/jit/unwind.h
index 0327e97c24..c773193a96 100644
--- a/src/jit/unwind.h
+++ b/src/jit/unwind.h
@@ -25,7 +25,8 @@ const unsigned MAX_EPILOG_SIZE_BYTES = 40;
#define UWC_END 0xFF // "end" unwind code
#define UW_MAX_FRAGMENT_SIZE_BYTES (1U << 19)
#define UW_MAX_CODE_WORDS_COUNT 15 // Max number that can be encoded in the "Code Words" field of the .pdata record
-#define UW_MAX_EPILOG_START_INDEX 0xFFU // Max number that can be encoded in the "Epilog Start Index" field of the .pdata record
+#define UW_MAX_EPILOG_START_INDEX 0xFFU // Max number that can be encoded in the "Epilog Start Index" field
+ // of the .pdata record
#elif defined(_TARGET_ARM64_)
const unsigned MAX_PROLOG_SIZE_BYTES = 100;
const unsigned MAX_EPILOG_SIZE_BYTES = 100;
@@ -36,10 +37,14 @@ const unsigned MAX_EPILOG_SIZE_BYTES = 100;
#define UW_MAX_EPILOG_START_INDEX 0x3FFU
#endif // _TARGET_ARM64_
-#define UW_MAX_EPILOG_COUNT 31 // Max number that can be encoded in the "Epilog count" field of the .pdata record
-#define UW_MAX_EXTENDED_CODE_WORDS_COUNT 0xFFU // Max number that can be encoded in the "Extended Code Words" field of the .pdata record
-#define UW_MAX_EXTENDED_EPILOG_COUNT 0xFFFFU // Max number that can be encoded in the "Extended Epilog Count" field of the .pdata record
-#define UW_MAX_EPILOG_START_OFFSET 0x3FFFFU // Max number that can be encoded in the "Epilog Start Offset" field of the .pdata record
+#define UW_MAX_EPILOG_COUNT 31 // Max number that can be encoded in the "Epilog count" field
+ // of the .pdata record
+#define UW_MAX_EXTENDED_CODE_WORDS_COUNT 0xFFU // Max number that can be encoded in the "Extended Code Words"
+ // field of the .pdata record
+#define UW_MAX_EXTENDED_EPILOG_COUNT 0xFFFFU // Max number that can be encoded in the "Extended Epilog Count"
+ // field of the .pdata record
+#define UW_MAX_EPILOG_START_OFFSET 0x3FFFFU // Max number that can be encoded in the "Epilog Start Offset"
+ // field of the .pdata record
//
// Forward declaration of class defined in emit.h
@@ -692,7 +697,8 @@ private:
// set of epilogs, for this function/funclet.
bool ufiInProlog;
- static const unsigned UFI_INITIALIZED_PATTERN = 0x0FACADE0; // Something unlikely to be the fill pattern for uninitialized memory
+ static const unsigned UFI_INITIALIZED_PATTERN = 0x0FACADE0; // Something unlikely to be the fill pattern for
+ // uninitialized memory
unsigned ufiInitialized;
#endif // DEBUG
@@ -816,7 +822,8 @@ private:
#ifdef DEBUG
- static const unsigned UWI_INITIALIZED_PATTERN = 0x0FACADE1; // Something unlikely to be the fill pattern for uninitialized memory
+ static const unsigned UWI_INITIALIZED_PATTERN = 0x0FACADE1; // Something unlikely to be the fill pattern for
+ // uninitialized memory
unsigned uwiInitialized;
#endif // DEBUG