]> Cypherpunks repositories - gostls13.git/commitdiff
5g, 6g, 8g: fix comments in method call generation
authorAnthony Martin <ality@pbrane.org>
Mon, 20 Jun 2011 18:49:29 +0000 (14:49 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 20 Jun 2011 18:49:29 +0000 (14:49 -0400)
R=golang-dev
CC=golang-dev
https://golang.org/cl/4652042

src/cmd/5g/ggen.c
src/cmd/6g/ggen.c
src/cmd/8g/ggen.c

index b19698cbd7106386ebfbc1fe9b2f8775b236d619..d5b00b34d50ae9b6dfe14225d1b11ac370b3d1fb 100644 (file)
@@ -173,13 +173,13 @@ cgen_callinter(Node *n, Node *res, int proc)
        nodindreg(&nodsp, types[tptr], REGSP);
        nodsp.xoffset = 4;
        nodo.xoffset += widthptr;
-       cgen(&nodo, &nodsp);    // 4(SP) = 8(REG) -- i.s
+       cgen(&nodo, &nodsp);    // 4(SP) = 4(REG) -- i.data
 
        nodo.xoffset -= widthptr;
-       cgen(&nodo, &nodr);     // REG = 0(REG) -- i.m
+       cgen(&nodo, &nodr);     // REG = 0(REG) -- i.tab
 
        nodo.xoffset = n->left->xoffset + 3*widthptr + 8;
-       cgen(&nodo, &nodr);     // REG = 32+offset(REG) -- i.m->fun[f]
+       cgen(&nodo, &nodr);     // REG = 20+offset(REG) -- i.tab->fun[f]
 
        // BOTCH nodr.type = fntype;
        nodr.type = n->left->type;
index 7922b2145f27a05e4e8e0353dd105998152e2da8..9e7fbab0d6472a0f6efeac921c8186500eb52186 100644 (file)
@@ -128,13 +128,13 @@ cgen_callinter(Node *n, Node *res, int proc)
 
        nodindreg(&nodsp, types[tptr], D_SP);
        nodo.xoffset += widthptr;
-       cgen(&nodo, &nodsp);    // 0(SP) = 8(REG) -- i.s
+       cgen(&nodo, &nodsp);    // 0(SP) = 8(REG) -- i.data
 
        nodo.xoffset -= widthptr;
-       cgen(&nodo, &nodr);     // REG = 0(REG) -- i.m
+       cgen(&nodo, &nodr);     // REG = 0(REG) -- i.tab
 
        nodo.xoffset = n->left->xoffset + 3*widthptr + 8;
-       cgen(&nodo, &nodr);     // REG = 32+offset(REG) -- i.m->fun[f]
+       cgen(&nodo, &nodr);     // REG = 32+offset(REG) -- i.tab->fun[f]
 
        // BOTCH nodr.type = fntype;
        nodr.type = n->left->type;
index 89a5e42697e95eed760e5e144bdcd185879b3587..6db0474c9938d72ec417cb3b7f58614ee3214faf 100644 (file)
@@ -167,15 +167,15 @@ cgen_callinter(Node *n, Node *res, int proc)
 
        nodindreg(&nodsp, types[tptr], D_SP);
        nodo.xoffset += widthptr;
-       cgen(&nodo, &nodsp);    // 0(SP) = 8(REG) -- i.s
+       cgen(&nodo, &nodsp);    // 0(SP) = 4(REG) -- i.data
 
        nodo.xoffset -= widthptr;
-       cgen(&nodo, &nodr);     // REG = 0(REG) -- i.m
+       cgen(&nodo, &nodr);     // REG = 0(REG) -- i.tab
 
        if(n->left->xoffset == BADWIDTH)
                fatal("cgen_callinter: badwidth");
        nodo.xoffset = n->left->xoffset + 3*widthptr + 8;
-       cgen(&nodo, &nodr);     // REG = 32+offset(REG) -- i.m->fun[f]
+       cgen(&nodo, &nodr);     // REG = 20+offset(REG) -- i.tab->fun[f]
 
        // BOTCH nodr.type = fntype;
        nodr.type = n->left->type;