-
Notifications
You must be signed in to change notification settings - Fork 21
/
mapassign.go
57 lines (48 loc) · 2.11 KB
/
mapassign.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
* Copyright 2022 ByteDance Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package decoder
import (
`unsafe`
`github.com/cloudwego/frugal/internal/atm/hir`
`github.com/cloudwego/frugal/internal/rt`
)
//go:noescape
//go:linkname mapassign runtime.mapassign
//goland:noinspection GoUnusedParameter
func mapassign(t *rt.GoMapType, h *rt.GoMap, key unsafe.Pointer) unsafe.Pointer
//go:noescape
//go:linkname mapassign_fast32 runtime.mapassign_fast32
//goland:noinspection GoUnusedParameter
func mapassign_fast32(t *rt.GoMapType, h *rt.GoMap, key uint32) unsafe.Pointer
//go:noescape
//go:linkname mapassign_fast64 runtime.mapassign_fast64
//goland:noinspection GoUnusedParameter
func mapassign_fast64(t *rt.GoMapType, h *rt.GoMap, key uint64) unsafe.Pointer
//go:noescape
//go:linkname mapassign_faststr runtime.mapassign_faststr
//goland:noinspection GoUnusedParameter
func mapassign_faststr(t *rt.GoMapType, h *rt.GoMap, s string) unsafe.Pointer
//go:noescape
//go:linkname mapassign_fast64ptr runtime.mapassign_fast64ptr
//goland:noinspection GoUnusedParameter
func mapassign_fast64ptr(t *rt.GoMapType, h *rt.GoMap, key unsafe.Pointer) unsafe.Pointer
var (
F_mapassign = hir.RegisterGCall(mapassign, emu_gcall_mapassign)
F_mapassign_fast32 = hir.RegisterGCall(mapassign_fast32, emu_gcall_mapassign_fast32)
F_mapassign_fast64 = hir.RegisterGCall(mapassign_fast64, emu_gcall_mapassign_fast64)
F_mapassign_faststr = hir.RegisterGCall(mapassign_faststr, emu_gcall_mapassign_faststr)
F_mapassign_fast64ptr = hir.RegisterGCall(mapassign_fast64ptr, emu_gcall_mapassign_fast64ptr)
)