Package jnr.ffi.provider.jffi
Class X86_32StubCompiler
java.lang.Object
jnr.ffi.provider.jffi.StubCompiler
jnr.ffi.provider.jffi.AbstractX86StubCompiler
jnr.ffi.provider.jffi.X86_32StubCompiler
Stub compiler for i386 unix
-
Nested Class Summary
Nested classes/interfaces inherited from class jnr.ffi.provider.jffi.AbstractX86StubCompiler
AbstractX86StubCompiler.PageHolder, AbstractX86StubCompiler.Stub
Nested classes/interfaces inherited from class jnr.ffi.provider.jffi.StubCompiler
StubCompiler.DummyStubCompiler
-
Field Summary
Fields inherited from class jnr.ffi.provider.jffi.AbstractX86StubCompiler
DEBUG, PAGE_HOLDER_UPDATER, stubs
Fields inherited from class jnr.ffi.provider.jffi.StubCompiler
errnoFunctionAddress, hasAssembler, hasPageManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) boolean
canCompile
(ResultType returnType, ParameterType[] parameterTypes, CallingConvention convention) (package private) void
compile
(com.kenai.jffi.Function function, String name, ResultType resultType, ParameterType[] parameterTypes, Class resultClass, Class[] parameterClasses, CallingConvention convention, boolean saveErrno) (package private) static int
(package private) static int
parameterSize
(ParameterType parameterType) (package private) static jnr.x86asm.Mem
ptr
(jnr.x86asm.Register base, long disp, NativeType nativeType) (package private) static int
resultSize
(ResultType resultType) Methods inherited from class jnr.ffi.provider.jffi.AbstractX86StubCompiler
align, align, attach, getRuntime
Methods inherited from class jnr.ffi.provider.jffi.StubCompiler
newCompiler
-
Constructor Details
-
X86_32StubCompiler
X86_32StubCompiler(Runtime runtime)
-
-
Method Details
-
canCompile
boolean canCompile(ResultType returnType, ParameterType[] parameterTypes, CallingConvention convention) - Specified by:
canCompile
in classStubCompiler
-
compile
void compile(com.kenai.jffi.Function function, String name, ResultType resultType, ParameterType[] parameterTypes, Class resultClass, Class[] parameterClasses, CallingConvention convention, boolean saveErrno) - Specified by:
compile
in classStubCompiler
-
parameterSize
-
parameterSize
-
resultSize
-
ptr
-