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

Delta Between Two Patch Sets: src/pkg/runtime/funcdata.h

Issue 12328044: code review 12328044: cmd/cc, cmd/gc, runtime: emit bitmaps for scanning locals. (Closed)
Left Patch Set: Created 11 years, 7 months ago
Right Patch Set: diff -r 6058f523a441 https://code.google.com/p/go/ Created 11 years, 7 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/pgen.c ('k') | src/pkg/runtime/mgc0.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 2013 The Go Authors. All rights reserved. 1 // Copyright 2013 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 // This file defines the IDs for PCDATA and FUNCDATA instructions 5 // This file defines the IDs for PCDATA and FUNCDATA instructions
6 // in Go binaries. It is included by both C and assembly, so it must 6 // in Go binaries. It is included by both C and assembly, so it must
7 // be written using #defines. It is included by the runtime package 7 // be written using #defines. It is included by the runtime package
8 // as well as the compilers. 8 // as well as the compilers.
9 9
10 #define PCDATA_ArgSize 0 /* argument size at CALL instruction */ 10 #define PCDATA_ArgSize 0 /* argument size at CALL instruction */
11 11
12 #define FUNCDATA_GC 0 /* garbage collector block */ 12 #define FUNCDATA_GCArgs 0 /* garbage collector blocks */
13 #define FUNCDATA_GCLocals 1
13 14
14 // To be used in assembly. 15 // To be used in assembly.
15 #define ARGSIZE(n) PCDATA $PCDATA_ArgSize, $n 16 #define ARGSIZE(n) PCDATA $PCDATA_ArgSize, $n
16 17
17 // ArgsSizeUnknown is set in Func.argsize to mark all functions 18 // ArgsSizeUnknown is set in Func.argsize to mark all functions
18 // whose argument size is unknown (C vararg functions, and 19 // whose argument size is unknown (C vararg functions, and
19 // assembly code without an explicit specification). 20 // assembly code without an explicit specification).
20 // This value is generated by the compiler, assembler, or linker. 21 // This value is generated by the compiler, assembler, or linker.
21 #define ArgsSizeUnknown 0x80000000 22 #define ArgsSizeUnknown 0x80000000
LEFTRIGHT

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