summaryrefslogtreecommitdiffstats
path: root/source/compiler-core/slang-artifact.h
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2023-03-22 12:04:33 -0400
committerGitHub <noreply@github.com>2023-03-22 12:04:33 -0400
commitd4f99c8bac8b28f18c864a717d8833db6a1c872d (patch)
treeebea06c019130d8248d5e4f6bccf5e4b2649e3cb /source/compiler-core/slang-artifact.h
parentd8a40abba5223fbcb56c52b04ccb88c02bbaf79f (diff)
Source map obfuscation (#2717)
* #include an absolute path didn't work - because paths were taken to always be relative. * WIP source map. * Split out handling of RttiTypeFuncs to a map type. * Make RttiTypeFuncsMap hold default impls. * Slightly more sophisticated RttiTypeFuncsMap * Source map decoding. * Fix tabs. * Fix asserts due to negative values. * Use less obscure mechanisms in SourceMap. * Source map decoding. Simplifying SourceMap usage. * First attempt at ouputting a source map as part of emit. * Added support for -source-map option. SourceMap is added to the artifact. * Small improvements around column calculation in SourceWriter. * Source Loc obuscation WIP. * Fix some issues around SourceMap obfuscation. * Split out obfuscation into its own file. * Keep obfuscated SourceMap even through serialization bottleneck.
Diffstat (limited to 'source/compiler-core/slang-artifact.h')
-rw-r--r--source/compiler-core/slang-artifact.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/compiler-core/slang-artifact.h b/source/compiler-core/slang-artifact.h
index c51ee729a..cc4d3e9fd 100644
--- a/source/compiler-core/slang-artifact.h
+++ b/source/compiler-core/slang-artifact.h
@@ -107,6 +107,8 @@ enum class ArtifactKind : uint8_t
Instance, ///< Primary representation is an interface/class instance
+ Json, ///< It's JSON
+
CountOf,
};
@@ -180,7 +182,7 @@ enum class ArtifactPayload : uint8_t
PdbDebugInfo, ///< PDB debug info
- SourceMap, ///< SourceMap
+ SourceMap, ///< A source map
CountOf,
};
@@ -207,6 +209,8 @@ enum class ArtifactStyle : uint8_t
Kernel, ///< Compiled as `GPU kernel` style.
Host, ///< Compiled in `host` style
+ Obfuscated, ///< Holds something specific to obfuscation, such as an obfuscated source map
+
CountOf,
};