Package org.jruby.ext.ffi.jffi
Class JITRuntime
java.lang.Object
org.jruby.ext.ffi.jffi.JITRuntime
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final PointerParameterStrategyprivate static final PointerParameterStrategyprivate static final PointerParameterStrategyprivate static final PointerParameterStrategyprivate static final PointerParameterStrategyprivate static final PointerParameterStrategyprivate static final PointerParameterStrategyprivate static final PointerParameterStrategyprivate static final BigInteger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanboolValue(IRubyObject parameter) static intboolValue32(IRubyObject parameter) static longboolValue64(IRubyObject parameter) static IRubyObjectconvert2ptr(ThreadContext context, IRubyObject parameter) private static MemoryIOconvertToPointerMemoryIO(IRubyObject parameter) static MemoryIOconvertToPointerMemoryIO(ThreadContext context, IRubyObject parameter, CachingCallSite callSite) static MemoryIOconvertToStringMemoryIO(IRubyObject parameter, ThreadContext context, CachingCallSite callSite) private static MemoryIOconvertToStringMemoryIO(IRubyObject parameter, ThreadContext context, CachingCallSite callSite, boolean isDirect, boolean checkStringSafety) static MemoryIOconvertToTransientStringMemoryIO(IRubyObject parameter, ThreadContext context, CachingCallSite callSite) static intf32Value32(IRubyObject parameter) static longf32Value64(IRubyObject parameter) static longf64Value64(IRubyObject parameter) static DynamicMethodgetConversionMethod(IRubyObject parameter, CachingCallSite callSite) static PointerParameterStrategygetMemoryIOStrategy(MemoryIO memory) static MemoryIOgetPointerMemoryIO(IRubyObject parameter) static booleanisDirectPointer(IRubyObject parameter) static booleanisTrue(boolean p1) static booleanisTrue(boolean p1, boolean p2) static booleanisTrue(boolean p1, boolean p2, boolean p3) static booleanisTrue(boolean p1, boolean p2, boolean p3, boolean p4) static booleanisTrue(boolean p1, boolean p2, boolean p3, boolean p4, boolean p5) static booleanisTrue(boolean p1, boolean p2, boolean p3, boolean p4, boolean p5, boolean p6) static MemoryIOlookupPointerMemoryIO(IRubyObject parameter) static PointerParameterStrategylookupPointerParameterStrategy(IRubyObject parameter) static RuntimeExceptionnewArityError(ThreadContext context, int got, int expected) static IRubyObjectnewBoolean(Ruby runtime, int value) static IRubyObjectnewBoolean(Ruby runtime, long value) static IRubyObjectnewBoolean(ThreadContext context, int value) static IRubyObjectnewBoolean(ThreadContext context, long value) static IRubyObjectnewFloat32(Ruby runtime, int value) static IRubyObjectnewFloat32(Ruby runtime, long value) static IRubyObjectnewFloat32(ThreadContext context, int value) static IRubyObjectnewFloat32(ThreadContext context, long value) static IRubyObjectnewFloat64(Ruby runtime, long value) static IRubyObjectnewFloat64(ThreadContext context, long value) static IRubyObjectstatic IRubyObjectstatic IRubyObjectnewNil(ThreadContext context, int ignored) static IRubyObjectnewNil(ThreadContext context, long ignored) static IRubyObjectnewPointer32(Ruby runtime, int address) static IRubyObjectnewPointer32(Ruby runtime, long address) static IRubyObjectnewPointer32(ThreadContext context, int address) static IRubyObjectnewPointer32(ThreadContext context, long address) static IRubyObjectnewPointer64(Ruby runtime, long address) static IRubyObjectnewPointer64(ThreadContext context, long address) static IRubyObjectnewSigned16(Ruby runtime, int value) static IRubyObjectnewSigned16(Ruby runtime, long value) static IRubyObjectnewSigned16(ThreadContext context, int value) static IRubyObjectnewSigned16(ThreadContext context, long value) static IRubyObjectnewSigned32(Ruby runtime, int value) static IRubyObjectnewSigned32(Ruby runtime, long value) static IRubyObjectnewSigned32(ThreadContext context, int value) static IRubyObjectnewSigned32(ThreadContext context, long value) static IRubyObjectnewSigned64(Ruby runtime, long value) static IRubyObjectnewSigned64(ThreadContext context, long value) static IRubyObjectnewSigned8(Ruby runtime, int value) static IRubyObjectnewSigned8(Ruby runtime, long value) static IRubyObjectnewSigned8(ThreadContext context, int value) static IRubyObjectnewSigned8(ThreadContext context, long value) static IRubyObjectstatic IRubyObjectstatic IRubyObjectnewString(ThreadContext context, int address) static IRubyObjectnewString(ThreadContext context, long address) static IRubyObjectnewUnsigned16(Ruby runtime, int value) static IRubyObjectnewUnsigned16(Ruby runtime, long value) static IRubyObjectnewUnsigned16(ThreadContext context, int value) static IRubyObjectnewUnsigned16(ThreadContext context, long value) static IRubyObjectnewUnsigned32(Ruby runtime, int value) static IRubyObjectnewUnsigned32(Ruby runtime, long value) static IRubyObjectnewUnsigned32(ThreadContext context, int value) static IRubyObjectnewUnsigned32(ThreadContext context, long value) static IRubyObjectnewUnsigned64(Ruby runtime, long value) static IRubyObjectnewUnsigned64(ThreadContext context, long value) static IRubyObjectnewUnsigned8(Ruby runtime, int value) static IRubyObjectnewUnsigned8(Ruby runtime, long value) static IRubyObjectnewUnsigned8(ThreadContext context, int value) static IRubyObjectnewUnsigned8(ThreadContext context, long value) private static booleanother2bool(IRubyObject parameter) static longother2long(IRubyObject parameter) static IRubyObjectother2ptr(ThreadContext context, IRubyObject parameter) static longother2u64(IRubyObject parameter) static PointerParameterStrategypointerParameterStrategy(IRubyObject parameter) static intpointerValue32(IRubyObject parameter) static longpointerValue64(IRubyObject parameter) static ints16Value32(IRubyObject parameter) static longs16Value64(IRubyObject parameter) static ints32Value32(IRubyObject parameter) static longs32Value64(IRubyObject parameter) static longs64Value64(IRubyObject parameter) static ints8Value32(IRubyObject parameter) static longs8Value64(IRubyObject parameter) static PointerParameterStrategystringParameterStrategy(IRubyObject parameter) static PointerParameterStrategytransientStringParameterStrategy(IRubyObject parameter) static intu16Value32(IRubyObject parameter) static longu16Value64(IRubyObject parameter) static intu32Value32(IRubyObject parameter) static longu32Value64(IRubyObject parameter) static longu64Value64(IRubyObject parameter) static intu8Value32(IRubyObject parameter) static longu8Value64(IRubyObject parameter)
-
Field Details
-
UINT64_BASE
-
DIRECT_MEMORY_OBJECT
-
HEAP_MEMORY_OBJECT
-
DIRECT_MEMORY_IO
-
HEAP_MEMORY_IO
-
NIL_POINTER_STRATEGY
-
HEAP_STRING_POINTER_STRATEGY
-
TRANSIENT_STRING_PARAMETER_STRATEGY
-
DIRECT_STRING_PARAMETER_STRATEGY
-
-
Constructor Details
-
JITRuntime
private JITRuntime()
-
-
Method Details
-
newArityError
-
other2long
-
s8Value32
-
s8Value64
-
u8Value32
-
u8Value64
-
s16Value32
-
s16Value64
-
u16Value32
-
u16Value64
-
s32Value32
-
s32Value64
-
u32Value32
-
u32Value64
-
s64Value64
-
other2u64
-
u64Value64
-
f32Value32
-
f32Value64
-
f64Value64
-
boolValue32
-
boolValue64
-
other2bool
-
boolValue
-
other2ptr
-
convert2ptr
-
newSigned8
-
newSigned8
-
newSigned8
-
newSigned8
-
newUnsigned8
-
newUnsigned8
-
newUnsigned8
-
newUnsigned8
-
newSigned16
-
newSigned16
-
newSigned16
-
newSigned16
-
newUnsigned16
-
newUnsigned16
-
newUnsigned16
-
newUnsigned16
-
newSigned32
-
newSigned32
-
newSigned32
-
newSigned32
-
newUnsigned32
-
newUnsigned32
-
newUnsigned32
-
newUnsigned32
-
newSigned64
-
newSigned64
-
newUnsigned64
-
newUnsigned64
-
newNil
-
newNil
-
newNil
-
newNil
-
newPointer32
-
newPointer32
-
newPointer32
-
newPointer32
-
newPointer64
-
newPointer64
-
newString
-
newString
-
newString
-
newString
-
newBoolean
-
newBoolean
-
newBoolean
-
newBoolean
-
newFloat32
-
newFloat32
-
newFloat32
-
newFloat32
-
newFloat64
-
newFloat64
-
lookupPointerParameterStrategy
-
lookupPointerMemoryIO
-
getPointerMemoryIO
-
convertToPointerMemoryIO
-
convertToStringMemoryIO
private static MemoryIO convertToStringMemoryIO(IRubyObject parameter, ThreadContext context, CachingCallSite callSite, boolean isDirect, boolean checkStringSafety) -
convertToStringMemoryIO
public static MemoryIO convertToStringMemoryIO(IRubyObject parameter, ThreadContext context, CachingCallSite callSite) -
convertToTransientStringMemoryIO
public static MemoryIO convertToTransientStringMemoryIO(IRubyObject parameter, ThreadContext context, CachingCallSite callSite) -
getMemoryIOStrategy
-
pointerParameterStrategy
-
stringParameterStrategy
-
transientStringParameterStrategy
-
convertToPointerMemoryIO
public static MemoryIO convertToPointerMemoryIO(ThreadContext context, IRubyObject parameter, CachingCallSite callSite) -
getConversionMethod
-
isDirectPointer
-
pointerValue32
-
pointerValue64
-
isTrue
public static boolean isTrue(boolean p1) -
isTrue
public static boolean isTrue(boolean p1, boolean p2) -
isTrue
public static boolean isTrue(boolean p1, boolean p2, boolean p3) -
isTrue
public static boolean isTrue(boolean p1, boolean p2, boolean p3, boolean p4) -
isTrue
public static boolean isTrue(boolean p1, boolean p2, boolean p3, boolean p4, boolean p5) -
isTrue
public static boolean isTrue(boolean p1, boolean p2, boolean p3, boolean p4, boolean p5, boolean p6)
-