diff options
| author | Keith Randall <khr@golang.org> | 2013-08-12 13:47:18 -0700 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2013-08-12 13:47:18 -0700 |
| commit | e838334beb38c20d2b4035b53ec4e3e3487844f9 (patch) | |
| tree | 3e098b463e89455884e6a15c019bee84c522e088 /src/pkg/runtime/hashmap.c | |
| parent | 2791ef0b6784f487738b7dbe6bda520b426131f3 (diff) | |
| download | go-e838334beb38c20d2b4035b53ec4e3e3487844f9.tar.xz | |
runtime: change textflags from numbers to symbols
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/12798043
Diffstat (limited to 'src/pkg/runtime/hashmap.c')
| -rw-r--r-- | src/pkg/runtime/hashmap.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/pkg/runtime/hashmap.c b/src/pkg/runtime/hashmap.c index 4b51436dc2..6b89082931 100644 --- a/src/pkg/runtime/hashmap.c +++ b/src/pkg/runtime/hashmap.c @@ -593,6 +593,7 @@ static uint8 empty_value[MAXVALUESIZE]; #define SLOW_EQ(x,y) runtime·memeq((x).str, (y).str, (x).len) #define MAYBE_EQ(x,y) (*(CHECKTYPE*)(x).str == *(CHECKTYPE*)(y).str && *(CHECKTYPE*)((x).str + (x).len - sizeof(CHECKTYPE)) == *(CHECKTYPE*)((y).str + (x).len - sizeof(CHECKTYPE))) #include "hashmap_fast.c" +#include "../../cmd/ld/textflag.h" static void hash_insert(MapType *t, Hmap *h, void *key, void *value) @@ -1181,7 +1182,7 @@ runtime·mapaccess(MapType *t, Hmap *h, byte *ak, byte *av, bool *pres) } // mapaccess1(hmap *map[any]any, key any) (val any); -#pragma textflag 7 +#pragma textflag NOSPLIT void runtime·mapaccess1(MapType *t, Hmap *h, ...) { @@ -1213,7 +1214,7 @@ runtime·mapaccess1(MapType *t, Hmap *h, ...) } // mapaccess2(hmap *map[any]any, key any) (val any, pres bool); -#pragma textflag 7 +#pragma textflag NOSPLIT void runtime·mapaccess2(MapType *t, Hmap *h, ...) { @@ -1297,7 +1298,7 @@ runtime·mapassign(MapType *t, Hmap *h, byte *ak, byte *av) } // mapassign1(mapType *type, hmap *map[any]any, key any, val any); -#pragma textflag 7 +#pragma textflag NOSPLIT void runtime·mapassign1(MapType *t, Hmap *h, ...) { @@ -1315,7 +1316,7 @@ runtime·mapassign1(MapType *t, Hmap *h, ...) } // mapdelete(mapType *type, hmap *map[any]any, key any) -#pragma textflag 7 +#pragma textflag NOSPLIT void runtime·mapdelete(MapType *t, Hmap *h, ...) { @@ -1445,7 +1446,7 @@ reflect·mapiternext(struct hash_iter *it) } // mapiter1(hiter *any) (key any); -#pragma textflag 7 +#pragma textflag NOSPLIT void runtime·mapiter1(struct hash_iter *it, ...) { @@ -1526,7 +1527,7 @@ reflect·maplen(Hmap *h, intgo len) } // mapiter2(hiter *any) (key any, val any); -#pragma textflag 7 +#pragma textflag NOSPLIT void runtime·mapiter2(struct hash_iter *it, ...) { |
