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
-
final class X86_32StubCompiler extends AbstractX86StubCompiler
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 Constructor Description X86_32StubCompiler(Runtime runtime)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) boolean
canCompile(ResultType returnType, ParameterType[] parameterTypes, CallingConvention convention)
(package private) void
compile(com.kenai.jffi.Function function, java.lang.String name, ResultType resultType, ParameterType[] parameterTypes, java.lang.Class resultClass, java.lang.Class[] parameterClasses, CallingConvention convention, boolean saveErrno)
(package private) static int
parameterSize(java.lang.Class t)
(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 Detail
-
X86_32StubCompiler
X86_32StubCompiler(Runtime runtime)
-
-
Method Detail
-
canCompile
boolean canCompile(ResultType returnType, ParameterType[] parameterTypes, CallingConvention convention)
- Specified by:
canCompile
in classStubCompiler
-
compile
void compile(com.kenai.jffi.Function function, java.lang.String name, ResultType resultType, ParameterType[] parameterTypes, java.lang.Class resultClass, java.lang.Class[] parameterClasses, CallingConvention convention, boolean saveErrno)
- Specified by:
compile
in classStubCompiler
-
parameterSize
static int parameterSize(ParameterType parameterType)
-
parameterSize
static int parameterSize(java.lang.Class t)
-
resultSize
static int resultSize(ResultType resultType)
-
ptr
static jnr.x86asm.Mem ptr(jnr.x86asm.Register base, long disp, NativeType nativeType)
-
-