search for: getmethodpoint

Displaying 4 results from an estimated 4 matches for "getmethodpoint".

Did you mean: getmethodpointer
2012 Jul 07
2
[LLVMdev] Crash using the JIT on x86 but work on x64
...} } template<typename T> const static void* void_cast(const T& object) { union Retyper { const T object; void* pointer; Retyper(T obj) : object(obj) { } }; return Retyper(object).pointer; } template<typename T, typename M> const static void* getMethodPointer(const T* object, M method) // will work for virtual methods { union MethodEntry { intptr_t offset; void* function; }; const MethodEntry* entry = static_cast<const MethodEntry*>(void_cast(&method)); if (entry->offset % sizeof(intptr_t) == 0) // lo...
2012 Jul 08
1
[LLVMdev] Crash using the JIT on x86 but work on x64
Thank, i have posted a mail about that. What i don't understand, is why it only work on x64, it should be more logical that it work only on x86, since most library focus first on working x86 before x64. The function getMethodPointer come from here http://stackoverflow.com/questions/3104389/can-i-bind-an-existing-method-to-a-llvm-function-and-use-it-from-jitted-code they said "that probably will only be compatible with the Itanium ABI", so does it could be because of that? -----Message d'origine----- From:...
2012 Jul 07
0
[LLVMdev] Crash using the JIT on x86 but work on x64
Skykill Skyoverside <skyoverside at live.fr> writes: [snip] My guess is that you are hitting a VS C++ ABI missing feature in Clang. Ask in the Clang mailing list for a confirmation, but IIRC there are still missing pieces on either object construction/destrucion, parameter passing, returning classes and C++ exception support.
2012 Jul 07
2
[LLVMdev] Crash using the JIT on x86 but work on x64
Hi, so yes assertions are enabled by default in Debug from what i could see in the CMakeLists.txt if( uppercase_CMAKE_BUILD_TYPE STREQUAL "RELEASE" ) option(LLVM_ENABLE_ASSERTIONS "Enable assertions" OFF) else() option(LLVM_ENABLE_ASSERTIONS "Enable assertions" ON) endif() Without assertions enabled, when i'm running the program without the debugger, it