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

Delta Between Two Patch Sets: src/pkg/runtime/extern.go

Issue 9223046: code review 9223046: cmd/5l, cmd/6l, cmd/8l, cmd/gc, runtime: generate and u... (Closed)
Left Patch Set: diff -r bbe324079abe https://code.google.com/p/go/ Created 10 years, 10 months ago
Right Patch Set: diff -r 81ccdb178fd7 https://code.google.com/p/go/ Created 10 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/ld/lib.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 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 /* 5 /*
6 Package runtime contains operations that interact with Go's runtime system, 6 Package runtime contains operations that interact with Go's runtime system,
7 such as functions to control goroutines. It also includes the low-level type inf ormation 7 such as functions to control goroutines. It also includes the low-level type inf ormation
8 used by the reflect package; see reflect's documentation for the programmable 8 used by the reflect package; see reflect's documentation for the programmable
9 interface to the run-time type system. 9 interface to the run-time type system.
10 10
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 func Callers(skip int, pc []uintptr) int 78 func Callers(skip int, pc []uintptr) int
79 79
80 type Func struct { // Keep in sync with runtime.h:struct Func 80 type Func struct { // Keep in sync with runtime.h:struct Func
81 name string 81 name string
82 typ string // go type string 82 typ string // go type string
83 src string // src file name 83 src string // src file name
84 pcln []byte // pc/ln tab for this func 84 pcln []byte // pc/ln tab for this func
85 entry uintptr // entry pc 85 entry uintptr // entry pc
86 pc0 uintptr // starting pc, ln for table 86 pc0 uintptr // starting pc, ln for table
87 ln0 int32 87 ln0 int32
88 » frame int32 // stack frame size 88 » frame int32 // stack frame size
89 » args int32 // in/out args size 89 » args int32 // in/out args size
90 » locals int32 // locals size 90 » locals int32 // locals size
91 » ptrs []int32 // pointer map
91 } 92 }
92 93
93 // FuncForPC returns a *Func describing the function that contains the 94 // FuncForPC returns a *Func describing the function that contains the
94 // given program counter address, or else nil. 95 // given program counter address, or else nil.
95 func FuncForPC(pc uintptr) *Func 96 func FuncForPC(pc uintptr) *Func
96 97
97 // Name returns the name of the function. 98 // Name returns the name of the function.
98 func (f *Func) Name() string { return f.name } 99 func (f *Func) Name() string { return f.name }
99 100
100 // Entry returns the entry address of the function. 101 // Entry returns the entry address of the function.
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 return theVersion 177 return theVersion
177 } 178 }
178 179
179 // GOOS is the running program's operating system target: 180 // GOOS is the running program's operating system target:
180 // one of darwin, freebsd, linux, and so on. 181 // one of darwin, freebsd, linux, and so on.
181 const GOOS string = theGoos 182 const GOOS string = theGoos
182 183
183 // GOARCH is the running program's architecture target: 184 // GOARCH is the running program's architecture target:
184 // 386, amd64, or arm. 185 // 386, amd64, or arm.
185 const GOARCH string = theGoarch 186 const GOARCH string = theGoarch
LEFTRIGHT

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