| 1209 | } |
| 1210 | |
| 1211 | void 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 | |
| 1229 | void VMDisassemblyDumper::Flush() |
| 1230 | { |
no test coverage detected