Exemplo n.º 1
0
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src) {
	nimfr("asgnRefNoCycle", "gc.nim")
	nimln(251, "gc.nim");
	{
		Tcell46747* c;
		if (!!((src == NIM_NIL))) goto LA3;
		nimln(252, "gc.nim");
		c = usrtocell_50246(src);
		nimln(169, "gc.nim");
		(*c).refcount += ((NI) 8);
	}
	LA3: ;
	nimln(254, "gc.nim");
	{
		Tcell46747* c;
		if (!!(((*dest) == NIM_NIL))) goto LA7;
		nimln(255, "gc.nim");
		c = usrtocell_50246((*dest));
		nimln(256, "gc.nim");
		{
			nimln(167, "gc.nim");
			(*c).refcount -= ((NI) 8);
			nimln(168, "gc.nim");
			if (!((NU64)((*c).refcount) < (NU64)(((NI) 8)))) goto LA11;
			nimln(257, "gc.nim");
			rtladdzct_51804(c);
		}
		LA11: ;
	}
	LA7: ;
	nimln(258, "gc.nim");
	(*dest) = src;
	popFrame();
}
Exemplo n.º 2
0
static N_INLINE(void, asgnRef)(void** dest, void* src) {
    nimfr("asgnRef", "gc.nim")
    nimln(244, "gc.nim");
    {
        Tcell46746* LOC5;
        if (!!((src == NIM_NIL))) goto LA3;
        LOC5 = 0;
        LOC5 = usrtocell_50246(src);
        incref_52622(LOC5);
    }
LA3:
    ;
    nimln(245, "gc.nim");
    {
        Tcell46746* LOC10;
        if (!!(((*dest) == NIM_NIL))) goto LA8;
        LOC10 = 0;
        LOC10 = usrtocell_50246((*dest));
        decref_52204(LOC10);
    }
LA8:
    ;
    nimln(246, "gc.nim");
    (*dest) = src;
    popFrame();
}
Exemplo n.º 3
0
static N_INLINE(void, nimGCunref)(void* p) {
	Tcell46747* LOC1;
	nimfr("nimGCunref", "gc.nim")
	nimln(223, "gc.nim");
	LOC1 = 0;
	LOC1 = usrtocell_50246(p);
	decref_52204(LOC1);
	popFrame();
}
Exemplo n.º 4
0
static N_INLINE(void, nimGCunrefNoCycle)(void* p) {
	Tcell46747* c;
	nimfr("nimGCunrefNoCycle", "gc.nim")
	nimln(233, "gc.nim");
	c = usrtocell_50246(p);
	nimln(235, "gc.nim");
	{
		nimln(167, "gc.nim");
		(*c).refcount -= ((NI) 8);
		nimln(168, "gc.nim");
		if (!((NU32)((*c).refcount) < (NU32)(((NI) 8)))) goto LA3;
		nimln(236, "gc.nim");
		rtladdzct_51804(c);
	}
	LA3: ;
	popFrame();
}