-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(jit): go1.23 for the last supported version (#57)
- Loading branch information
Showing
8 changed files
with
111 additions
and
118 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
...nal/atm/pgen/pgen_gcwb_go121_121_amd64.go → ...nal/atm/pgen/pgen_gcwb_go121_123_amd64.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
internal/loader/funcdata_go118_122.go → internal/loader/funcdata_go118_123.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
//go:build go1.23 | ||
// +build go1.23 | ||
|
||
/* | ||
* Copyright 2024 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 loader | ||
|
||
import ( | ||
"unsafe" | ||
|
||
"github.com/cloudwego/frugal/internal/rt" | ||
) | ||
|
||
type _Func struct { | ||
entryOff uint32 | ||
nameoff int32 | ||
args int32 | ||
deferreturn uint32 | ||
pcsp uint32 | ||
pcfile uint32 | ||
pcln uint32 | ||
npcdata uint32 | ||
cuOffset uint32 | ||
startLine int32 | ||
funcID uint8 | ||
flag uint8 | ||
_ [1]byte | ||
nfuncdata uint8 | ||
pcdata [2]uint32 | ||
argptrs uint32 | ||
localptrs uint32 | ||
} | ||
|
||
type _ModuleData struct { | ||
pcHeader *_PCHeader | ||
funcnametab []byte | ||
cutab []uint32 | ||
filetab []byte | ||
pctab []byte | ||
pclntable []byte | ||
ftab []_FuncTab | ||
findfunctab uintptr | ||
minpc, maxpc uintptr | ||
text, etext uintptr | ||
noptrdata, enoptrdata uintptr | ||
data, edata uintptr | ||
bss, ebss uintptr | ||
noptrbss, enoptrbss uintptr | ||
covctrs, ecovctrs uintptr | ||
end, gcdata, gcbss uintptr | ||
types, etypes uintptr | ||
rodata uintptr | ||
gofunc uintptr | ||
textsectmap [][3]uintptr | ||
typelinks []int32 | ||
itablinks []*rt.GoItab | ||
ptab [][2]int32 | ||
pluginpath string | ||
pkghashes []struct{} | ||
// This slice records the initializing tasks that need to be | ||
// done to start up the program. It is built by the linker. | ||
inittasks []unsafe.Pointer | ||
modulename string | ||
modulehashes []struct{} | ||
hasmain uint8 | ||
bad bool | ||
gcdatamask, gcbssmask _BitVector | ||
typemap map[int32]*rt.GoType | ||
next *_ModuleData | ||
} | ||
|
||
const ( | ||
_ModuleMagic = 0xfffffff1 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters