Skip to content

Commit

Permalink
Fix another too-long jump.
Browse files Browse the repository at this point in the history
  • Loading branch information
ThyReaper committed Oct 31, 2014
1 parent 7ca458a commit 217fe71
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions as_jit.cpp
Expand Up @@ -1922,23 +1922,23 @@ int asCJITCompiler::CompileFunction(asIScriptFunction *function, asJITFunction *

//Add reference to object 1, if not null
arg1 &= arg1;
auto prev = cpu.prep_short_jump(Zero);
auto prev = cpu.prep_long_jump(Zero);
{
asCScriptFunction* func = (asCScriptFunction*)function->GetEngine()->GetFunctionById(beh->addref);
sysCall.callSystemFunction(func, &arg1, callFlags);
}
cpu.end_short_jump(prev);
cpu.end_long_jump(prev);

//Release reference from object 2, if not null
arg1 = as<void*>(*esp+local::object2);
arg1 = as<void*>(*arg1);
arg1 &= arg1;
auto dest = cpu.prep_short_jump(Zero);
auto dest = cpu.prep_long_jump(Zero);
{
asCScriptFunction* func = (asCScriptFunction*)function->GetEngine()->GetFunctionById(beh->release);
sysCall.callSystemFunction(func, &arg1, callFlags);
}
cpu.end_short_jump(dest);
cpu.end_long_jump(dest);

pax = as<void*>(*esp + local::object1);
pdx = as<void*>(*esp + local::object2);
Expand Down

0 comments on commit 217fe71

Please sign in to comment.