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 class
AbstractX86StubCompiler.PageHolder
private static class
AbstractX86StubCompiler.StaticDataHolder
(package private) static class
AbstractX86StubCompiler.Stub
-
Nested classes/interfaces inherited from class jnr.ffi.provider.jffi.StubCompiler
StubCompiler.DummyStubCompiler
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
DEBUG
(package private) static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<AbstractX86StubCompiler.PageHolder>
PAGE_HOLDER_UPDATER
private Runtime
runtime
(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 protected
AbstractX86StubCompiler(Runtime runtime)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static int
align(int offset, int align)
(package private) static long
align(long offset, long align)
(package private) void
attach(java.lang.Class clazz)
Runtime
getRuntime()
-
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:
attach
in classStubCompiler
-
align
static int align(int offset, int align)
-
align
static long align(long offset, long align)
-
-