MCPcopy Create free account
hub / github.com/ZDoom/Raze / Write

Method Write

source/common/scripting/backend/vmbuilder.cpp:1211–1227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1209}
1210
1211void VMDisassemblyDumper::Write(VMScriptFunction *sfunc, const FString &fname)
1212{
1213 if (dump != nullptr)
1214 {
1215 if (namefilter.Len() > 0 && fname.MakeLower().IndexOf(namefilter) == -1)
1216 {
1217 return;
1218 }
1219
1220 assert(sfunc != nullptr);
1221
1222 DumpFunction(dump, sfunc, fname.GetChars(), (int)fname.Len());
1223 codesize += sfunc->CodeSize;
1224 datasize += sfunc->LineInfoCount * sizeof(FStatementInfo) + sfunc->ExtraSpace + sfunc->NumKonstD * sizeof(int) +
1225 sfunc->NumKonstA * sizeof(void*) + sfunc->NumKonstF * sizeof(double) + sfunc->NumKonstS * sizeof(FString);
1226 }
1227}
1228
1229void VMDisassemblyDumper::Flush()
1230{

Callers 2

ParseOneScriptFunction · 0.45
BuildMethod · 0.45

Calls 5

DumpFunctionFunction · 0.85
LenMethod · 0.80
MakeLowerMethod · 0.80
IndexOfMethod · 0.45
GetCharsMethod · 0.45

Tested by

no test coverage detected