Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AsterDY committed Jan 29, 2024
1 parent d8cf1b3 commit 5d76000
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 9 deletions.
2 changes: 0 additions & 2 deletions internal/decoder/primitives.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ func decodeTypedPointer(s string, i int, vt *rt.GoType, vp unsafe.Pointer, sb *_
return 0, err
} else {
rt.MoreStack(_FP_size + _VD_size + native.MaxFrameSize)
rt.StopProf()
ret, err := fn(s, i, vp, sb, fv, "", nil)
rt.StartProf()
return ret, err
}
}
Expand Down
5 changes: 0 additions & 5 deletions internal/encoder/alg/spec_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
"runtime"
"unsafe"

"github.com/bytedance/sonic/utf8"
"github.com/bytedance/sonic/internal/native"
"github.com/bytedance/sonic/internal/native/types"
"github.com/bytedance/sonic/internal/rt"
Expand Down Expand Up @@ -166,7 +165,3 @@ func HtmlEscape(dst []byte, src []byte) []byte {
}
return dst
}

func ValidateString(buf []byte) bool {
return utf8.Valid(buf)
}
1 change: 0 additions & 1 deletion internal/encoder/pools_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (

"github.com/bytedance/sonic/internal/encoder/vars"
"github.com/bytedance/sonic/internal/encoder/x86"
"github.com/bytedance/sonic/utf8"
"github.com/bytedance/sonic/internal/rt"
"github.com/bytedance/sonic/option"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/encoder/x86/assembler_regabi_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ func NewAssembler(p ir.Program) *Assembler {
/** Assembler Interface **/

func (self *Assembler) Load() vars.Encoder {
return ptoenc(self.BaseAssembler.Load("encode_"+self.Name, _FP_size, _FP_args, vars.ArgPtrs, vars.LocalPtrs))
return *(*vars.Encoder)(unsafe.Pointer(self.BaseAssembler.Load("encode_"+self.Name, _FP_size, _FP_args, vars.ArgPtrs, vars.LocalPtrs)))
}

func (self *Assembler) Init(p ir.Program) *Assembler {
Expand Down

0 comments on commit 5d76000

Please sign in to comment.