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

Function GenCodeCmdCloseUpvalues

NULLC/CodeGen_X86.cpp:3182–3193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3180void (*upvaluesCloseFunc)() = (void(*)())CloseUpvalues;
3181
3182void GenCodeCmdCloseUpvalues(VMCmd cmd)
3183{
3184 EMIT_COMMENT("CLOSEUPVALUES");
3185
3186 EMIT_OP_NUM(o_push, cmd.argument);
3187 EMIT_OP_NUM(o_push, cmd.flag);
3188 EMIT_OP_REG_RPTR(o_lea, rEBX, sNONE, rEBP, paramBase);
3189 EMIT_OP_REG(o_push, rEBX);
3190 EMIT_OP_REG_NUM(o_mov, rECX, (int)(intptr_t)upvaluesCloseFunc);
3191 EMIT_OP_REG(o_call, rECX);
3192 EMIT_OP_REG_NUM(o_add, rESP, 12);
3193}
3194
3195void GenCodeCmdConvertPtr(VMCmd cmd)
3196{

Callers

nothing calls this directly

Calls 5

EMIT_COMMENTFunction · 0.85
EMIT_OP_NUMFunction · 0.85
EMIT_OP_REG_RPTRFunction · 0.85
EMIT_OP_REGFunction · 0.85
EMIT_OP_REG_NUMFunction · 0.85

Tested by

no test coverage detected