MCPcopy Create free account
hub / github.com/WheretIB/nullc / GenCodeCmdCheckedRet

Function GenCodeCmdCheckedRet

NULLC/CodeGen_X86.cpp:3245–3254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3243char* (*checkedCopyPtr)(char*, int, char*, unsigned) = checkedCopy;
3244
3245void GenCodeCmdCheckedRet(VMCmd cmd)
3246{
3247 // stack top: ptr, size
3248 EMIT_OP_NUM(o_push, cmd.argument);
3249 EMIT_OP_REG_RPTR(o_lea, rEBX, sNONE, rEBP, paramBase);
3250 EMIT_OP_REG(o_push, rEBX);
3251 EMIT_OP_RPTR(o_call, sDWORD, rNONE, 1, rNONE, (unsigned)(intptr_t)&checkedCopyPtr);
3252 EMIT_OP_REG_NUM(o_add, rESP, 12);
3253 EMIT_OP_REG(o_push, rEAX);
3254}
3255
3256#endif

Callers

nothing calls this directly

Calls 5

EMIT_OP_NUMFunction · 0.85
EMIT_OP_REG_RPTRFunction · 0.85
EMIT_OP_REGFunction · 0.85
EMIT_OP_RPTRFunction · 0.85
EMIT_OP_REG_NUMFunction · 0.85

Tested by

no test coverage detected