All pastes #35295 Raw Edit

Unnamed

public text v1 · immutable
#35295 ·published 2005-12-30 18:36 UTC
rendered paste body
static void JITCoder_LoadArg(ILCoder *coder, ILUInt32 argNum, ILType *type)
{

        ILJITCoder *jitCoder = _ILCoderToILJITCoder(coder);

        // we need paramno + 1 because the zero argument is ILExecThread which is added as param 0

        ILJitValue param = jit_value_get_param(jitCoder->function, argNum + 1);
        ILJitValue newParam = ConvertToStack(jitCoder, param);
        jitCoder->jitStack[jitCoder->stackTop] = newParam;
        JITC_ADJUST(jitCoder, 1);
}