xgopilot
dba9bcc4e4
fix(ssa): use correct package path for interface metadata in abiInterfaceOf
...
When converting concrete type pointers to interfaces with private methods
across packages, the interface metadata's PkgPath was incorrectly set to
the current compilation package instead of the interface definition package.
This caused the runtime to only fill exported methods in the itab, leaving
private method slots as NULL (0x0), which led to segmentation faults when
calling these private methods.
The fix extracts the package path from the interface's private methods
(if any) instead of using the current package path. This ensures the
runtime receives the correct package path for the visibility check.
Fixes #1370
Generated with [codeagent](https://github.com/qbox/codeagent )
Co-authored-by: luoliwoshang <luoliwoshang@users.noreply.github.com >
2025-10-23 10:30:00 +00:00
Li Jie
00dd09c7f4
ssa: improve hasTypeParam coverage
2025-10-15 13:51:16 +08:00
Li Jie
1ed418e77e
tls: document package and guard helpers
2025-10-15 13:11:35 +08:00
Li Jie
2110db7263
tls: add gc-aware pthread slots
2025-10-15 12:21:51 +08:00
visualfc
5592a8fc26
ssa: fix abiTupleOf
2025-09-25 20:16:44 +08:00
visualfc
7323187f90
ssa: impl builtin alignof offsetof
2025-09-18 21:16:06 +08:00
Li Jie
cc65ee18b5
full test params passing of exported functions
2025-09-12 10:08:01 +08:00
Li Jie
3605eeeef7
export c header file for build library
2025-09-11 14:07:58 +08:00
visualfc
fd17a43ade
cl: interface support __llgo_va_list
2025-09-09 16:51:08 +08:00
luoliwoshang
9dfc6d1d52
ssa:refine asmFull interface
2025-08-21 23:44:46 +08:00
luoliwoshang
f5d4f93ed7
ssa:inlineAsmFull
2025-08-21 23:44:46 +08:00
xushiwei
cbac24cf97
Merge pull request #1188 from visualfc/cabi
...
cabi transform
2025-08-19 14:56:10 +08:00
luoliwoshang
a148964878
feat:llgo.Asm
...
test:asm test with `nop`
2025-08-17 16:50:16 +08:00
visualfc
2a88d5777a
ssa: export target and module
2025-08-12 09:29:43 +08:00
xushiwei
6940a5846b
Merge pull request #1210 from visualfc/ssa_typeassert
...
ssa: fix TypeAssert check null
2025-08-08 19:48:27 +08:00
visualfc
56f90dbcf9
ssa: fix TypeAssert check null
2025-08-08 12:11:17 +08:00
visualfc
54dfd3c701
ssa: PyVal support pointer to long
2025-08-07 20:39:35 +08:00
visualfc
36fa18b28c
ssa: PyVal support py bytes
2025-07-30 12:12:19 +08:00
visualfc
2538be9318
ssa: PyVal support pyfunc
2025-07-29 20:55:56 +08:00
visualfc
0a6588c348
ssa: PyVal support bool,int,uint,string,bytearray,complex
2025-07-29 16:08:09 +08:00
visualfc
4726e824a0
build: link globals importpath.name=value
2025-06-17 11:11:06 +08:00
runsys
c1550cf608
windows mingw64 llvm 20 support patch 1
2025-05-18 17:03:47 +08:00
visualfc
e8a91696d6
go.mod go1.23
2025-05-05 10:19:23 +08:00
Li Jie
8512395985
AllocCStr allocates on heap
2025-04-11 16:28:48 +08:00
Li Jie
d4bf66936a
specify setjmp/longjmp function names on wasm
2025-04-11 16:28:47 +08:00
Li Jie
e6c7627ee8
cross compilation
2025-04-08 10:46:14 +08:00
Li Jie
ed366568b4
move out c/cpp/py
2025-04-03 16:26:11 +08:00
Li Jie
1172e5bdce
build: separate compiler and libs
2025-01-08 14:59:01 +08:00
Li Jie
239ac496b2
test: map/slice clear
2025-01-08 14:59:00 +08:00
Li Jie
03b469212e
feat: upgrade to x/tools 0.28
2025-01-08 14:58:59 +08:00
visualfc
3741a28d94
ssa: fix bitcast for float32
2024-12-24 10:02:30 +08:00
visualfc
a6a3c09c05
ssa: closure use specific struct field name { $f ftype, $data unsafe.pointer }
2024-12-22 12:44:33 +08:00
visualfc
ef28abe896
internal/runtime: funcStr, interfaceStr, array str
2024-12-20 12:33:34 +08:00
visualfc
d251232f8a
internal/runtime: named(ptr) type preset for method type
2024-12-20 11:37:30 +08:00
xushiwei
539b55f826
Merge pull request #917 from visualfc/conststring
...
ssa: fix const for named string
2024-12-19 18:13:24 +08:00
xushiwei
b4af70ada9
Merge pull request #916 from visualfc/runtime.interface
...
abi: fix named interface init
2024-12-17 14:43:15 +08:00
visualfc
eaf7e56083
ssa: fix const for named string
2024-12-16 15:00:32 +08:00
visualfc
e55a5d7486
internal/runtime: NewNamedInterface, InitNamedInterface
2024-12-16 12:07:13 +08:00
xushiwei
29ad96862f
Merge pull request #628 from visualfc/go
...
ssa: fix ssa.go for builtin
2024-12-14 06:44:35 +08:00
七叶
3505be422e
Revert "ssa: defer load/store func and args"
2024-12-03 21:00:49 +08:00
visualfc
7eeb8084bf
ssa: fix ssa.go for builtin
2024-12-02 15:40:56 +08:00
visualfc
6e8cecd13e
cl/_testgo: defer6
2024-12-02 11:43:20 +08:00
visualfc
11f2ecd675
ssa: defer load/store func and args
2024-11-30 14:31:23 +08:00
Li Jie
90763de93c
cgo: supports c/go callback funcs
2024-11-27 18:41:56 +08:00
Li Jie
d879d0d924
build: make llgen, cltest, gentests call build.Do
2024-11-26 13:17:36 +08:00
visualfc
8fb0dfad94
ssa: abiNamed use NameOf
2024-11-26 12:46:11 +08:00
visualfc
fadd64c1e9
ssa: cvtClosure remove closureCtx param
2024-11-26 12:46:11 +08:00
visualfc
4552691aed
ssa: toLLVMFunc by NameValist
2024-11-26 12:46:11 +08:00
Li Jie
e732e5158e
cl: fix package patching
2024-11-25 11:36:26 +08:00
xushiwei
8d2b65386c
Merge pull request #874 from cpunion/fix-closure
...
ssa: fix wrong reflect type of closure
2024-11-25 11:05:04 +08:00