mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 14:01:45 +00:00
- fix that the code for META and CLSS was swapped
This commit is contained in:
parent
19442732d4
commit
4076ce791b
1 changed files with 4 additions and 4 deletions
|
@ -393,7 +393,7 @@ private:
|
|||
|
||||
auto call = cc.call(ToMemAddress(reinterpret_cast<const void*>(static_cast<FuncPtr>([](void *o) -> void*
|
||||
{
|
||||
return static_cast<DObject*>(o)->GetClass();
|
||||
return static_cast<DObject*>(o)->GetClass()->Meta;
|
||||
}))), asmjit::FuncSignature1<void*, void*>());
|
||||
call->setRet(0, regA[A]);
|
||||
call->setArg(0, regA[B]);
|
||||
|
@ -411,7 +411,7 @@ private:
|
|||
|
||||
auto call = cc.call(ToMemAddress(reinterpret_cast<const void*>(static_cast<FuncPtr>([](void *o) -> void*
|
||||
{
|
||||
return static_cast<DObject*>(o)->GetClass()->Meta;
|
||||
return static_cast<DObject*>(o)->GetClass();
|
||||
}))), asmjit::FuncSignature1<void*, void*>());
|
||||
call->setRet(0, regA[A]);
|
||||
call->setArg(0, regA[B]);
|
||||
|
@ -3049,7 +3049,7 @@ static void OutputJitLog(const asmjit::StringLogger &logger)
|
|||
Printf("%s\n", pos);
|
||||
}
|
||||
|
||||
#define DEBUG_JIT
|
||||
//#define DEBUG_JIT
|
||||
|
||||
JitFuncPtr JitCompile(VMScriptFunction *sfunc)
|
||||
{
|
||||
|
@ -3061,7 +3061,7 @@ JitFuncPtr JitCompile(VMScriptFunction *sfunc)
|
|||
return nullptr;
|
||||
#endif
|
||||
|
||||
Printf("Jitting function: %s\n", sfunc->PrintableName.GetChars());
|
||||
//Printf("Jitting function: %s\n", sfunc->PrintableName.GetChars());
|
||||
|
||||
using namespace asmjit;
|
||||
StringLogger logger;
|
||||
|
|
Loading…
Reference in a new issue