Commits

Show all
Author Commit Message Labels Comments Date
Antonio Cuni
merge heads
Branches
ffistruct
Antonio Cuni
fix translation by iterating only on the types which are known to be integers
Branches
ffistruct
Antonio Cuni
implement fielddescrof_dynamic for the ll backends
Branches
ffistruct
Antonio Cuni
another unit test for when not to optimize
Branches
ffistruct
Antonio Cuni
add optimizeopt unit test for the struct_{get,set}field optimization
Branches
ffistruct
Antonio Cuni
add a JIT optimization which turns calls to libffi.struct_{get,set}field_* into {SET,GET}FIELD_RAW. optimizeopt unit test are coming in the next checkin
Branches
ffistruct
Antonio Cuni
implement fielddescrof_dynamic for the llgraph backend
Branches
ffistruct
Antonio Cuni
merge heads
Branches
ffistruct
Antonio Cuni
fix the _ffi module to use the new interface exposed by libffi
Branches
ffistruct
Antonio Cuni
refactor the interface for struct_{get,set}field. Now we pass the ffitype at runtime, and the values are handled as lltype.Signed. struct_{get,set}field take care of doing cast of the correct LLTYPE
Branches
ffistruct
Antonio Cuni
we can't promote strings
Branches
ffistruct
Antonio Cuni
merge heads
Branches
ffistruct
Antonio Cuni
make it elidable_promote, it should completely optimize away the offset/type lookup
Branches
ffistruct
Antonio Cuni
rpython fix
Branches
ffistruct
Antonio Cuni
fix the result of a bad rebase
Branches
ffistruct
Antonio Cuni
this method is elidable
Branches
ffistruct
Antonio Cuni
turn the interplevel KeyError into an applevel AttributeError
Branches
ffistruct
Antonio Cuni
bah, apparently interp2app functions cannot be class methods
Branches
ffistruct
Antonio Cuni
fix import
Branches
ffistruct
Antonio Cuni
disable this check for now, or else it won't translate
Branches
ffistruct
Antonio Cuni
move the code to get/set arbitrary struct fields to rlib.libffi. Eventually, these two functions will be recognized and optimized by the JIT
Branches
ffistruct
Antonio Cuni
make it possible to allocate a struct, and set/get fields on it. The only supported type is 'long' so far
Branches
ffistruct
Antonio Cuni
bah, forgot to add this file in the previous checkin
Branches
ffistruct
Antonio Cuni
move _ffi.Field and most of compute_shape to interp-level
Branches
ffistruct
Antonio Cuni
don't store the name on the struct descr, but make it accessible from the ffi type
Branches
ffistruct
Antonio Cuni
store also the struct name in the descr
Branches
ffistruct
Antonio Cuni
introduce the concept of _StructDescr, which describes the layout and ffitype of a structure
Branches
ffistruct
Antonio Cuni
split the implementation/tests of W_FFIType and W_FuncPtr into two separate files
Branches
ffistruct
Antonio Cuni
start to implement _ffi.Structure
Branches
ffistruct
Antonio Cuni
implement FFIType.sizeof(); put some test logic into a base class
Branches
ffistruct
  1. Prev
  2. Next