Delta Between Two Patch Sets: src/pkg/runtime/typekind.go
Issue 129090043 :
code review 129090043: cmd/gc, runtime: refactor interface inlining decision i... (Closed)
Left Patch Set:
Right Patch Set: diff -r 5856eae43c269fc32cdf2cfca0c9412ee4a5969c https://code.google.com/p/go/
Use n/p to move between diff chunks;
N/P to move between comments.
Please Sign in to add in-line comments.
Jump to:
src/cmd/gc/go.h
src/cmd/gc/reflect.c
src/cmd/gc/subr.c
src/cmd/gc/walk.c
src/pkg/database/sql/convert_test.go
src/pkg/reflect/all_test.go
src/pkg/reflect/type.go
src/pkg/reflect/value.go
src/pkg/runtime/alg.go
src/pkg/runtime/heapdump.c
src/pkg/runtime/iface.go
src/pkg/runtime/malloc.c
src/pkg/runtime/malloc.go
src/pkg/runtime/mgc0.c
src/pkg/runtime/stack.c
src/pkg/runtime/typekind.h
src/pkg/runtime/typekind.go
test/live.go
LEFT RIGHT
(no file at all) 1 // Copyright 2014 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 package runtime
6
7 const (
8 kindBool = 1 + iota
9 kindInt
10 kindInt8
11 kindInt16
12 kindInt32
13 kindInt64
14 kindUint
15 kindUint8
16 kindUint16
17 kindUint32
18 kindUint64
19 kindUintptr
20 kindFloat32
21 kindFloat64
22 kindComplex64
23 kindComplex128
24 kindArray
25 kindChan
26 kindFunc
27 kindInterface
28 kindMap
29 kindPtr
30 kindSlice
31 kindString
32 kindStruct
33 kindUnsafePointer
34
35 kindDirectIface = 1 << 5
36 kindGCProg = 1 << 6 // Type.gc points to GC program
37 kindNoPointers = 1 << 7
38 kindMask = (1 << 5) - 1
39 )
40
41 // isDirectIface reports whether t is stored directly in an interface value.
42 func isDirectIface(t *_type) bool {
43 return t.kind&kindDirectIface != 0
44 }
LEFT RIGHT