alien: now that fastcall works better it doesn't need to be private
parent
ed40eb4239
commit
0202c35d2a
|
@ -10,7 +10,6 @@ compiler.cfg.intrinsics compiler.cfg.stack-frame
|
|||
cpu.x86.assembler cpu.x86.assembler.operands cpu.x86
|
||||
cpu.architecture vm ;
|
||||
FROM: layouts => cell ;
|
||||
FROM: alien.private => fastcall ;
|
||||
IN: cpu.x86.32
|
||||
|
||||
M: x86.32 machine-registers
|
||||
|
|
|
@ -5,14 +5,6 @@ kernel.private byte-arrays byte-vectors arrays init
|
|||
continuations.private ;
|
||||
IN: alien
|
||||
|
||||
SINGLETONS: stdcall thiscall cdecl mingw ;
|
||||
|
||||
<PRIVATE
|
||||
SINGLETON: fastcall
|
||||
PRIVATE>
|
||||
|
||||
UNION: abi stdcall thiscall fastcall cdecl mingw ;
|
||||
|
||||
PREDICATE: pinned-alien < alien underlying>> not ;
|
||||
|
||||
UNION: pinned-c-ptr pinned-alien POSTPONE: f ;
|
||||
|
@ -72,6 +64,10 @@ M: alien equal?
|
|||
M: pinned-alien hashcode*
|
||||
nip dup expired>> [ drop 1234 ] [ alien-address ] if ;
|
||||
|
||||
SINGLETONS: stdcall thiscall fastcall cdecl mingw ;
|
||||
|
||||
UNION: abi stdcall thiscall fastcall cdecl mingw ;
|
||||
|
||||
ERROR: alien-callback-error ;
|
||||
|
||||
: alien-callback ( return parameters abi quot -- alien )
|
||||
|
|
Loading…
Reference in New Issue