Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(8)

Delta Between Two Patch Sets: src/cmd/gc/go.h

Issue 4515167: code review 4515167: gc: elide call to runtime.closure for function literals... (Closed)
Left Patch Set: Created 13 years, 10 months ago
Right Patch Set: diff -r b99566fe890a https://go.googlecode.com/hg/ Created 13 years, 10 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « src/cmd/gc/closure.c ('k') | src/cmd/gc/walk.c » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 // Copyright 2009 The Go Authors. All rights reserved. 1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 #include <u.h> 5 #include <u.h>
6 #include <libc.h> 6 #include <libc.h>
7 #include <bio.h> 7 #include <bio.h>
8 8
9 #undef OAPPEND 9 #undef OAPPEND
10 10
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after
810 Bits bor(Bits a, Bits b); 810 Bits bor(Bits a, Bits b);
811 int bset(Bits a, uint n); 811 int bset(Bits a, uint n);
812 812
813 /* 813 /*
814 * closure.c 814 * closure.c
815 */ 815 */
816 Node* closurebody(NodeList *body); 816 Node* closurebody(NodeList *body);
817 void closurehdr(Node *ntype); 817 void closurehdr(Node *ntype);
818 void typecheckclosure(Node *func); 818 void typecheckclosure(Node *func);
819 Node* walkclosure(Node *func, NodeList **init); 819 Node* walkclosure(Node *func, NodeList **init);
820 void walkcallclosure(Node *n, NodeList **init);
820 821
821 /* 822 /*
822 * const.c 823 * const.c
823 */ 824 */
824 int cmpslit(Node *l, Node *r); 825 int cmpslit(Node *l, Node *r);
825 int consttype(Node *n); 826 int consttype(Node *n);
826 void convconst(Node *con, Type *t, Val *val); 827 void convconst(Node *con, Type *t, Val *val);
827 void convlit(Node **np, Type *t); 828 void convlit(Node **np, Type *t);
828 void convlit1(Node **np, Type *t, int explicit); 829 void convlit1(Node **np, Type *t, int explicit);
829 void defaultlit(Node **np, Type *t); 830 void defaultlit(Node **np, Type *t);
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
1241 int isfat(Type*); 1242 int isfat(Type*);
1242 Plist* newplist(void); 1243 Plist* newplist(void);
1243 Node* nodarg(Type*, int); 1244 Node* nodarg(Type*, int);
1244 void nopout(Prog*); 1245 void nopout(Prog*);
1245 void patch(Prog*, Prog*); 1246 void patch(Prog*, Prog*);
1246 void zfile(Biobuf *b, char *p, int n); 1247 void zfile(Biobuf *b, char *p, int n);
1247 void zhist(Biobuf *b, int line, vlong offset); 1248 void zhist(Biobuf *b, int line, vlong offset);
1248 void zname(Biobuf *b, Sym *s, int t); 1249 void zname(Biobuf *b, Sym *s, int t);
1249 void data(void); 1250 void data(void);
1250 void text(void); 1251 void text(void);
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b