| 1 | // |
|---|---|
| 2 | // Copyright (c) Microsoft. All rights reserved. |
| 3 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. |
| 4 | // |
| 5 | |
| 6 | //---------------------------------------------------------- |
| 7 | // SpmiDumpHelper.h - a helper to dump structs that are used in JitEEInterface calls and spmi collections. |
| 8 | //---------------------------------------------------------- |
| 9 | |
| 10 | #ifndef _SpmiDumpHelper |
| 11 | #define _SpmiDumpHelper |
| 12 | |
| 13 | #include "methodcontext.h" |
| 14 | |
| 15 | class SpmiDumpHelper |
| 16 | { |
| 17 | public: |
| 18 | static std::string DumpAgnostic_CORINFO_RESOLVED_TOKENin( |
| 19 | const MethodContext::Agnostic_CORINFO_RESOLVED_TOKENin& tokenIn); |
| 20 | static std::string DumpAgnostic_CORINFO_RESOLVED_TOKENout( |
| 21 | const MethodContext::Agnostic_CORINFO_RESOLVED_TOKENout& tokenOut); |
| 22 | static std::string DumpAgnostic_CORINFO_RESOLVED_TOKEN(const MethodContext::Agnostic_CORINFO_RESOLVED_TOKEN& token); |
| 23 | static std::string DumpAgnostic_CORINFO_LOOKUP_KIND(const MethodContext::Agnostic_CORINFO_LOOKUP_KIND& lookupKind); |
| 24 | static std::string DumpAgnostic_CORINFO_CONST_LOOKUP( |
| 25 | const MethodContext::Agnostic_CORINFO_CONST_LOOKUP& constLookup); |
| 26 | static std::string DumpAgnostic_CORINFO_RUNTIME_LOOKUP( |
| 27 | const MethodContext::Agnostic_CORINFO_RUNTIME_LOOKUP& lookup); |
| 28 | static std::string DumpAgnostic_CORINFO_LOOKUP(const MethodContext::Agnostic_CORINFO_LOOKUP& lookup); |
| 29 | static std::string DumpAgnostic_CORINFO_SIG_INFO(const MethodContext::Agnostic_CORINFO_SIG_INFO& sigInfo); |
| 30 | |
| 31 | private: |
| 32 | static const int MAX_BUFFER_SIZE = 1000; |
| 33 | }; |
| 34 | |
| 35 | #endif |
| 36 |