Debian Codegraph @

test/codegen/reflect_type.go

raw
1 // asmcheck
2
3 // Copyright 2025 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
6
7 package codegen
8
9 import "reflect"
10
11 func intPtrTypeSize() uintptr {
12 // amd64:"MOVL [$]8," -"CALL"
13 // arm64:"MOVD [$]8," -"CALL"
14 return reflect.TypeFor[*int]().Size()
15 }
16
17 func intPtrTypeKind() reflect.Kind {
18 // amd64:"MOVL [$]22," -"CALL"
19 // arm64:"MOVD [$]22," -"CALL"
20 return reflect.TypeFor[*int]().Kind()
21 }