OLD | NEW |
1 // Copyright 2014 The Go Authors. All rights reserved. | 1 // Copyright 2014 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 package runtime_test | 5 package runtime_test |
6 | 6 |
7 import ( | 7 import ( |
8 "bytes" | 8 "bytes" |
9 "runtime" | 9 "runtime" |
10 "testing" | 10 "testing" |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 func infoBigStruct() []byte { | 127 func infoBigStruct() []byte { |
128 switch runtime.GOARCH { | 128 switch runtime.GOARCH { |
129 case "386", "arm": | 129 case "386", "arm": |
130 return []byte{ | 130 return []byte{ |
131 BitsPointer,
// q *int | 131 BitsPointer,
// q *int |
132 BitsScalar, BitsScalar, BitsScalar, BitsScalar, BitsScal
ar, // w byte; e [17]byte | 132 BitsScalar, BitsScalar, BitsScalar, BitsScalar, BitsScal
ar, // w byte; e [17]byte |
133 BitsPointer, BitsDead, BitsDead, // r []byte | 133 BitsPointer, BitsDead, BitsDead, // r []byte |
134 BitsScalar, BitsScalar, BitsScalar, BitsScalar, // t int
; y uint16; u uint64 | 134 BitsScalar, BitsScalar, BitsScalar, BitsScalar, // t int
; y uint16; u uint64 |
135 BitsPointer, BitsDead, // i string | 135 BitsPointer, BitsDead, // i string |
136 } | 136 } |
137 » case "amd64", "power64", "power64le": | 137 » case "amd64", "ppc64", "ppc64le": |
138 return []byte{ | 138 return []byte{ |
139 BitsPointer, // q *int | 139 BitsPointer, // q *int |
140 BitsScalar, BitsScalar, BitsScalar, // w byte; e [17]byt
e | 140 BitsScalar, BitsScalar, BitsScalar, // w byte; e [17]byt
e |
141 BitsPointer, BitsDead, BitsDead, // r []byte | 141 BitsPointer, BitsDead, BitsDead, // r []byte |
142 BitsScalar, BitsScalar, BitsScalar, // t int; y uint16;
u uint64 | 142 BitsScalar, BitsScalar, BitsScalar, // t int; y uint16;
u uint64 |
143 BitsPointer, BitsDead, // i string | 143 BitsPointer, BitsDead, // i string |
144 } | 144 } |
145 case "amd64p32": | 145 case "amd64p32": |
146 return []byte{ | 146 return []byte{ |
147 BitsPointer,
// q *int | 147 BitsPointer,
// q *int |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 dataString = "foo" | 181 dataString = "foo" |
182 dataSlice = []string{"foo"} | 182 dataSlice = []string{"foo"} |
183 dataEface interface{} = 42 | 183 dataEface interface{} = 42 |
184 dataIface Iface = IfaceImpl(42) | 184 dataIface Iface = IfaceImpl(42) |
185 | 185 |
186 infoString = []byte{BitsPointer, BitsDead} | 186 infoString = []byte{BitsPointer, BitsDead} |
187 infoSlice = []byte{BitsPointer, BitsDead, BitsDead} | 187 infoSlice = []byte{BitsPointer, BitsDead, BitsDead} |
188 infoEface = []byte{BitsPointer, BitsPointer} | 188 infoEface = []byte{BitsPointer, BitsPointer} |
189 infoIface = []byte{BitsPointer, BitsPointer} | 189 infoIface = []byte{BitsPointer, BitsPointer} |
190 ) | 190 ) |
OLD | NEW |