MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / GetJmpAddr

Function GetJmpAddr

src/Chain/libraries/glua/glua_decompile.cpp:311–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309// static int errorCode;
310
311int GetJmpAddr(Function* F, int addr) {
312 int real_end = addr;
313 if (real_end >= F->f->sizecode) {
314 real_end = F->f->sizecode;
315 return real_end;
316 }
317 if (real_end < 0) {
318 real_end = -1;
319 return real_end;
320 }
321 while (GET_OPCODE(F->f->code[real_end]) == OP_JMP) {
322 real_end = GETARG_sBx(F->f->code[real_end]) + real_end + 1;
323 }
324 return real_end;
325}
326
327void RawAddStatement(Function* F, std::stringstream &ss);
328void DeclareLocal(GluaDecompileContextP ctx, Function* F, int ixx, std::string value);

Callers 1

ProcessCodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected