summaryrefslogtreecommitdiff
path: root/source/slang-record-replay/replay/json-consumer.cpp
diff options
context:
space:
mode:
authorJay Kwak <82421531+jkwak-work@users.noreply.github.com>2024-10-25 10:14:22 -0700
committerGitHub <noreply@github.com>2024-10-25 10:14:22 -0700
commit4bad669bbc5ec3ff77321f083c59cde87eb10229 (patch)
treebf0abc916692cf34e804469bba400f2b04172472 /source/slang-record-replay/replay/json-consumer.cpp
parentef40d3044cf75ec3d7b24a43257fa744b45274f9 (diff)
Replace stdlib on Slang API with CoreModule (#5405)
This is a breaking change in a way that the Slang API function names are changed. All of them are commented as "experimental" and we wouldn't provide a back-ward compatibility for them. Following functions are renamed: compileStdLib() -> compileCoreModule() loadStdLib() -> loadCoreModule() saveStdLib() -> saveCoreModule() slang_createGlobalSessionWithoutStdLib() -> slang_createGlobalSessionWithoutCoreModule() slang_getEmbeddedStdLib() -> slang_getEmbeddedCoreModule() hasDeferredStdLib() -> hasDeferredCoreModule() Following command-line arguments are renamed: "-load-stdlib" -> "-load-core-module" "-save-stdlib" -> "-save-core-module" "-save-stdlib-bin-source" -> "-save-core-module-bin-source" "-compile-stdlib" -> "-compile-core-module"
Diffstat (limited to 'source/slang-record-replay/replay/json-consumer.cpp')
-rw-r--r--source/slang-record-replay/replay/json-consumer.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/source/slang-record-replay/replay/json-consumer.cpp b/source/slang-record-replay/replay/json-consumer.cpp
index 27b2830d6..21fd45807 100644
--- a/source/slang-record-replay/replay/json-consumer.cpp
+++ b/source/slang-record-replay/replay/json-consumer.cpp
@@ -787,17 +787,17 @@ namespace SlangRecord
}
- void JsonConsumer::IGlobalSession_compileStdLib(ObjectID objectId, slang::CompileStdLibFlags flags)
+ void JsonConsumer::IGlobalSession_compileCoreModule(ObjectID objectId, slang::CompileCoreModuleFlags flags)
{
SANITY_CHECK();
Slang::StringBuilder builder;
int indent = 0;
{
- ScopeWritterForKey scopeWritter(&builder, &indent, "IGlobalSession::compileStdLib");
+ ScopeWritterForKey scopeWritter(&builder, &indent, "IGlobalSession::compileCoreModule");
{
_writePair(builder, indent, "this", Slang::StringUtil::makeStringWithFormat("0x%llX", objectId));
- _writePairNoComma(builder, indent, "flags", CompileStdLibFlagsToString(flags));
+ _writePairNoComma(builder, indent, "flags", CompileCoreModuleFlagsToString(flags));
}
}
@@ -806,19 +806,19 @@ namespace SlangRecord
}
- void JsonConsumer::IGlobalSession_loadStdLib(ObjectID objectId, const void* stdLib, size_t stdLibSizeInBytes)
+ void JsonConsumer::IGlobalSession_loadCoreModule(ObjectID objectId, const void* coreModule, size_t coreModuleSizeInBytes)
{
SANITY_CHECK();
Slang::StringBuilder builder;
int indent = 0;
- _writeString(builder, indent, "IGlobalSession::loadStdLib: {\n");
+ _writeString(builder, indent, "IGlobalSession::loadCoreModule: {\n");
{
- ScopeWritterForKey scopeWritter(&builder, &indent, "IGlobalSession::loadStdLib");
+ ScopeWritterForKey scopeWritter(&builder, &indent, "IGlobalSession::loadCoreModule");
{
_writePair(builder, indent, "this", Slang::StringUtil::makeStringWithFormat("0x%llX", objectId));
- _writePair(builder, indent, "stdLib-Ignore-Data", Slang::StringUtil::makeStringWithFormat("0x%llX", objectId));
- _writePairNoComma(builder, indent, "stdLibSizeInBytes", (uint32_t)stdLibSizeInBytes);
+ _writePair(builder, indent, "coreModule-Ignore-Data", Slang::StringUtil::makeStringWithFormat("0x%llX", objectId));
+ _writePairNoComma(builder, indent, "coreModuleSizeInBytes", (uint32_t)coreModuleSizeInBytes);
}
}
@@ -826,14 +826,14 @@ namespace SlangRecord
m_fileStream.flush();
}
- void JsonConsumer::IGlobalSession_saveStdLib(ObjectID objectId, SlangArchiveType archiveType, ObjectID outBlobId)
+ void JsonConsumer::IGlobalSession_saveCoreModule(ObjectID objectId, SlangArchiveType archiveType, ObjectID outBlobId)
{
SANITY_CHECK();
Slang::StringBuilder builder;
int indent = 0;
{
- ScopeWritterForKey scopeWritter(&builder, &indent, "IGlobalSession::saveStdLib");
+ ScopeWritterForKey scopeWritter(&builder, &indent, "IGlobalSession::saveCoreModule");
{
_writePair(builder, indent, "this", Slang::StringUtil::makeStringWithFormat("0x%llX", objectId));
_writePair(builder, indent, "archiveType", SlangArchiveTypeToString(archiveType));