处理AI胡乱生成的乱摊子
This commit is contained in:
13
vendor/github.com/bytedance/sonic/internal/jit/arch_amd64.go
generated
vendored
13
vendor/github.com/bytedance/sonic/internal/jit/arch_amd64.go
generated
vendored
@@ -17,8 +17,10 @@
|
||||
package jit
|
||||
|
||||
import (
|
||||
`github.com/twitchyliquid64/golang-asm/asm/arch`
|
||||
`github.com/twitchyliquid64/golang-asm/obj`
|
||||
"unsafe"
|
||||
|
||||
"github.com/twitchyliquid64/golang-asm/asm/arch"
|
||||
"github.com/twitchyliquid64/golang-asm/obj"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -33,6 +35,13 @@ func As(op string) obj.As {
|
||||
}
|
||||
}
|
||||
|
||||
func ImmPtr(imm unsafe.Pointer) obj.Addr {
|
||||
return obj.Addr {
|
||||
Type : obj.TYPE_CONST,
|
||||
Offset : int64(uintptr(imm)),
|
||||
}
|
||||
}
|
||||
|
||||
func Imm(imm int64) obj.Addr {
|
||||
return obj.Addr {
|
||||
Type : obj.TYPE_CONST,
|
||||
|
||||
Reference in New Issue
Block a user