From a399c977c938c97082e61a01725cfe6d9db34867 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Tue, 25 Aug 2009 15:54:25 -0700 Subject: rename runtime internals to have modern names (array->slice etc) R=rsc DELTA=444 (179 added, 177 deleted, 88 changed) OCL=33847 CL=33849 --- src/cmd/gc/sinit.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/cmd/gc/sinit.c') diff --git a/src/cmd/gc/sinit.c b/src/cmd/gc/sinit.c index 4b46f7c7c..84e844c27 100644 --- a/src/cmd/gc/sinit.c +++ b/src/cmd/gc/sinit.c @@ -146,8 +146,8 @@ slicerewrite(Node *n) while(n->op == OCONVNOP) n = n->left; - // call to newarray - find nel argument - nel = findarg(n, "nel", "newarray"); + // call to makeslice - find nel argument + nel = findarg(n, "nel", "makeslice"); if(nel == N || !isslice(n->type)) goto no; @@ -177,8 +177,8 @@ maprewrite(Node *n) Type *ta, *tb; Node *a; - // call to newarray - find nel argument - nel = findarg(n, "hint", "newmap"); + // call to makemap - find len argument + nel = findarg(n, "hint", "makemap"); if(nel == N) goto no; ta = n->type; @@ -371,7 +371,7 @@ sli: if(r->op != OAS && r->op != OEMPTY) continue; - // first usage "nam = (newarray CALL args)" + // first usage "nam = (makeslice CALL args)" if(r->right != N && sametmp(r->left, nam)) { w = slicerewrite(r->right); if(w == N) @@ -427,7 +427,7 @@ return; if(r->op != OAS && r->op != OEMPTY) continue; - // first usage "nam = (newmap CALL args)" + // first usage "nam = (makemap CALL args)" if(r->right != N && sametmp(r->left, nam)) { w = maprewrite(r->right); if(w == N) -- cgit v1.2.3