| 156 | }; |
| 157 | |
| 158 | struct ByteCode |
| 159 | { |
| 160 | unsigned int size; // Overall size |
| 161 | |
| 162 | unsigned int typeCount; |
| 163 | ExternTypeInfo *firstType; |
| 164 | #ifndef _M_X64 |
| 165 | unsigned int ptrPad0; |
| 166 | #endif |
| 167 | |
| 168 | unsigned int dependsCount; |
| 169 | unsigned int offsetToFirstModule; |
| 170 | ExternModuleInfo *firstModule; |
| 171 | #ifndef _M_X64 |
| 172 | unsigned int ptrPad1; |
| 173 | #endif |
| 174 | |
| 175 | unsigned int globalVarSize; // size of all global variables, in bytes |
| 176 | unsigned int variableCount; // variable info count |
| 177 | unsigned int variableExportCount; // eaxported variable count |
| 178 | ExternVarInfo *firstVar; |
| 179 | #ifndef _M_X64 |
| 180 | unsigned int ptrPad2; |
| 181 | #endif |
| 182 | unsigned int offsetToFirstVar; |
| 183 | |
| 184 | unsigned int functionCount; // |
| 185 | unsigned int moduleFunctionCount; |
| 186 | unsigned int offsetToFirstFunc; // Offset from the beginning of a structure to the first ExternFuncInfo data |
| 187 | ExternFuncInfo *firstFunc; |
| 188 | #ifndef _M_X64 |
| 189 | unsigned int ptrPad3; |
| 190 | #endif |
| 191 | |
| 192 | unsigned int localCount; |
| 193 | unsigned int offsetToLocals; |
| 194 | ExternLocalInfo *firstLocal; |
| 195 | #ifndef _M_X64 |
| 196 | unsigned int ptrPad4; |
| 197 | #endif |
| 198 | |
| 199 | unsigned int closureListCount; |
| 200 | |
| 201 | unsigned int infoSize; |
| 202 | unsigned int offsetToInfo; |
| 203 | |
| 204 | unsigned int codeSize; |
| 205 | unsigned int offsetToCode; |
| 206 | unsigned int globalCodeStart; |
| 207 | char *code; // needs fix up after load |
| 208 | #ifndef _M_X64 |
| 209 | unsigned int ptrPad5; |
| 210 | #endif |
| 211 | |
| 212 | unsigned int symbolLength; |
| 213 | unsigned int offsetToSymbols; |
| 214 | char *debugSymbols; |
| 215 | #ifndef _M_X64 |
nothing calls this directly
no outgoing calls
no test coverage detected