BlindMindStudios/AngelScript-JIT-Compiler

as_jit.cpp needs to use scriptData struct with AS 2.27.1

Closed this issue · 2 comments

AS 2.27.1 has moved byteCode and jitFunction data members of asCScriptFunction inside the inner ScriptFunctionData struct which can be reference through the scriptData pointer.. so lines like the following:

ptr = (void*)func->jitFunction;

become:

ptr = (void*)func->scriptData->jitFunction;

There are only a handful of indirections that need to be added in the file and I was able to compile fine against AS 2.27.1 after I made the changes..

We have uncommitted changes to bring the JIT to be compatible with 2.27.1. However, that version will be skipped to instead support the upcoming 2.28 build as it requires changes to bytecode support.

I decided to update with our pending changes which brings the JIT up to date for 2.27.1.