Package jnr.ffi.provider.jffi
Class AbstractX86StubCompiler
- java.lang.Object
-
- jnr.ffi.provider.jffi.StubCompiler
-
- jnr.ffi.provider.jffi.AbstractX86StubCompiler
-
- Direct Known Subclasses:
X86_32StubCompiler,X86_64StubCompiler
abstract class AbstractX86StubCompiler extends StubCompiler
Base class for most X86_32/X86_64 stub compilers
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classAbstractX86StubCompiler.PageHolderprivate static classAbstractX86StubCompiler.StaticDataHolder(package private) static classAbstractX86StubCompiler.Stub-
Nested classes/interfaces inherited from class jnr.ffi.provider.jffi.StubCompiler
StubCompiler.DummyStubCompiler
-
-
Field Summary
Fields Modifier and Type Field Description static booleanDEBUG(package private) static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<AbstractX86StubCompiler.PageHolder>PAGE_HOLDER_UPDATERprivate Runtimeruntime(package private) java.util.List<AbstractX86StubCompiler.Stub>stubs-
Fields inherited from class jnr.ffi.provider.jffi.StubCompiler
errnoFunctionAddress, hasAssembler, hasPageManager
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractX86StubCompiler(Runtime runtime)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static intalign(int offset, int align)(package private) static longalign(long offset, long align)(package private) voidattach(java.lang.Class clazz)RuntimegetRuntime()-
Methods inherited from class jnr.ffi.provider.jffi.StubCompiler
canCompile, compile, newCompiler
-
-
-
-
Field Detail
-
DEBUG
public static final boolean DEBUG
-
runtime
private final Runtime runtime
-
stubs
final java.util.List<AbstractX86StubCompiler.Stub> stubs
-
PAGE_HOLDER_UPDATER
static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<AbstractX86StubCompiler.PageHolder> PAGE_HOLDER_UPDATER
-
-
Constructor Detail
-
AbstractX86StubCompiler
protected AbstractX86StubCompiler(Runtime runtime)
-
-
Method Detail
-
getRuntime
public final Runtime getRuntime()
-
attach
void attach(java.lang.Class clazz)
- Specified by:
attachin classStubCompiler
-
align
static int align(int offset, int align)
-
align
static long align(long offset, long align)
-
-